Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340080 - sys-libs/gdbm: libgdbm_compat.dylib isn't linked to libgdbm.dylib on Mac OS
Summary: sys-libs/gdbm: libgdbm_compat.dylib isn't linked to libgdbm.dylib on Mac OS
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
Depends on: 223865 298674
  Show dependency tree
Reported: 2010-10-07 17:54 UTC by Charles Davis
Modified: 2012-03-07 19:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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.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.