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: global variables within library __thread


On 17 Oct 2015 00:31, JoÃl KrÃhemann wrote:
> __thread AgsThread *ags_thread_self = NULL;
>
> /usr/bin/ld: ags_thread_self: TLS definition in
> /home/joelkraehemann/gsequencer/.libs/libags_thread.a(libags_thread_la-ags_thread-posix.o)
> section .tbss mismatches non-TLS reference in .libs/gsequencerS.o

make sure the header that declares this also has __thread markings.
declaring it in the header like this would be wrong:
	extern AgsThread *ags_thread_self;
-mike

Attachment: signature.asc
Description: Digital signature


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