Bug 111780
Summary: | Can't resolve symbols in shared lib with objects from static lib | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 2.1 | Reporter: | Kurtis D. Rader <krader> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.1 | CC: | fweimer |
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: | 2003-12-10 08:34:54 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Kurtis D. Rader
2003-12-10 01:13:56 UTC
Linking with -L. -Wl,-Bdynamic -lcsrclib1 -Wl,-Bstatic -lcsrclib2 is a bug, you never should link the system libraries statically unless the whole link is -static. It should be -L. -Wl,-Bdynamic -lcsrclib1 -Wl,-Bstatic -lcsrclib2 -Wl,-Bdynamic (though the first -Wl,-Bdynamic is unnecessary). |