I'm trying to emerge rpm-4.0.4-r2 and I get the following error: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../build -I../lib -I../rpmio -I../beecrypt -I/usr/local/include -march=i686 -O3 -pipe -D_GNU_SOURC E -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -D_GNU_SOURCE -D_REENTRANT -Wall -Wpointer-arith -Wstri ct-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 dbconfig.c:60: (near initialization for `rdbOptions[1].argInfo') dbconfig.c:63: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:63: initializer element is not constant dbconfig.c:63: (near initialization for `rdbOptions[2].argInfo') dbconfig.c:65: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:65: initializer element is not constant dbconfig.c:65: (near initialization for `rdbOptions[3].argInfo') dbconfig.c:68: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:68: initializer element is not constant dbconfig.c:68: (near initialization for `rdbOptions[4].argInfo') dbconfig.c:70: `POPT_BIT_SET' undeclared here (not in a function) dbconfig.c:70: initializer element is not constant dbconfig.c:70: (near initialization for `rdbOptions[5].argInfo') ... it goes on like that to dbconfig.c:479 then: ... dbconfig.c: In function `prDbiOpenFlags': dbconfig.c:531: `POPT_BIT_SET' undeclared (first use in this function) make[2]: *** [dbconfig.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/rpm-4.0.4-r2/work/rpm-4.0.4/rpmdb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/rpm-4.0.4-r2/work/rpm-4.0.4' make: *** [all-recursive-am] Error 2
This looks like bugs #3356, #3198, #3136, #3002.... The wierd thing is, rpm-4.0.4-r2 was supposed to fix these problems. The manual solution is "emerge -C popt rpm; emerge popt rpm" but before you try that please check and tell me: - Do you have dev-libs/popt emerged? What revisions (if there are several and you didn't unmerge the old ones, say that too). - Do you have /usr/include/popt.h? Then try the commands above (i.e. remove all versions of popt, emrege the latest popt cleanly, try to emerge rpm again).
qpkg -v popt shows: dev-libs/popt-1.5 dev-libs/popt-1.6.3 * I do have popt.h I'm going to try unmerging popt now..
that seemed to solve the problem.
OK