LWN.net Logo

A turning point for GNU libc

A turning point for GNU libc

Posted Apr 1, 2012 1:54 UTC (Sun) by BenHutchings (subscriber, #37955)
In reply to: A turning point for GNU libc by kleptog
Parent article: A turning point for GNU libc

If you want a program to run on older versions of glibc, you need to use the old interface definitions and the old symbol versions. Just overriding the symbol versions will generally result in your program corrupting data or crashing.


(Log in to post comments)

A turning point for GNU libc

Posted Apr 5, 2012 8:34 UTC (Thu) by nix (subscriber, #2304) [Link]

You'll also need the versions of libc_nonshared.a and libpthread_nonshared.a that belong to the version of glibc you're trying to use those versioned symbols from (this is one reason why arbitrary .o files are not safe to keep across glibc upgrades). All told it is sufficiently hard to make this work that it's not really worth bothering.

A turning point for GNU libc

Posted Apr 5, 2012 15:06 UTC (Thu) by khim (subscriber, #9252) [Link]

Actually this is what LSB is doing and it works fine AFAICS.

A turning point for GNU libc

Posted Apr 8, 2012 11:21 UTC (Sun) by nix (subscriber, #2304) [Link]

Yeah. I was talking about doing it by hand, yourself. :)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds