Linux binaries are usually dynamically linked to the core system library (libc). This keeps the memory footprint of the binary quite small but binaries which are dependent on the latest libraries will not run on older systems. Conversely, binaries linked to older libraries will run happily on the latest systems.
Therefore, in order to ensure our application has good coverage during distribution we need to figure out the oldest libc we can support and link our binary against that.
How should we determine the oldest version of libc we can link to?
Work out which symbols in your executable are creating the dependency on the undesired version of glibc.
Look within the depended-upon library to see if there are any symbols in older versions that you can link against:
We’re in luck!
Request the version from
GLIBC_2.2.5in your code:Observe that GLIBC_2.3 is no longer needed:
For further information, see http://web.archive.org/web/20160107032111/http://www.trevorpounds.com/blog/?p=103.