Bug 41861

Summary: gnorpm won't rebuild from source rpm
Product: [Retired] Red Hat Raw Hide Reporter: Vladimir Kondratiev <vladimir.kondratiev>
Component: gnorpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-22 17:36:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Vladimir Kondratiev 2001-05-22 17:36:28 UTC
Description of Problem:
When I try to rebuild gnorpm from source rpm, build failed.

How Reproducible:
Always

Steps to Reproduce:
1. rpm --rebuild gnorpm-0.96-1.src.rpm

Actual Results:
(list of functions missed in the rpm library)

tester.o: In function `main':
tester.o(.text+0x52): undefined reference to `rpmdbOpen'
../find/libfind.a(guess.o): In function `guessInit':
guess.o(.text+0x131): undefined reference to `rpmdbInitIterator'
guess.o(.text+0x154): undefined reference to `XrpmdbNextIterator'
guess.o(.text+0x3b6): undefined reference to `rpmdbFreeIterator'
/usr/lib/librpm.so: undefined reference to `htGetEntry'
/usr/lib/librpm.so: undefined reference to `rpmdbClose'
/usr/lib/librpm.so: undefined reference to `rpmdbPruneIterator'
/usr/lib/librpm.so: undefined reference to `rpmdbRemove'
/usr/lib/librpm.so: undefined reference to `rpmdbGetIteratorRpmDB'
/usr/lib/librpm.so: undefined reference to `rpmdbGetIteratorOffset'
/usr/lib/librpm.so: undefined reference to `htFree'
/usr/lib/librpm.so: undefined reference to `rpmdbGetIteratorCount'
/usr/lib/librpm.so: undefined reference to `dbiFreeIndexSet'
/usr/lib/librpm.so: undefined reference to `fpCacheCreate'
/usr/lib/librpm.so: undefined reference to `dbiOpen'
/usr/lib/librpm.so: undefined reference to `dbiPut'
/usr/lib/librpm.so: undefined reference to `fpLookupList'
/usr/lib/librpm.so: undefined reference to `dbiGet'/usr/lib/librpm.so:
undefined reference to `htCreate'
/usr/lib/librpm.so: undefined reference to `fpHashFunction'
/usr/lib/librpm.so: undefined reference to `rpmdbSync'
/usr/lib/librpm.so: undefined reference to `rpmdbSetIteratorVersion'
/usr/lib/librpm.so: undefined reference to `rpmdbCountPackages'
/usr/lib/librpm.so: undefined reference to `XdbiCopen'
/usr/lib/librpm.so: undefined reference to `rpmdbSetIteratorRelease'
/usr/lib/librpm.so: undefined reference to `htAddEntry'
/usr/lib/librpm.so: undefined reference to `dbiIndexRecordOffset'
/usr/lib/librpm.so: undefined reference to `fpEqual'
/usr/lib/librpm.so: undefined reference to `dbiIndexRecordFileNumber'
/usr/lib/librpm.so: undefined reference to `rpmdbSetIteratorRewrite'
/usr/lib/librpm.so: undefined reference to `rpmdbAppendIterator'
/usr/lib/librpm.so: undefined reference to `fpCacheFree'
/usr/lib/librpm.so: undefined reference to `XdbiCclose'
/usr/lib/librpm.so: undefined reference to `rpmdbFindFpList'
/usr/lib/librpm.so: undefined reference to `rpmdbAdd'
/usr/lib/librpm.so: undefined reference to `dbiIndexSetCount'
/usr/lib/librpm.so: undefined reference to `rpmdbOpenAll'
/usr/lib/librpm.so: undefined reference to `rpmdbSetIteratorModified'
collect2: ld returned 1 exit status


Expected Results:


Additional Information:
see bug 41859

Comment 1 Jeff Johnson 2001-05-22 17:40:21 UTC
Yup, you're running unreleased development code, caveat emptor.

Either go back to rpm-4.0.2, or add -lrpmdb to your link step.