Re: RPM bindings for perl - probable bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxx

like the readme says

Bruce

--
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux