LWN.net Logo

GNU C library 2.16 released

GNU C library 2.16 released

Posted Jul 1, 2012 17:27 UTC (Sun) by simlo (subscriber, #10866)
Parent article: GNU C library 2.16 released

> Compatibility code for Linux kernel versions before 2.4 has been removed.
> Note that glibc is not expected to work with any Linux kernel version
> before 2.6.

Damn! So you need to upgrade to a 2.6 kernel to use C++11? 2.4 is still used in many embedded applications.


(Log in to post comments)

GNU C library 2.16 released

Posted Jul 1, 2012 17:58 UTC (Sun) by istenrot (subscriber, #69564) [Link]

Almost a decade has passed. I suppose there is no more reasons not to upgrade embedded systems to Linux 2.6/3.x. If somebody has not yet proted their proprietary user space code to 2.6 kernel, it's solely theirs fault.

GNU C library 2.16 released

Posted Jul 2, 2012 6:27 UTC (Mon) by simlo (subscriber, #10866) [Link]

The problem is not user space code - it is drivers. It takes a lot of work to move drivers to a newer kernel series when they are not included in Linus' source tree.

An why run new user space code on old systems? To share code between old and new projects, unless you want to keep the new systems stuck at old standards, you also have to upgrade the old systems. And upgrading the kernel is a lot of work, upgrading libc isn't as there should be no problem in recompiling the user space programs.

And yes, C++11 != C11 as commented by others, but I guess it will get difficult to compile a new gcc against an old libc very soon.

GNU C library 2.16 released

Posted Jul 2, 2012 14:19 UTC (Mon) by jwakely (subscriber, #60262) [Link]

Why would gcc want to do that? You guess wrong.

GNU C library 2.16 released

Posted Jul 1, 2012 20:40 UTC (Sun) by rgmoore (✭ supporter ✭, #75) [Link]

Who is seriously planning on running a bleeding-edge userspace on top of an ancient kernel? Is there ever any justification for trying to maintain kernel stability while upgrading libc that much? Or is this just a sign that I shouldn't keep trying to run my sarcasmometer on Fedora Core 1?

GNU C library 2.16 released

Posted Jul 2, 2012 21:32 UTC (Mon) by mathstuf (subscriber, #69389) [Link]

> Or is this just a sign that I shouldn't keep trying to run my sarcasmometer on Fedora Core 1?

I run mine on a two-headed coin. Boot up time in the microseconds too.

GNU C library 2.16 released

Posted Jul 1, 2012 21:06 UTC (Sun) by engla (guest, #47454) [Link]

ISO C11 is not C++11. C, not C++.

GNU C library 2.16 released

Posted Jul 1, 2012 21:56 UTC (Sun) by nix (subscriber, #2304) [Link]

In practice kernels before 2.4 were already not working. This was just admitting the already-existing state of affairs in the release notes, and starting the fairly long process of ripping out significant quantities of incredibly obsolete and broken 2.0--2.4 support code.

GNU C library 2.16 released

Posted Jul 1, 2012 22:46 UTC (Sun) by slashdot (guest, #22014) [Link]

Well, in the announcement they say that they removed code for kernels *BEFORE* 2.4, not for 2.4.

So it appears that there's still code for 2.4, but nobody cares enough to test it, and thus it's probably broken.

Or they got the announcement wrong perhaps.

Anyway, I'm not sure what this has to do with C++11, which is distinct from C11.

GNU C library 2.16 released

Posted Jul 1, 2012 23:49 UTC (Sun) by jzbiciak (✭ supporter ✭, #5246) [Link]

Compatibility code for Linux kernel versions before 2.4 has been removed. Note that glibc is not expected to work with any Linux kernel version before 2.6.

I read that as "2.4 might work, might not. You're on your own." That is, compatibility code for kernels prior to 2.4 is simply gone, breaking those ancient releases explicitly. Additionally anything before 2.6 is not really supported or expected to work, though it might. They haven't gone to pains to explicitly break that yet.

At least, that's how I read it.

GNU C library 2.16 released

Posted Jul 2, 2012 9:25 UTC (Mon) by nix (subscriber, #2304) [Link]

It's more that the code for 2.4 is more difficult to remove, so that removal was put off until after the 2.16 release.

GNU C library 2.16 released

Posted Jul 2, 2012 6:17 UTC (Mon) by simlo (subscriber, #10866) [Link]

C++11 != C11 ofcouse. Sorry, I missread the anouncement.

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