errno.h problem

18 01 2009

If you see an error like the following when compiling, then most likely it’s the errno.h problem:

/usr/bin/ld: errno: TLS definition in /lib64/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
/lib64/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [envdir] Error 1

If there is a conf-cc file, then add “–include /path/to/errno.h” to the gcc line. Normally the file is at /usr/include/errno.h.

References:
http://cr.yp.to/docs/unixport.html#errno


Actions

Informations

10 responses to “errno.h problem”

28 01 2010
abhinav narain (13:31:22) :

it still gives me the same error

29 01 2010
Andryan (21:17:49) :

Did you make clean and re-make?

27 05 2010
Ishgorilla (08:30:49) :

Thanks very much. Nice, clean, simple solution. Worked for me with daemontools-0.76 and ucspi-tcp-0.88. This was keeping me from installing djbdns. Much appreciated.

11 10 2010
briganzia (19:02:33) :

Yes, very usefull. Thanks a lot!

8 10 2011
Frank (02:05:30) :

Worked!!!
Thanks!

3 11 2011
Shakus (06:43:33) :

Very helpful !! thanks guys !

26 01 2012
karthik (03:49:58) :

Great This is really helpful

14 08 2012
Prince Fred (14:36:46) :

Thanks alot, you saved my ass.

26 07 2013
vinayak (14:15:39) :

no its not working

again same error

“”Linking ./src/* into ./compile…
Compiling everything in ./compile…
./load envdir unix.a byte.a
/usr/bin/ld: errno: TLS definition in /lib/i386-linux-gnu/libc.so.6 section .tbss mismatches non-TLS reference in envdir.o
/lib/i386-linux-gnu/libc.so.6: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [envdir] Error 1″

5 09 2013
Andryan (03:32:41) :

Did you add the line after trying to compile and failed? If so, please sure make clean is executed before make-ing again.

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WordPress Anti-Spam by WP-SpamShield

interproportional-septuor