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

RE: [PATCH] Provide __errno_location and friends like LinuxThreads



You are right that there must be some other reasons for the 
errors. After adding all the five new patches to nptl-0.4 and 
rebuilding, I still run into relocation errors when testing the 
compatibility with LinuxThreads

# under /path/to/glibc, after rebuilding

[root localhost glibc]# elf/ld.so --library-path .:nptl /usr/bin/python
/usr/bin/python: relocation error: /usr/bin/python: symbol __errno_location,

version GLIBC_2.0 not defined in file libpthread.so.0 with link time
reference

[root localhost glibc]# elf/ld.so --library-path .:nptl /usr/bin/perl
/usr/bin/perl: relocation error: /usr/bin/perl: symbol pthread_atfork, 
version GLIBC_2.0 not defined in file libpthread.so.0 with link time
reference

+++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++

[root localhost glibc]# nm nptl/libpthread.so.0 | grep errno
         U errno@@GLIBC_2.3
         U __errno_location@@GLIBC_2.0

[root localhost glibc]# nm /lib/i686/libpthread.so.0 | grep errno
         U _errno@@GLIBC_2.0
00009520 T __errno_location
              ^^ ^^^^^^^^^^^^^^^^^^^
         U _h_errno@@GLIBC_2.0
         U h_errno@@GLIBC_2.0
00009530 T __h_errno_location

[root localhost glibc]# nm libc.so.6 | grep _errno
00000008 b _errno
00015d64 W __errno_location
00000228 B h_errno
000d4ff0 W __h_errno_location

[root localhost glibc]# nm /lib/i686/libc.so.6 | grep _errno
4212a620 B _errno
42015b90 W __errno_location
4212628c V _h_errno
4212628c D h_errno
420ed410 W __h_errno_location

+++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++

[root localhost glibc]# nm nptl/libpthread.so.0 | grep pthread_atfork
00006598 t __dyn_pthread_atfork
00006598 t pthread_atfork GLIBC_2 0

[root localhost glibc]# nm /lib/i686/libpthread.so.0 | grep pthread_atfork
00007520 T __pthread_atfork
00007520 T pthread_atfork
              ^^ ^^^^^^^^^^^^^^^^^^^
0000d054 d pthread_atfork_child
0000d034 d pthread_atfork_lock
0000d050 d pthread_atfork_parent
0000d04c d pthread_atfork_prepare

[root localhost glibc]# nm libc.so.6 | grep pthread_atfork
         w __pthread_atfork

[root localhost glibc]# nm /lib/i686/libc.so.6 | grep pthread_atfork
         w __pthread_atfork


Any clues, please?

bingwei

> -----Original Message-----
> From: Roland McGrath [mailto:roland redhat com]
> Sent: 2002?11?1? 12:03
> To: phil-list redhat com
> Subject: Re: [PATCH] Provide __errno_location and friends 
> like LinuxThreads
> 
> 
> This should not be required, because the main libc sources 
> should define
> those already when building for __thread.  You should figure 
> out why that
> is not happening.  __errno_location is in csu/errno-loc, 
> __h_errno_location
> in inet/herrno.
> 
> 
> 
> -- 
> Phil-list mailing list
> Phil-list redhat com
> https://listman.redhat.com/mailman/listinfo/phil-list
> 





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