Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 340080

Summary: sys-libs/gdbm: libgdbm_compat.dylib isn't linked to libgdbm.dylib on Mac OS
Product: Gentoo/Alt Reporter: Charles Davis <cdavis5x>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: VERIFIED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: OS X   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 223865, 298674    
Bug Blocks:    

Description Charles Davis 2010-10-07 17:54:36 UTC
On Mac OS, the linker NEVER links in unused libs. For this reason, building dev-lang/python with USE=gdbm fails in the same way as bug 298674.

Unfortunately, there is no way to turn this off (at least that I know of, and I even read the manpage!), so the workaround for bug 298674 won't work.

I used otool to look at libgdbm_compat.dylib, and I found that it is NOT linked to libgdbm.dylib:

$ otool -L ~/Gentoo/usr/lib/libgdbm_compat.dylib
/Users/chip/Gentoo/usr/lib/libgdbm_compat.dylib:
	/Users/chip/Gentoo/usr/lib/libgdbm_compat.3.dylib (compatibility version 4.0.0, current version 4.0.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)

That's odd. Now why would that be?
Comment 1 Charles Davis 2010-11-01 00:54:24 UTC
Ping. Any ideas?
Comment 2 Fabian Groffen gentoo-dev 2010-11-01 16:22:07 UTC
please update to gdbm-1.8.3-r04.1, I reverted the hack from bug #223865, because it's causing this behaviour
Comment 3 Charles Davis 2010-11-01 20:57:52 UTC
Yep, that fixed it. Thanks again.