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

Bug 96628

Summary: Portage strips crucial symbols from static libraries
Product: Gentoo Linux Reporter: Ben Anderson <roothorick>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: VERIFIED NEEDINFO    
Severity: major CC: toolchain
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ben Anderson 2005-06-20 11:00:25 UTC
While stripping symbols to conserve space, Portage strips out symbols that ld needs to link static libraries. This doesn't incapacitate the system, as everything is dynamically linked by default, but when you DO want something statically linked, you'll get "unresolved reference" errors that just don't make sense. This can be predictably reproduced simply by adding "-static" to LDFLAGS and compiling just about anything that links to a library that's available on the system in static form. It can be worked around by adding FEATURES="nostrip" to your make.conf and recompiling all the affected libraries.
Comment 1 SpanKY gentoo-dev 2005-06-20 12:14:18 UTC
the only time ive seen problems with stripping static archives is when users
LDFLAGS were flaky or when the toolchain was doing things wrong

the default strip flags --strip-unneeded is sane
Comment 2 solar (RETIRED) gentoo-dev 2005-06-20 13:26:39 UTC
This is invalid.
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:01:31 UTC
Closing due to old age