This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libc-2.x thread problems


Andreas Jaeger wrote:

> >>>>> John Hoebing writes:
>
>  > We have some test programs that run fine on earlier
>  > versions of linux threads but break on
>  > libpthread-0.8.so, on all glibc 2.1.x libraries.
> [...]
>  > : error in loading shared libraries: /lib/libpthread.so.0: symbol _exit,
>  > version GLIBC_2.0 not defined in file libc.so.6 with link time reference
>
> Does the file libc.so.6 come really from glibc 2.1.x?  I doubt it.

Evidently:

/chicago/home2/jlh>ls -l /lib/libc.so.6
lrwxrwxrwx   1 root     root           13 Oct  9 14:13 /lib/libc.so.6 ->
libc-2.1.2.so*
/chicago/home2/jlh>/lib/libc-2.1.2.so
GNU C Library stable release version 2.1.2, by Roland McGrath et al.
Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release).
Compiled on a Linux 2.2.12-20 system on 1999-10-06.
Available extensions:
 GNU libio by Per Bothner
 crypt add-on version 2.1 by Michael Glad and others
 BIND-4.9.7-REL
 NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
 Glibc-2.0 compatibility add-on by Cristian Gafton
 linuxthreads-0.8 by Xavier Leroy
Report bugs using the `glibcbug' script to <bugs@gnu.org>.


>
>
> gromit:~:[1]$ readelf -a /lib/libc.so.6 |grep _exit
>   1574:    956d0    54 FUNC    GLOBAL  0   17 _exit@@GLIBC_2.0
>
> What's the output of ldd on your test program?  Which libraries get
> loaded (try LD_DEBUG=files in the environment - see LD_DEBUG=help)
>

/chicago/home2/jlh/p4/change/51385/src>ldd gctest
 libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
 libdl.so.2 => /lib/libdl.so.2 (0x4002b000)
 libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x4002e000)
 libm.so.6 => /lib/libm.so.6 (0x40070000)
 libc.so.6 => /lib/libc.so.6 (0x4008c000)
 /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


>
> Andreas
> --
>  Andreas Jaeger
>   SuSE Labs aj@suse.de
>    private aj@arthur.rhein-neckar.de

John Hoebing
jlh@geodesic.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]