This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

Re: glibc2.3.2, linux 2.4.18, and TLS


On 01/26/10 14:19, Bryan Williams wrote:
First, please forgive the screwed-up format of my response... I'm using a
Notes client and can't get it to format my reply correctly.

I just tried grabbing a copy of the 2.3.2 source from ftp.gnu.org and
built it with the same configure command line I used before.  When I try
to use the compiled library, for example by doing an ls,  I get the error
:

ls: relocation error: /usr/local/tls/lib/libc.so.6: symbol
__libc_stack_end, version GLIBC_PRIVATE not defined in file link time
reference.

In the version I built earlier using our local set of patches, the above
error does not occur because one of the patches removes __libc_stack_end
from the GLIBC_PRIVATE section of ld.  In addition, the libraries I just
built contain no tls_ symbols.  Also, looking at the configure script, it
appears to me that the --with-t,ls option is a no-op -- it sets a variable
that is not referenced anywhere else in the script.  Could you tell me
what configure command line you're using, plus any environment variable
settings?  Also, can you confirm that the tls_ functions are actually
present in the library you built?

Thanks,
Bryan



over here I built gnutls,
then used this to build libc:
CFLAGS="-m64 -mtune=core2 -march=core2 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" MAKEOPTS="{-j3}" ../glibc/configure --prefix=/usr
--disable-profile --enable-add-ons --enable-kernel=2.6.0 --libexecdir=/usr/lib/glibc --libdir=/usr/lib --with-selinux --with-tls(or whatever the enable option is for tls)


keep in mind this is the latest: 2.11.90, not sure for 2.3.2

hope this helps.

Justin P. Mattock




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