Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9980 - [~x86] rpm 4.0.4-r4 won't complete build process: link failure for rpm2cpio wrt bz2
Summary: [~x86] rpm 4.0.4-r4 won't complete build process: link failure for rpm2cpio w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jonathan Nall
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-30 15:47 UTC by Phil Richards
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 Phil Richards 2002-10-30 15:47:40 UTC
Trying to emerge -u rpm-4.0.4-r4 and get the following error message.
All other packages on my system are fully updated to the latest ~x86 versions.

[...]
make[2]: Entering directory `/var/tmp/portage/rpm-4.0.4-r4/work/rpm-4.0.4'
gcc -DHAVE_CONFIG_H -I. -I. -I. -I./build       -I./lib         -I./rpmdb     
-I./rpmio        -I./beecrypt                -march=athlon -O3 -pipe
-D_GNU_SOURCE -D_REENTRANT -Wall  -Wstrict-prototypes -Wmissing-prototypes
-Wno-char-subscripts -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -c rpm2cpio.c
/bin/sh ./libtool --mode=link gcc  -march=athlon -O3 -pipe -D_GNU_SOURCE
-D_REENTRANT -Wall  -Wstrict-prototypes -Wmissing-prototypes
-Wno-char-subscripts -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith
-Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts  -o rpm2cpio
-all-static rpm2cpio.o ./build/librpmbuild.la    ./lib/librpm.la        
./rpmdb/librpmdb.la     ./rpmio/librpmio.la    /usr/lib/libpopt.la             
   -lrt -lpthread
mkdir .libs
gcc -march=athlon -O3 -pipe -D_GNU_SOURCE -D_REENTRANT -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wno-char-subscripts -D_GNU_SOURCE -D_REENTRANT -Wall
-Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o
rpm2cpio -static rpm2cpio.o  ./build/.libs/librpmbuild.a ./lib/.libs/librpm.a
./rpmdb/.libs/librpmdb.a ./rpmio/.libs/librpmio.a -L/usr/local/lib -lz -lbz2
/usr/lib/libpopt.a -lrt -lpthread
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../libbz2.a(bzlib.o)(.text+0x2d9b):
In function `bzopen_or_bzdopen':
: undefined reference to `__ctype_b'
/usr/lib/libpopt.a(poptparse.o)(.text+0x1dd): In function `poptParseArgvString':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make[2]: *** [rpm2cpio] Error 1
make[2]: Leaving directory `/var/tmp/portage/rpm-4.0.4-r4/work/rpm-4.0.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/rpm-4.0.4-r4/work/rpm-4.0.4'
make: *** [all-recursive-am] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)
Comment 1 Phil Richards 2002-11-01 13:03:17 UTC
After a bit of playing around, I've managed to get the compilation to work.
It required emerging bzip2 and popt again - (not sure that bzip2 was required,
but I was playing safe).

I'm not sure whether the conclusion to this is that (a) it was my cock-up;
(b) the dependency checking between ebuilds isn't working quite how I expect;
or (c) an ebuild version needed bumping somewhere along the line to ensure
a rebuild was made...

Any advice/ideas would be good.  (I've just had the same problem with pan and
aspell, in fact, and needed to emerge aspell again to fix pan...)
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-11-02 00:34:55 UTC
Nall, this one is worth investigating as well? the popt issue I mean.

Phil: we're working on the aspell issue, see bug 9996

*** This bug has been marked as a duplicate of 9996 ***
Comment 3 Jonathan Nall 2002-11-07 11:36:15 UTC
i think the popt issue and the aspell issue are different. you're dealing with
static libs here and the aspell bug is a shared lib issue. 

i know it's unlikely, but can you post the following info:
versions for the following (both before upgrading and after upgrading):
bzip, popt, rpm

(if it exists, you might dig through /var/log/emerge.log for this info)

i'm reopening this and assigning it to myself.
Comment 4 Phil Richards 2002-11-07 12:52:22 UTC
Installed versions are:
popt   1.6.3
bzip2  1.0.2-r2
rpm    4.0.4-r4

Old versions:
popt   1.6.3
bzip2  1.0.2-r2
rpm    4.0.4-r3

But that's probably not important...

I have recently (3 Oct) done a completely clean build of 1.4_rc1,
followed by an upgrade to ~x86 on Oct 26 - unfortunately, the emerge.log
file starts at Oct 26.

I think the thing that might have changed most significantly is glibc - and
that would tie in with the symbol that was showing problems (which is refered
to in <ctype>).

Makes sense, perhaps, but it still shouldn't get through the dependency
mechanism... :-)

phil
Comment 5 Jonathan Nall 2002-11-19 10:49:10 UTC
closing this as it seems pretty unreproducible.