[Fedora-directory-devel] Please review: Bug 340361: build links wrong libdb on 64-bit systems

Richard Megginson rmeggins at redhat.com
Fri Oct 19 19:56:39 UTC 2007


https://bugzilla.redhat.com/show_bug.cgi?id=340361
Resolves: bug 340361
Bug Description: build links wrong libdb on 64-bit systems
Reviewed by: ???
Files: see diff
Branch: HEAD
Fix Description: Once again, libtool attempts to be helpful but is 
instead harmful.  If you have both db4-devel.i386 and db4-devel.x86_64 
installed, this will install /usr/lib/libdb-4.N.la.  If you use libtool 
to link with -ldb-4.N, and you do not specify a search path, libtool 
will attempt to find this library in it's default search path, which is 
something like /usr/lib/gcc/x86_64/blahblahblah/../../../lib.  This will 
find /usr/lib/libdb-4.N.la and will use the information in that file and 
link the object with /usr/lib/libdb-4.N.so, instead of just passing 
-ldb-4.N through to the linker which is what it ought to do (darn 
libtool).  In order to make libtool do the right thing, we must pass in 
-L$libdir -ldb-4.N to libtool so that it will use $libdir first in its 
search path.
Platforms tested: RHEL5 x86_64, RHEL4 x86_64
Flag Day: yes - autotool file changes
Doc impact: no
https://bugzilla.redhat.com/attachment.cgi?id=233041&action=diff

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20071019/436c2c3d/attachment.bin>


More information about the Fedora-directory-devel mailing list