Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4763 - rpm 4.0.4-r2 fails to build
Summary: rpm 4.0.4-r2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-09 13:46 UTC by Sloan Poe
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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 Sloan Poe 2002-07-09 13:46:59 UTC
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
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-07-10 13:21:14 UTC
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). 
Comment 2 Sloan Poe 2002-07-10 13:37:51 UTC
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..


Comment 3 Sloan Poe 2002-07-10 14:04:12 UTC
that seemed to solve the problem.
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-07-10 15:35:44 UTC
OK