Bug#578831: link failure with LTO: ???invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition???
On Sun, Aug 08, 2010 at 02:20:38PM +0400, Kirill Smelkov wrote:
> Just a note - if your program uses pthread you should pass -pthread
> explicitly, even if some other library you link to uses pthread, because
> with -Wl,-no-add-needed (which is the default in Fedora, and may be some
> time in Debian too) you'll get link errors.
>
> http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
Thanks for the heads-up.
>> I can give you a test case, but I'm afraid I cannot make it public. (Also,
>> it's pretty hard to disentangle, I'm afraid.) Let me know if it would be
>> helpful to you.
> No thanks, I can't afford NDA for myself.
I wouldn't require an NDA to be signed -- it would be on honor code. :-)
(It's not a commercial product, but I wouldn't want the source code
distributed regardless, especially as I'd have to confer with the 4-5 others
who has code rights.)
> Though I may suggest to try latest upstream binutils and gcc-4.5 to see
> whether it works there, and if not, try harder to still disentangle the
> testcase.
I'll give probably give it a shot, eventually.
/* Steinar */
--
Homepage: http://www.sesse.net/
Reply to: