Re: Libc x Glibc

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Thu, 26 Mar 1998 00:19:44 +0000 (GMT)


-----BEGIN PGP SIGNED MESSAGE-----

On Wed, 25 Mar 1998, Linux Lists wrote:

>
> Hi there,
>
> While upgrading my system to support 2.1.x kernels, I noticed that there
> are two different C++ libraries: one for Libc and another for Glibc.
>
> Now my questions:
>
> 1) What's the difference between these two C libraries?

libc is libc.so.5 (well if it's up to date that is ;), binaries compiled
against it are closly coupled to the kernel. glibc is libc.so.6, it's
GNU's libc, and it's much less closly coupled to the kernel (ie you're not
supposed to include kernel headers, as in anything really in
linux/include/*, you're supposed to have a local copy of the header if you
really need it (eg mount should have a local copy of <linux/mount.h>)).

> 2) Can I have and use both in my system?

Yes, libc is libc major version 5, glibc is libc major version 6.

> 3) Which one (if any restriction is applicable) should I use with kernel
> 2.1.x?
>

Either, both. There's not really a restriction. You may consider
installing a distribution that uses glibc, which would be Red Hat 5.0, or
Debian (I'm not 100% sure, but I think it does;).

> Thanks in advance.
>
> Regards,
> Ivan Passos
>
Bryn
- --
PGP Pub key http://www.gytha.demon.co.uk/pubkey.asc ID: 1024/30AF2D69
On-line, adj.: FP: FC 4E 41 9E 64 C3 AB 28 A3 5A 57 F8 CC D9 A7 B8
The idea that a human being should always be accessible to a computer.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Probably (spelt 'Proberbly') requires PGP version 2.6 or later ;)

iQCVAwUBNRmfKOsaGi8wry1pAQE3BAP/RUVG+O+hgVj6gxZh3dZZWDTE+j0DjOFO
CcdyYcCOu3EFmoNY98oAiwJfLrPPK+z+MEuD3tkGpe/AVOPNkIx5Eigr/8q+ct7k
Fp5KeOl/hF0X46U35YvB5TNnAvCnDltl4s3Pn3ESVFBQwHdI15Ow0ds03p8iquxc
EckpEhlBvwQ=
=VOJe
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu