Bug 738189
Summary: | Statically compiled binaries are limited to new systems | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nadav Har'El <nyh> |
Component: | glibc | Assignee: | Andreas Schwab <schwab> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | fweimer, jakub, schwab |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-09-14 10:11:38 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
Nadav Har'El
2011-09-14 10:01:41 UTC
The 2.6.32+ limitation is there because Fedora 15 glibc is configured to optimize away support for older kernels, which speeds it up. If you think that -static linked binaries are self-contained, you're wrong, whenever a statically linked binary uses localization, or getaddrinfo/gethostbyname/whatever other function needs nss etc., it needs to dlopen libraries and then it is much more system dependent than dynamically linked binary. See http://www.akkadia.org/drepper/no_static_linking.html for more information. If you want binaries that you can run on older systems, just compile/link them (preferrably dynamically) on the oldest system you want to support. It makes little sense (at least for me) to, on one hand, have a package glibc-static-2.14-5.x86_64, and on the other hand point people who have questions about it to a web page page about static linking being evil. If you think it is evil, perhaps the package should be dropped altogether? In any case, I'm well aware of the *potential* portability problems even with static linking. But in many practical cases, it sort-of works, and this is why people want to have the static linking option (can you think of another reason?). |