Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3198 - Cannot build rpm-4.0.4
Summary: Cannot build rpm-4.0.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ben Lutgens (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-29 16:59 UTC by Wout Mertens (RETIRED)
Modified: 2002-06-02 20:17 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 Wout Mertens (RETIRED) gentoo-dev 2002-05-29 16:59:27 UTC
When trying to emerge rpm-4.0.4 (needed for kdeadmin-3.0.1):    make[2]: Entering directory  `/var/tmp/portage/rpm-4.0.4-r1/work/rpm-4.0.4/rpmdb'  /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I..  -I../build -I../lib -I../rpmio -I../beecrypt     -march=i686 -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 dbconfig.c  mkdir .libs  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio  -I../beecrypt -march=i686 -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 dbconfig.c    -fPIC -DPIC -o .libs/dbconfig.lo  dbconfig.c:57: `POPT_BIT_SET' undeclared here (not in a function)  dbconfig.c:57: initializer element is not constant  dbconfig.c:57: (near initialization for `rdbOptions[0].argInfo')  dbconfig.c:60: `POPT_BIT_SET' undeclared here (not in a function)  dbconfig.c:60: initializer element is not constant    Note that I tried both the -r2 and -r1 ebuild, and I can't get them to build.  I can only find mention of the POPT stuff within the source, it isn't anywhere  on my system, so I'm thinking there is something wrong here :)
Comment 1 Wout Mertens (RETIRED) gentoo-dev 2002-05-29 17:00:52 UTC
Trying again:  make[2]: Entering directory `/var/tmp/portage/rpm-4.0.4-r1/work/rpm-4.0.4/rpmdb' /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio -I../beecrypt     -march=i686 -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 dbconfig.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio -I../beecrypt -march=i686 -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 dbconfig.c    -fPIC -DPIC -o .libs/dbconfig.lo dbconfig.c:57: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:57: initializer element is not constant dbconfig.c:57: (near initialization for `rdbOptions[0].argInfo') dbconfig.c:60: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:60: initializer element is not constant  
Comment 2 Wout Mertens (RETIRED) gentoo-dev 2002-05-29 17:04:20 UTC
Last try, this time not from Konqueror

make[2]: Entering directory `/var/tmp/portage/rpm-4.0.4-r1/work/rpm-4.0.4/rpmdb'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio -I../beecrypt     -march=i686 -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 dbconfig.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio -I../beecrypt -march=i686 -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 dbconfig.c    -fPIC -DPIC -o .libs/dbconfig.lo
dbconfig.c:57: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:57: initializer element is not constant
dbconfig.c:57: (near initialization for `rdbOptions[0].argInfo')
dbconfig.c:60: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:60: initializer element is not constant
[...]

And so on, it fails building. I can't get it to build, not the -r1, not the -r2. The only
mention of POPT is in the rpm source, so I think something strange is going on... something to do with using the system popt?
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-05-29 17:22:10 UTC
do you have the latest pop emerged?
Comment 4 Wout Mertens (RETIRED) gentoo-dev 2002-05-29 17:27:33 UTC
Yes, I think so: 
dev-libs/popt-1.6.3 
 
But it has no mention of POPT anywhere in its source... 
Comment 5 Spider (RETIRED) gentoo-dev 2002-05-29 19:13:05 UTC
I'll stomp in on this one :

emerge -C rpm popt
emerge rpm

its because old rpm contained an even older version of popt which overwrote the
popt ebuild, and then the new rpm will break because all dependencies work but
the old rpm broke popt.....

solution -could- be to update a revision of popt, update a revision of rpm, and
force the new rpm to depend on the new popt and higher, this will at least fix
all theese bugs in the future.
Comment 6 Wout Mertens 2002-06-01 07:23:47 UTC
Yup, that was the problem. It seems a bit sucky to let everyone rebuild popt just for the people who have the old rpm. Maybe portage needs some kind of FORCE_REBUILD dependency, where you can specify which packages need to be rebuilt, no matter what. 
Comment 7 Ben Lutgens (RETIRED) gentoo-dev 2002-06-02 20:17:57 UTC
Once again I say, this bug is fixed in rpm-4.0.4-r2. Don't post this bug again
unless you plan to take ownership of it because it builds fine for me.