LWN.net Logo

Changes in glibc development

Changes in glibc development

Posted Mar 28, 2012 15:21 UTC (Wed) by michaeljt (subscriber, #39183)
Parent article: Changes in glibc development

Does anyone who is following glibc development (Joe? Nix?) have a feeling for whether it is likely to become more friendly to static linking any time as a result of these changes?


(Log in to post comments)

Changes in glibc development

Posted Mar 29, 2012 16:15 UTC (Thu) by jwakely (subscriber, #60262) [Link]

I would guess it's unlikely. For distros or software vendors the arguments in the "static linking considered harmful" doc make sense, and most of the glibc team work for distros or software vendors.

I think for it to change there would need to be more people working on glibc who only care about more-specialised environments where most (or all) of the arguments are irrelevant.

Changes in glibc development

Posted Mar 29, 2012 16:40 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

Glibc is THE worst library for application developers. I can't make a simple executable on my Ubuntu 12.04 that can be run on RHEL6 because of incompatible glibc.

And _you_ _can't_ _do_ _anything_ about it. Nothing at all. You can at least package other libraries along with your application but you can't do it with glibc (yeah, 'considered harmful').

So I'm forced to rebuild all my apps on ancient RHEL5. Bleah.

Changes in glibc development

Posted Mar 29, 2012 17:14 UTC (Thu) by khim (subscriber, #9252) [Link]

I can't make a simple executable on my Ubuntu 12.04 that can be run on RHEL6 because of incompatible glibc.

Yes, you can. Install SDK, target LSB 4.0, problem solved. You can even target LSB 3.1 and support RHEL5 this way.

And yes, if you'll compile program this way your binary will use system-installed version of glibc, it'll not require any LSB packages.

LSB is surprisingly robust tool and it solves things like GLibC lack of forward compatibility nicely. The problem with it lies in the fact that it does not give you usable environment: libraries are added slowly and some essential ones are still missing. But this is not a GLibC problem.

Changes in glibc development

Posted Mar 29, 2012 18:24 UTC (Thu) by foom (subscriber, #14868) [Link]

Another the thing you can do is install an Ubuntu 10.04 chroot on your Ubuntu 12.04 system.

In fact, there's so many things you can do that it's hard to even know where to start enumerating them. :)

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