TLS definition section .tbss mismatches non-TLS reference

This is the nice message I get while trying to compile some stuff on CENTOS 5. I am not familiar with this distribution, and have not admin right on it, so I have to compile quite a lot of softwares myself. This error seems to come from the fact that for some reasons, when the linker links libz, it gets a really old (libc 5) libz, which is not binary compatible with the 6 (TLS refers to Thread Local Storage). The culprit is in ld configuration file, which contains the following line:

/usr/i486-linux-libc5/lib

The only way I found to get the rights lib first was to put /usr/lib in  LD_LIBRARY_PATH, which is ugly. But without it, I can not get most softwares to compile correctly…

Advertisements

4 thoughts on “TLS definition section .tbss mismatches non-TLS reference

  1. Hi
    I am facing the following problem.any idea?? it seems a little bit similar to one mentioned above….??
    c:\sandblaster\arm\bin\..\lib\gcc\armv5-softfloat-linux-gnueabi\4.1.2\..\..\..\..\armv5-softfloat-linux-gnueabi\bin\ld.exe: errno: TLS reference in c:/sandblaster/arm/bin/../lib/gcc/armv5-softfloat-linux-gnueabi/4.1.2/../../../../armv5-softfloat-linux-gnueabi/lib\libpthread.a(pthread_create.o) mismatches non-TLS reference in C:/SandBlaster/arm/armv5-sandblaster-elf/lib\libc.a(lib_a-reent.o)
    c:/sandblaster/arm/bin/../lib/gcc/armv5-softfloat-linux-gnueabi/4.1.2/../../../../armv5-softfloat-linux-gnueabi/lib\libpthread.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status

    Thanks in advance

  2. Hi

    I am facing the following problem………any idea????

    c:\sandblaster\arm\bin\..\lib\gcc\armv5-softfloat-linux-gnueabi\4.1.2\..\..\..\..\armv5-softfloat-linux-gnueabi\bin\ld.exe: errno: TLS reference in c:/sandblaster/arm/bin/../lib/gcc/armv5-softfloat-linux-gnueabi/4.1.2/../../../../armv5-softfloat-linux-gnueabi/lib\libpthread.a(pthread_create.o) mismatches non-TLS reference in C:/SandBlaster/arm/armv5-sandblaster-elf/lib\libc.a(lib_a-reent.o)
    c:/sandblaster/arm/bin/../lib/gcc/armv5-softfloat-linux-gnueabi/4.1.2/../../../../armv5-softfloat-linux-gnueabi/lib\libpthread.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status

    thanks in advance

  3. Dear All,

    We are also getting almost the same error. Please let us know if there are any ideas how to resolve the issue.

    Thanks and Regards,
    Srinivas G

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s