Linking problems with pthread

Khem Raj khem at mvista.com
Wed Feb 1 20:29:25 UTC 2006


Peter S. Mazinger said the following on 02/01/2006 10:17 AM:
> On Wed, 1 Feb 2006, Peter S. Mazinger wrote:
>
>   
>> On Wed, 1 Feb 2006, Thomas Ritter wrote:
>>
>>     
>>> Hi,
>>>
>>> I tried to use the latest version of uClibc (from svn) and ran into a
>>> linking problem.
>>> I have an application (C++) linked with pthread lib - and get "multiple
>>> definition" errors:
>>>  sigaction, nanosleep, waitpid, __errno_location, __h_errno_location
>>>
>>> Gcc is 3.4.5 built form buildroot, and uClibc is build with "old" pthread.
>>> With uClibc 0.9.27 the app links fine.
>>>
>>> Any hints what I can fix ?
>>>
>>> Regards,
>>> Thomas 
>>>       
>> update uClibc to current svn, if it fails, then we/me are in great trouble 
>> ;-(
>>     
>
> I was wrong, if libpthread.a libc.a is the order, it fails, reverse it, it 
> will work (for now), I don't know yet why this happens
>   
Mosltly due to some weak aliased being turned into strong aliased might 
have slipped in double definitions.
> Peter
>>>
>>>
>>>       
>>     
>
>   




More information about the uClibc mailing list