Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25788 - emerging dev-perl/RPM failed
Summary: emerging dev-perl/RPM failed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-02 14:59 UTC by John Kim
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Kim 2003-08-02 14:59:43 UTC
Attempt to emerge dev-perl/RPM failed.

I'm using gcc-3.2.3

>>> emerge (3 of 3) dev-perl/RPM-0.40-r1 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/Perl-RPM-0.40.tar.gz
--17:47:56--  http://gentoo.oregonstate.edu/distfiles/Perl-RPM-0.40.tar.gz
           => `/usr/portage/distfiles/Perl-RPM-0.40.tar.gz'
Resolving gentoo.oregonstate.edu... done.
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54,668 [application/x-tar]

100%[==================================================================>] 54,668
       41.74K/s    ETA 00:00

17:47:57 (41.74 KB/s) - `/usr/portage/distfiles/Perl-RPM-0.40.tar.gz' saved
[54668/54668]

>>> md5 src_uri ;-) Perl-RPM-0.40.tar.gz
>>> Unpacking source...
>>> Unpacking Perl-RPM-0.40.tar.gz to /var/tmp/portage/RPM-0.40-r1/work
>>> Source unpacked.
Checking if your kit is complete...
Looks good
Local build detected. Generating Perl-RPM.spec...
Generating rpmrc...
Generating rpmmacros...
Writing Makefile for RPM
cp RPM.pm blib/lib/RPM.pm
cp RPM/Error.pm blib/lib/RPM/Error.pm
cp RPM/Constants.pm blib/lib/RPM/Constants.pm
cp RPM/Database.pm blib/lib/RPM/Database.pm
cp RPM/Header.pm blib/lib/RPM/Header.pm
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -noversioncheck -typemap
/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  RPM/Database.xs >
RPM/Database.xsc && mv RPM/Database.xsc RPM/Database.c
gcc -c  -I. -I/usr/include/rpm -DPERL5 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=pentium3
-O3 -pipe -fomit-frame-pointer   -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fpic
"-I/usr/lib/perl5/5.8.0/i686-linux-thread-multi/CORE"   RPM/Database.c -o
RPM/Database.o
Database.xs: In function `rpmdb_FETCH':
Database.xs:111: warning: assignment makes pointer from integer without a cast
Database.xs:112: warning: assignment makes pointer from integer without a cast
Database.xs:149: warning: assignment makes pointer from integer without a cast
Database.xs:150: warning: assignment makes pointer from integer without a cast
Database.xs: In function `rpmdb_FIRSTKEY':
Database.xs:200: warning: assignment makes pointer from integer without a cast
Database.xs:201: warning: assignment makes pointer from integer without a cast
Database.xs: In function `rpmdb_find_by_whatever':
Database.xs:306: warning: assignment makes pointer from integer without a cast
Database.xs:311: warning: comparison between pointer and integer
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp  -noversioncheck -typemap
/usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  RPM/Constants.xs >
RPM/Constants.xsc && mv RPM/Constants.xsc RPM/Constants.c
gcc -c  -I. -I/usr/include/rpm -DPERL5 -D_REENTRANT -D_GNU_SOURCE
-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -march=pentium3
-O3 -pipe -fomit-frame-pointer   -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fpic
"-I/usr/lib/perl5/5.8.0/i686-linux-thread-multi/CORE"   RPM/Constants.c -o
RPM/Constants.o
Constants.xs: In function `constant':
Constants.xs:19: `CHECKSIG_GPG' undeclared (first use in this function)
Constants.xs:19: (Each undeclared identifier is reported only once
Constants.xs:19: for each function it appears in.)
Constants.xs:21: `CHECKSIG_MD5' undeclared (first use in this function)
Constants.xs:23: `CHECKSIG_PGP' undeclared (first use in this function)
Constants.xs:240: `RPMFILE_DONOTUSE' undeclared (first use in this function)
Constants.xs:322: `RPMSIG_BAD' undeclared (first use in this function)
Constants.xs:324: `RPMSIG_NOKEY' undeclared (first use in this function)
Constants.xs:326: `RPMSIG_NOTTRUSTED' undeclared (first use in this function)
Constants.xs:328: `RPMSIG_OK' undeclared (first use in this function)
Constants.xs:330: `RPMSIG_UNKNOWN' undeclared (first use in this function)
make: *** [RPM/Constants.o] Error 1

!!! ERROR: dev-perl/RPM-0.40-r1 failed.
!!! Function perl-module_src_compile, Line 41, Exitcode 2
!!! compilation failed

Reproducible: Always
Steps to Reproduce:
1.  emerge RPM
2.
3.
Comment 1 Brandy Westcott (RETIRED) gentoo-dev 2003-08-20 05:36:20 UTC
Currently RPM-0.40-r1 only supports rpm-4.0.4 and will break with the 
above error if rpm-4.2_pre069 is installed. 
 
Unfortunately the RPM-0.40 ebuilds only have: 
 
	DEPEND="${DEPEND} app-arch/rpm" 
 
Setting this to  
 
	DEPEND="${DEPEND} =app-arch/rpm-4.0.4-r5" 
 
will cause RPM to compile against the correct version of rpm. 
Comment 2 Michael Cummings (RETIRED) gentoo-dev 2003-10-06 05:38:55 UTC
Noted, changed, committed. Thanks Brandy :)

FWIW, I've looked and the author hasn't submitted a new version of this perl
module in a while, so for now I'm afraid it's locked as Brandy indicated.