Bug#591405: gcc-4.4/g++-4.4: link failure with -Wl, -no-add-needed: invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition

2010-08-07 Thread Kirill Smelkov
reassign 591405 binutils found 591405 2.20.1-12 fixed 591405 2.20.51.20100710-2 tag 591405 upstream retitle ld: -no-add-needed breaks linking with weak symbols thanks On Fri, Aug 06, 2010 at 08:11:46PM +0400, Kirill Smelkov wrote: After upgrading binutils to 2.20.51.20100710-2 from experimental,

Bug#591405: gcc-4.4/g++-4.4: link failure with -Wl, -no-add-needed: invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition

2010-08-06 Thread Kirill Smelkov
Smaller testcase: 8 Makefile # $ make # g++ -Wl,-no-add-needed -shared -o lpthread.so -lpthread # g++ -Wl,-no-add-needed -o deb591405 deb591405.cpp lpthread.so # /usr/bin/ld: ,: invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition # /lib/libpthread.so.0: could not read

Bug#591405: gcc-4.4/g++-4.4: link failure with -Wl, -no-add-needed: invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition

2010-08-06 Thread Kirill Smelkov
After upgrading binutils to 2.20.51.20100710-2 from experimental, the problem goes away: $ g++ -v 21 | grep gcc version gcc version 4.4.4 (Debian 4.4.4-7) $ ld -v GNU ld (GNU Binutils for Debian) 2.20.51-system.20100710 $ make g++ -Wl,-no-add-needed -shared -o lpthread.so

Bug#591405: gcc-4.4/g++-4.4: link failure with -Wl, -no-add-needed: invalid DSO for symbol `pthread_cancel@@GLIBC_2.0' definition

2010-08-02 Thread Kirill Smelkov
Package: g++-4.4 Version: 4.4.4-7 Severity: normal [ First of all, this bug seems to be the same as bugs #577961 and #578831, only they cover gcc-4.5, where afaik -Wl,-no-add-needed is default ] I'm trying to build my libraries with -Wl,-no-add-needed and got an issue wrt weak symbols