[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#724928: check fails to pass the correct linking information through pkg-config (was: Re: Please commit solution for #724928 (duplicate of #717449))



reopen 712140 0.9.10-5
affects 712140 netcfg
thanks

On Tue, Oct 01, 2013 at 05:13:39PM +0200, Andreas Cadhalpun wrote:
> Michael Biebl suggested a 'change one line' fix for this problem in:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=717449#22
> 
> Would you be so kind as to commit this fix to git?

Pushed to git. I can't upload it because it doesn't build. It seems
#712140 wasn't really fixed, »pkg-config --libs check« still does not
output any pthread linkage information:

[…]
Setting up check:amd64 (0.9.10-5) ...
[…]
cc -c -W -Wall -Werror -DNDEBUG -DNETCFG_VERSION="\"1.111\"" -DNETCFG_BUILD_DATE="\"20131001-1908\"" -I. -DWIRELESS -DNM -Os -fomit-frame-pointer   -o test/srunner.o test/srunner.c
cc -o test/run test/test_inet_mton.o test/test_inet_ptom.o test/test_netcfg_parse_cidr_address.o test/test_netcfg_network_address.o test/test_netcfg_gateway_reachable.o test/test_nc_v6_interface_configured.o netcfg-common.o wireless.o ethtool-lite.o ipv6.o write_interface.o test/srunner.o -ldebconfclient -ldebian-installer -liw -lcheck_pic -lrt -lm  
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libcheck_pic.a(check_pack.o): undefined reference to symbol '__pthread_unregister_cancel@@GLIBC_2.3.3'
/lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [test/run] Error 1
[…]

root@simplex:/# pkg-config --libs check
-lcheck_pic -lrt -lm  

Kind regards
Philipp Kern

Attachment: signature.asc
Description: Digital signature


Reply to: