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

Bug 85902

Summary: cdw-2.3.0 fails linking againts lpthread
Product: Gentoo Linux Reporter: Gustavo Ribeiro Alves <gralves>
Component: Current packagesAssignee: Mr. Bones. (RETIRED) <mr_bones_>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Gustavo Ribeiro Alves 2005-03-19 07:10:25 UTC
Emerge app-cdr/cdw fails with:

i686-pc-linux-gnu-gcc  -O2 -march=athlon-xp -fomit-frame-pointer   -o cdw -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 main.o color.o options.o thread.o isosize.o log.o cddb.o help.o gtkgui.o gtk_thread.o gtk_cddb.o  -lncurses -lform -lmenu
thread.o(.text+0x27b1): In function `run_command':
: undefined reference to `pthread_create'
thread.o(.text+0x27d5): In function `run_command':
: undefined reference to `pthread_create'
thread.o(.text+0x27e9): In function `run_command':
: undefined reference to `pthread_join'
thread.o(.text+0x27fd): In function `run_command':
: undefined reference to `pthread_join'
gtk_thread.o(.text+0x22e5): In function `run_command_gtk':
: undefined reference to `pthread_create'
gtk_thread.o(.text+0x2309): In function `run_command_gtk':
: undefined reference to `pthread_create'
gtk_thread.o(.text+0x231d): In function `run_command_gtk':
: undefined reference to `pthread_join'
gtk_thread.o(.text+0x2331): In function `run_command_gtk':
: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make[2]: ** [cdw] Erro 1
make[2]: Leaving directory `/var/tmp/portage/cdw-0.2.3/work/cdw-0.2.3/src'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/var/tmp/portage/cdw-0.2.3/work/cdw-0.2.3'
make: ** [all] Erro 2


Reproducible: Always
Steps to Reproduce:
Comment 1 Gustavo Ribeiro Alves 2005-03-19 07:11:55 UTC
I think the problem might be solved by using -lpthread on the linking line. But I don't know autotools enought to suggest a patch.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2005-03-19 10:40:16 UTC
let's see the output from emerge --info
Comment 3 Gustavo Ribeiro Alves 2005-03-19 12:01:31 UTC
I figured out the problem. This bug is a duplicate of bug 80113, the problem is in libc, not on cdw.

*** This bug has been marked as a duplicate of 80113 ***