[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

versionsnummer på glibc



Jag försöker att installera ett program (Matlab) på min Debianmaskin med
Sarge/testing och 2.6.7 som kärna. Under installationen behövs
versionsnumret av libc6, som fås genom att köra /lib/libc.so.6. Efter
att satt om rättigheterna på libc.so.6 och libc.2.3.2.so så får jag
följande meddelande:

$ /lib/libc.so.6
Inconsistency detected by ld.so: rtld.c: 1259: dl_main: Assertion
`_rtld_local._dl_rtld_map.l_prev->l_next ==
_rtld_local._dl_rtld_map.l_next' failed!

Är detta ett normalt beteende på Debian/Sarge eller vad kan vara fel?

Anders


Enligt libc6/FAQ gäller:

4.9. How can I find out which version of glibc I am using in the moment?

If you want to find out about the version from the command line simply
run the libc binary.  This is probably not possible on all platforms but
where it is simply locate the libc DSO and start it as an application.
On Linux like

        /lib/libc.so.6

This will produce all the information you need.

What always will work is to use the API glibc provides.  Compile and run
the following little program to get the version information:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <stdio.h>
#include <gnu/libc-version.h>
int main (void) { puts (gnu_get_libc_version ()); return 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This interface can also obviously be used to perform tests at runtime if
this should be necessary.

-- 
Anders Helmersson        phone:  +46-13-157 888
Spångerumsgatan 33       mobile: +46-739-874 328
SE-587 25 Linköping      mail: anders.helmersson@telia.com
Sweden                   PGP/GPG key: 2AD939A8



Reply to: