perl binding fails to link because of undefined pthread symbols, it should link
with the pthread library.
Attached patch from Christiaan Welvaart fixes the issue (initially from the
Mageia distribution).
Linking C shared library ../../../perl/blib/arch/auto/Net/Libproxy.so
CMakeFiles/PLlibproxy.dir/Libproxy.c.o: In function
`XS_Net__Libproxy__ProxyFactoryPtr_DESTROY':
/home/blino/vc/mageia/packages/cauldron/libproxy/BUILD/libproxy-0.4.10/bindings/
perl/src/Libproxy.c:239: undefined reference to `pthread_getspecific'
/home/blino/vc/mageia/packages/cauldron/libproxy/BUILD/libproxy-0.4.10/bindings/
perl/src/Libproxy.c:239: undefined reference to `pthread_getspecific'
/home/blino/vc/mageia/packages/cauldron/libproxy/BUILD/libproxy-0.4.10/bindings/
perl/src/Libproxy.c:239: undefined reference to `pthread_getspecific'
/home/blino/vc/mageia/packages/cauldron/libproxy/BUILD/libproxy-0.4.10/bindings/
perl/src/Libproxy.c:245: undefined reference to `pthread_getspecific'
/home/blino/vc/mageia/packages/cauldron/libproxy/BUILD/libproxy-0.4.10/bindings/
perl/src/Libproxy.c:246: undefined reference to `pthread_getspecific'
CMakeFiles/PLlibproxy.dir/Libproxy.c.o:/home/blino/vc/mageia/packages/cauldron/l
ibproxy/BUILD/libproxy-0.4.10/bindings/perl/src/Libproxy.c:246: more
undefined references to `pthread_getspecific' follow
collect2: error: ld returned 1 exit status
make[2]: *** [perl/blib/arch/auto/Net/Libproxy.so] Error 1
make[1]: *** [bindings/perl/src/CMakeFiles/PLlibproxy.dir/all] Error 2
Original issue reported on code.google.com by oliv...@blino.org on 19 Oct 2012 at 9:26
Original issue reported on code.google.com by
oliv...@blino.org
on 19 Oct 2012 at 9:26Attachments: