Subject: | Build errors with Redhat 9.093 (Severn) |
Build Box Info:
*Perl-RPM 0.40
*perl, v5.8.1 built for i386-linux-thread-multi [Locally applied patches: RC4]
*Red Hat Linux release 9.0.93 (Severn)
*gcc version 3.3.1 20030903 (Red Hat Linux 3.3.1-4)
*RPM version 4.2.1
Attempting to build this package results in either:
perl Makefile.PL 'OPTIMIZE=-O3 -g -pipe -march=athlon-mp' PREFIX=/var/tmp/perl-RPM-0.40-root/usr INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Local build detected. Generating Perl-RPM.spec...
Generating rpmrc...
Generating rpmmacros...
Writing Makefile for RPM
/usr/bin/make
cp RPM.pm blib/lib/RPM.pm
cp RPM/Header.pm blib/lib/RPM/Header.pm
cp RPM/Constants.pm blib/lib/RPM/Constants.pm
cp RPM/Error.pm blib/lib/RPM/Error.pm
cp RPM/Database.pm blib/lib/RPM/Database.pm
/usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -noversioncheck -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap RPM/Error.xs > RPM/Error.xsc && mv RPM/Error.xsc RPM/Error.c
gcc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -g -pipe -march=athlon-mp -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" RPM/Error.c -o RPM/Error.o
Error.xs: In function `rpm_catch_errors':
Error.xs:36: error: syntax error before '}' token
Error.xs: In function `clear_errors':
Error.xs:68: error: syntax error before '}' token
make: *** [RPM/Error.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.48564 (%build)
*****OR******
perl Makefile.PL 'OPTIMIZE=-O3 -g -pipe -march=athlon-mp' PREFIX=/var/tmp/perl-RPM-0.40-root/usr INSTALLDIRS=vendor
Checking if your kit is complete...
Looks good
Local build detected. Generating Perl-RPM.spec...
Generating rpmrc...
Generating rpmmacros...
Writing Makefile for RPM
/usr/bin/make
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
cp RPM.pm blib/lib/RPM.pm
cp RPM/Error.pm blib/lib/RPM/Error.pm
/usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -noversioncheck -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap RPM/Database.xs > RPM/Database.xsc && mv RPM/Database.xsc RPM/Database.c
gcc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -g -pipe -march=athlon-mp -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-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.1/ExtUtils/xsubpp -noversioncheck -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap RPM/Header.xs > RPM/Header.xsc && mv RPM/Header.xsc RPM/Header.c
gcc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -g -pipe -march=athlon-mp -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" RPM/Header.c -o RPM/Header.o
/usr/bin/perl /usr/lib/perl5/5.8.1/ExtUtils/xsubpp -noversioncheck -typemap /usr/lib/perl5/5.8.1/ExtUtils/typemap -typemap typemap RPM/Constants.xs > RPM/Constants.xsc && mv RPM/Constants.xsc RPM/Constants.c
gcc -c -I. -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -g -pipe -march=athlon-mp -DVERSION=\"0.40\" -DXS_VERSION=\"0.40\" -fPIC "-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE" RPM/Constants.c -o RPM/Constants.o
Constants.xs: In function `constant':
Constants.xs:19: error: `CHECKSIG_GPG' undeclared (first use in this function)
Constants.xs:19: error: (Each undeclared identifier is reported only once
Constants.xs:19: error: for each function it appears in.)
Constants.xs:21: error: `CHECKSIG_MD5' undeclared (first use in this function)
Constants.xs:23: error: `CHECKSIG_PGP' undeclared (first use in this function)
Constants.xs:240: error: `RPMFILE_DONOTUSE' undeclared (first use in this function)
Constants.xs:322: error: `RPMSIG_BAD' undeclared (first use in this function)
Constants.xs:324: error: `RPMSIG_NOKEY' undeclared (first use in this function)
Constants.xs:326: error: `RPMSIG_NOTTRUSTED' undeclared (first use in this function)
Constants.xs:328: error: `RPMSIG_OK' undeclared (first use in this function)
Constants.xs:330: error: `RPMSIG_UNKNOWN' undeclared (first use in this function)
make: *** [RPM/Constants.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.28192 (%build)
Unfortunately I'm not quite sure what is causing this, otherwise I'd try to provide more information :-(. Seems like the new perl might be a little flaky, but I thought I'd report it anyway.