From: Bruce Ferrell <bferrell@baywinds.org>
To: Alex <mysqlstudent@gmail.com>
Cc: linux-admin <linux-admin@vger.kernel.org>, rjray@blackperl.com
Subject: Re: RPM bindings for perl - probable bug
Date: Sat, 26 Jun 2010 16:34:23 -0700 [thread overview]
Message-ID: <4C268E7F.4070404@baywinds.org> (raw)
In-Reply-To: <AANLkTikfJDCLjqzrnkzUSI8gT90r20BoJUgcWHMFweQg@mail.gmail.com>
On 06/26/2010 07:59 AM, Alex wrote:
> Hi,
>
> I'm trying to search inside various RPMs using perl for information
> such as name, version, vendor, etc, and wondered what the best
> approach would be. I found perl-RPM from RJRAY at CPAN, but it's
> dated, and doesn't compile against a distro with rpm-4.8.
>
> I searched freshmeat for existing code to manipulate RPM information
> and wasn't very successful.
>
> What is the best approach to do this?
>
> Thanks,
> Alex
> --
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
I just tried it (perl-rpm-1.51) on a SuSE 10. system with rpm 4.4. No
problemo.
it doesn't install on my 11.2 with rpm 4.7.1 with the following error:
perl Makefile.PL
Note (probably harmless): No library found for -lrpmdb
Local build detected. Generating Perl-RPM.spec...
Generating rpmrc...
Generating rpmmacros...
Writing Makefile for RPM
make
cc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe
-DVERSION=\"1.51\" -DXS_VERSION=\"1.51\" -fPIC
"-I/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE"
-DRPM_VERSION=0x040701 RPM/Database.c -o RPM/Database.o
RPM/Database.xs: In function ‘rpmdb_TIEHASH’:
RPM/Database.xs:46: warning: implicit declaration of function ‘rpmError’
RPM/Database.xs:46: error: ‘RPMERR_BADARG’ undeclared (first use in this
function)
RPM/Database.xs:46: error: (Each undeclared identifier is reported only once
RPM/Database.xs:46: error: for each function it appears in.)
RPM/Database.xs: In function ‘XS_RPM__Database_STORE’:
RPM/Database.xs:169: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_DELETE’:
RPM/Database.xs:182: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_CLEAR’:
RPM/Database.xs:194: error: ‘RPMERR_NOCREATEDB’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_init’:
RPM/Database.xs:264: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_rebuild’:
RPM/Database.xs:284: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
RPM/Database.xs: In function ‘XS_RPM__Database_find_by_file’:
RPM/Database.xs:320: error: ‘RPMERR_BADARG’ undeclared (first use in
this function)
make: *** [RPM/Database.o] Error 1
Guess I'll have to open a bug at:
rjray@blackperl.com
like the readme says
Bruce
--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2010-06-26 23:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-26 14:59 RPM bindings for perl Alex
2010-06-26 23:34 ` Bruce Ferrell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C268E7F.4070404@baywinds.org \
--to=bferrell@baywinds.org \
--cc=linux-admin@vger.kernel.org \
--cc=mysqlstudent@gmail.com \
--cc=rjray@blackperl.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.