Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 44126

Summary: Licq-1.2.7 compile fails with nptl
Product: Gentoo Linux Reporter: Jonas Fietz <losthero>
Component: Current packagesAssignee: Heinrich Wendel (RETIRED) <lanius>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2004.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jonas Fietz 2004-03-09 05:37:39 UTC
When compiling the licq-1.2.7 build, the build process gives an error message:
"
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -I../include -DINSTALL_PREFIX=\"/usr\" -fPIC -DPIC -D_REENTRANT -O2 -march=pentium3 -fomit-frame-pointer -pipe -fno-exceptions -fno-check-new -c -o fifo.o `test -f fifo.cpp || echo './'`fifo.cpp
/bin/sh ../libtool --silent --mode=link g++ -O2 -march=pentium3 -fomit-frame-pointer -pipe -fno-exceptions -fno-check-new -o licq -export-dynamic licq.o main.o icqpacket.o proxy.o socket.o icqd.o icqd-tcp.o icqd-srv.o icqd-threads.o icqevent.o buffer.o user.o history.o utility.o countrycodes.o log.o translate.o file.o message.o support.o pthread_rdwr.o onevent.o plugind.o sar.o languagecodes.o icqd-chat.o sighandler.o icqd-filetransfer.o hebrev.o icqcolor.o fifo.o -lssl -lcrypto -ldl -lpthread -lnsl
sighandler.o(.text+0x1bd): In function `licq_handle_sigsegv':
: undefined reference to `pthread_kill_other_threads_np'
collect2: ld returned 1 exit status
make[2]: *** [licq] Error 1
make[2]: Leaving directory `/var/tmp/portage/licq-1.2.7/work/licq-1.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/licq-1.2.7/work/licq-1.2.7'
make: *** [all] Error 2

!!! ERROR: net-im/licq-1.2.7 failed.
!!! Function src_compile, Line 57, Exitcode 2
!!! (no error message) 
"
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-rc1)

pthread_kill_other_threads_np function does not exist in nptl anymore, bug is known:
http://sourceforge.net/mailarchive/forum.php?thread_id=3680295&forum_id=5420

Direct Link to fix: 

http://marc.theaimsgroup.com/?l=licq-devel&m=107298190422879&w=2 

Did not try this patch, but commenting out line 86 in src/sighandler.c worked for me. The patch would have the same result.
Comment 1 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-14 04:08:55 UTC
thanx for that patch, fixed :)