Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why glibc binary is called libc.so.6 not a libc.so.1 or libc.so.4?

Tags:

linux

glibc

The modern glibc binary is called libc.so.6 in Linux. Why is "6" used here? The libc.so.1 or libc.so.8 can be good names too IMHO.

Wikipedia gives some history at http://en.wikipedia.org/wiki/GNU_C_Library but doesn't explain fully

In the early 1990s, the developers of the Linux kernel forked glibc. Their fork, called "Linux libc", was maintained separately for years and released versions 2 through 5.

When FSF released glibc 2.0 in January 1997, .... At this point, the Linux kernel developers discontinued their fork and returned to using FSF's glibc.[6]

The last used version of Linux libc used the internal name (soname) libc.so.5. Following on from this, glibc 2.x on Linux uses the soname libc.so.6

like image 745
osgx Avatar asked Jun 27 '11 16:06

osgx


People also ask

What does libc So 6 mean?

The pathname /lib/libc. so. 6 (or something similar) is normally a symbolic link that points to the location of the glibc library, and executing this pathname will cause glibc to display various information about the version installed on your system.

What is the difference between libc and glibc?

libc is a single library file (both . so and . a versions are available) and in most cases resides in /usr/lib . However, the glibc (GNU libc) project provides more than just libc - it also provides the libm mentioned earlier, and other core libraries like libpthread .

What provides libc So 6?

The libc. so. 6 file is present in the libc6 package.

What is libc So 1?

libc.so is required to run unix commands like ssh or awk that were written in C and use dynamic (runtime) linking. libc.so is a link to libc. so. 1 which is the "base" version of the C library for the implementation of Solaris 10 you are running.


1 Answers

Those SONAMEs have already been used. Since the new version of the library presents a break in the interface, a new major SONAME number must be used for it.

like image 170
Ignacio Vazquez-Abrams Avatar answered Oct 16 '22 05:10

Ignacio Vazquez-Abrams