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 :)
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
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?
do you have the latest pop emerged?
Yes, I think so: dev-libs/popt-1.6.3 But it has no mention of POPT anywhere in its source...
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.
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.
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.