History of glibc and Linux libc

History of glibc and Linux libc


The “Linux libc” fork of the GNU C Library is now a mostly forgotten event. The fork lived from 1994 to 1997/8—just before my time—but I’ve found interesting accounts of it by others.

The main sources of information are:

Reasons

According to Wheeler’s appendix, the fork occurred just after February 1994, and the motivations were procedural/organisational: “the Linux kernel developers thought that the FSF’s development process for the C library was too slow and not responding to their needs”. This ties in with Bruce Perens’ comment in 2000 that the Linux libc fork “went on for years while Linux stabilized” (from the article Forking: it could even happen to you).

Moen’s article says the reason was technical: “they decided that FSF’s library (then at version 1-point-something) could/should best be adapted for the Linux kernel as a separately-maintained project”. Both reasons could have contributed.

During the fork

H. J. Lu is mentioned by a few people as being the maintainer or main contributor to Linux libc.

Elliot Lee’s article says that while the Linux kernel developers were using their fork, glibc development stalled for a time. This coincides with the time that FSF spent working on version 2.0, during which there were no official releases for two years. The development progress during this time is noted in the twice-annual GNU’s bulletins that FSF published throughout the 90s.

From the NEWS files, it seems Cygnus Solutions hired Ulrich Drepper to work on it from late 1995 onwards since the January 1996 GNU’s bulletin mentions that Drepper has contributed a lot “in the last few months”.

Glibc 2.0

It looks like glibc 2.0 was released in January or February 1997 (from the dates in the GNU ftp site, from the January 1997 GNU’s bulletin, and from some mailing list discussion archives).

By all accounts, glibc-2.0 surpassed Linux libc on features, standards, and code cleanliness. Elliot Lee’s article goes into most detail on this, citing features such as POSIX compliance, internationalisation support, multithreaded support, IPv6, and 64-bit data access, and library version migration support.

There is an 1998 interview with H.J. Lu about libc5 and glibc. The interview mostly focuses on technical differences and the transition. H.J. is quite positive about glibc 2.0.

Ending

Bruce Perens’ one line comment about the aftermath is that the projects “re-merged”, however, while the communities and contributors may have merged, according to Stallman, little or no code did. According to Stallman, the Linux libc had insufficient records of authorship or copyright ownership for the code they distributed (something the GNU project has always been very strict about), and the Linux libc maintainers were unwilling to sort this out.

In 1997 through 1998 nearly all GNU/Linux systems switched from libc back to glibc. Red Hat migrated in December 1997, and Debian was planning their migration at that time too, according to Lee. And so ended a story that is now rarely mentioned.

Ciarán O’Riordan,—Support free software: Join FSFE’s Fellowship

Category: 
Tagging: 

Comments

Laurie Langham's picture

The development of GNU/Linux has been quite a roller-coaster ride, with nearly all attention focused upon development and the future. The period, over which this has occurred, is now long enough that there is the very real risk that certain segments of the history of GNU/Linux might become lost to future users. It's good to see that some attempts are being made to address this potential problem.

Ciaran O’Riordan's picture

I agree. It's very strange how little there is written about the history of a movement that should be very simple to find old documents about.

Where are all the old release notes? announcements? mail archives of key flame wars?

There must be thousands of interesting documents out there, but we can't easily find them (maybe because they're in gzipped files on ftp sites and aren't crawled by today's search engines).

Some interesting sets of documents I've found are:

I remember finding a PDF document of a guy telling about his experience working for FSF for a few months. The main thing I remember is that he said RMS was very strict about code having to be well documented. I can't find that document anymore though.

GPLv3 - strengthening free software

Lawrence D'Oliveiro's picture
Submitted by Lawrence D'Oliveiro (not verified) on

Thanks for your item. I've added it to a list of Linux-history-related links I've been collecting here: http://wlug.org.nz/LinuxHistory .

nickh's picture

the re-merging from libc5 to glibc at that period was the last straw for me in terms of linux. having started out using the o/s in 1993, i remember counting seven different and incompatible c libraries / executable formats in the following five years.

the RH3 and RH4 boxes i was running in 1997-1998 used substantial in-house modifications to libc5 to make up for the large number of deficencies in the c library - one that particularly springs to mind was the lack of db/dbm/gdbm support for /etc/passwd, which hurt really badly on a passwd file of over 1Mb.

so it was clear that every box was going to have to be wiped and installed from scratch to support the libc5 -> glibc move properly, and even then the early versions of glibc were horrendously buggy, not having seen much production use in 3 years. in the end, i moved everything to freebsd because it had better support at the time for larger systems (32 bit UIDs, large passwd file support, stabler filesystem, usable NFS). and no history of libc problems.

Author information

Ciaran O’Riordan's picture

Biography

Free Software advocate, active on political campaigns such as that against software patents in Europea, and interested in free software licences

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!