Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5425 - rpm-4.0.4-r2.ebuild Failure
Summary: rpm-4.0.4-r2.ebuild Failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seemant Kulleen (RETIRED)
URL: http://www.rpm.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-22 17:01 UTC by Jason Leidigh
Modified: 2003-02-04 19:42 UTC (History)
2 users (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 Jason Leidigh 2002-07-22 17:01:29 UTC
RPM 4.0.4-r2 Fails to build giving these messages (And more...):

dbconfig.c:88: (near initialization for `rdbOptions[14].argInfo')
dbconfig.c:90: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:90: initializer element is not constant
dbconfig.c:90: (near initialization for `rdbOptions[15].argInfo')
dbconfig.c:92: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:92: initializer element is not constant
dbconfig.c:92: (near initialization for `rdbOptions[16].argInfo')
dbconfig.c:94: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:94: initializer element is not constant
dbconfig.c:94: (near initialization for `rdbOptions[17].argInfo')
dbconfig.c:96: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:96: initializer element is not constant
dbconfig.c:96: (near initialization for `rdbOptions[18].argInfo')
dbconfig.c:99: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:99: initializer element is not constant
dbconfig.c:99: (near initialization for `rdbOptions[19].argInfo')
dbconfig.c:101: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:101: initializer element is not constant
dbconfig.c:101: (near initialization for `rdbOptions[20].argInfo')
dbconfig.c:104: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:104: initializer element is not constant
dbconfig.c:104: (near initialization for `rdbOptions[21].argInfo')
dbconfig.c:106: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:106: initializer element is not constant
dbconfig.c:106: (near initialization for `rdbOptions[22].argInfo')
dbconfig.c:108: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:108: initializer element is not constant
dbconfig.c:108: (near initialization for `rdbOptions[23].argInfo')
dbconfig.c:110: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:110: initializer element is not constant
dbconfig.c:110: (near initialization for `rdbOptions[24].argInfo')
dbconfig.c:112: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:112: initializer element is not constant
dbconfig.c:112: (near initialization for `rdbOptions[25].argInfo')
dbconfig.c:182: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:182: initializer element is not constant
dbconfig.c:182: (near initialization for `rdbOptions[57].argInfo')
dbconfig.c:184: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:184: initializer element is not constant
dbconfig.c:184: (near initialization for `rdbOptions[58].argInfo')
dbconfig.c:186: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:186: initializer element is not constant
dbconfig.c:186: (near initialization for `rdbOptions[59].argInfo')
dbconfig.c:188: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:188: initializer element is not constant
dbconfig.c:188: (near initialization for `rdbOptions[60].argInfo')
dbconfig.c:226: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:226: initializer element is not constant
dbconfig.c:226: (near initialization for `rdbOptions[73].argInfo')
dbconfig.c:228: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:228: initializer element is not constant
dbconfig.c:228: (near initialization for `rdbOptions[74].argInfo')
dbconfig.c:230: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:230: initializer element is not constant
dbconfig.c:230: (near initialization for `rdbOptions[75].argInfo')
dbconfig.c:232: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:232: initializer element is not constant
dbconfig.c:232: (near initialization for `rdbOptions[76].argInfo')
dbconfig.c:235: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:235: initializer element is not constant
dbconfig.c:235: (near initialization for `rdbOptions[77].argInfo')
dbconfig.c:237: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:237: initializer element is not constant
dbconfig.c:237: (near initialization for `rdbOptions[78].argInfo')
dbconfig.c:244: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:244: initializer element is not constant
dbconfig.c:244: (near initialization for `rdbOptions[81].argInfo')
dbconfig.c:246: `POPT_BIT_SET' undeclared here (not in a function)
dbconfig.c:246: initializer element is not constant
dbconfig.c:246: (near initialization for `rdbOptions[82].argInfo')
dbconfig.c: In function `dbSaveLong':
dbconfig.c:267: `POPT_ARGFLAG_NOT' undeclared (first use in this function)
dbconfig.c:267: (Each undeclared identifier is reported only once
dbconfig.c:267: for each function it appears in.)
dbconfig.c:270: `POPT_ARGFLAG_LOGICALOPS' undeclared (first use in this function)
dbconfig.c:274: `POPT_ARGFLAG_OR' undeclared (first use in this function)
dbconfig.c:277: `POPT_ARGFLAG_AND' undeclared (first use in this function)
dbconfig.c:280: `POPT_ARGFLAG_XOR' undeclared (first use in this function)
dbconfig.c:284: `POPT_ERROR_BADOPERATION' undeclared (first use in this function)
dbconfig.c:272: warning: unreachable code at beginning of switch statement
dbconfig.c: In function `dbSaveInt':
dbconfig.c:293: `POPT_ARGFLAG_NOT' undeclared (first use in this function)
dbconfig.c:296: `POPT_ARGFLAG_LOGICALOPS' undeclared (first use in this function)
dbconfig.c:300: `POPT_ARGFLAG_OR' undeclared (first use in this function)
dbconfig.c:303: `POPT_ARGFLAG_AND' undeclared (first use in this function)
dbconfig.c:306: `POPT_ARGFLAG_XOR' undeclared (first use in this function)
dbconfig.c:310: `POPT_ERROR_BADOPERATION' undeclared (first use in this function)
dbconfig.c:298: warning: unreachable code at beginning of switch statement
dbconfig.c: In function `db3New':
dbconfig.c:365: warning: pointer of type `void *' used in arithmetic
dbconfig.c:410: `POPT_BIT_SET' undeclared (first use in this function)
dbconfig.c:411: `POPT_BIT_CLR' undeclared (first use in this function)
dbconfig.c:479: warning: pointer of type `void *' used in arithmetic
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

!!! ERROR: the make command did not complete successfully.
!!! ("make")
!!! Since this is a critical task, ebuild will be stopped.

!!! emerge aborting on  /usr/portage/app-arch/rpm/rpm-4.0.4-r2.ebuild .


*******************************************************************************

After investigating the problem I have found that this "missing" declarations
are in ./popt/popt.h" yet the ebuild file summarily dels the folder:
rm -rf ${S}/popt

I commented the line in the ebuild file, however this is only half the problem.
 The offending file ./rpmdb/dbconfig.c fails in include the header and I did not
find it to be included from within another include (which would have coused an
error anyway as it doesn't exist).

Is there a way to alter the dbconfig.c file to include the header and then run
emerge?  Emerge unpacks the downloaded package each time and I cant fool it by
editing and repacking as this will fail the checksum test......help.....?

Ah PS....found this problem as I was try to upate KDE 3.0 => 3.0.2 Thanks!!
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-22 18:46:27 UTC
emerge popt, and see if that works, please
Comment 2 Balaji Rangaswamy 2002-07-23 17:02:41 UTC
it doesnt build for me either. Im doing a fresh first-time-ever install of 
Gentoo. Tried getting the X and KDE up and rpm was a dependancy. These are the 
messages I get: 

config.status: creating xa_ext.h 
config.status: creating db_config.h 
cd . && aclocal 
aclocal: configure.in: 188: macro 'AM_PROG_LIBTOOL' not found in library 
aclocal: configure.in: 188: macro 'AM_GNU_GETTEXT' not found in library 
make: ** [aclocal.m4] Error 1 

!!! ERROR: the make command did not complete successfully. 
!!! ("make") 
!!! Since this is a critical task, ebuild will be stopped. 

!!! emerge aborting on /usr/portage/app-arch/rpm/rpm-4.0.4-r2.ebuild 


Also posted on the forums here: 
http://forums.gentoo.org/viewtopic.php?p=49488&highlight=#49488
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-07-23 20:43:11 UTC
the -r3 version of the rpm ebuild should take care of Balaji's problem anyway.

As for Jason,  did it get sorted when you emerged popt?