LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   errno: TLS definition ...mismatches nonTLS def.. (https://www.linuxquestions.org/questions/programming-9/errno-tls-definition-mismatches-nontls-def-572343/)

maverick_pol 07-26-2007 02:21 AM

errno: TLS definition ...mismatches nonTLS def..
 
Hi guys,

I have just installed the Fedora 7 system. Compiled Qt 4.3.0 and tried to compile my application which is using OGDI(C-API library for reading vpf data) compilation went ok until linking. At the end I got this message:

/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS definition in ogdi/lib/linux/libogdi.so section .bss
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [bin/Commander] Error 1

I have the same error under Slackware 12.0.
I belive that this problem is connected with static linking, as before while I were using Qt which was compiled dynamically I didn't get any errors

Any idea how to solve this problem?

Beforehand thanks.

fabaix 04-07-2008 04:18 AM

Quote:

Originally Posted by maverick_pol (Post 2837050)
Hi guys,

I have just installed the Fedora 7 system. Compiled Qt 4.3.0 and tried to compile my application which is using OGDI(C-API library for reading vpf data) compilation went ok until linking. At the end I got this message:

/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS definition in ogdi/lib/linux/libogdi.so section .bss
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [bin/Commander] Error 1

I have the same error under Slackware 12.0.
I belive that this problem is connected with static linking, as before while I were using Qt which was compiled dynamically I didn't get any errors

Any idea how to solve this problem?

Beforehand thanks.


I'm French, and I have the same error.
Have you the solution?

Thanks

codedr 05-21-2008 09:45 PM

In the code I was compiling, the following line was the offender:

extern int errno;

I replaced this line with #include <errno.h>
and the problem went away.


All times are GMT -5. The time now is 06:29 PM.