Subject: problems with kdelibs2/kdemultimedia2 package and pthread lib
To: NetBSD Help <netbsd-help@netbsd.org>
From: Scott Presnell <srp@zgi.com>
List: netbsd-help
Date: 01/11/2003 17:52:01
Hi Folks,
I'm having some trouble getting kdelibs and
kdemultimeda from kde2 to build correctly. Each time
an element from either of these packages needs the pthread
library, libtool seems to not be able to find the shared
version of pthread, and hence chokes on making the shared
library in question (see an example at the bottom of this
message.) This causes problems for the complete build of the
package, and hence the ability to create a tarball from the
package (I end up editing the PLIST so that the tar won't fail,
etc...)
I have pth-1.4.1, and had libtool-base-1.4.20010614nb9 installed,
I also ugraded to libtool-base-1.4.20010614nb11, but saw no change.
Other programs and configure scripts seem to find the pthread
libraries just fine and I confirm that they are there:
-rwxr-xr-x 1 root wheel 104060 May 29 2002 /usr/pkg/lib/libpthread.so.14.21*
lrwxr-xr-x 1 root wheel 19 May 29 2002 /usr/pkg/lib/libpthread.so.14@ -> libpthread.so.14.21
lrwxr-xr-x 1 root wheel 19 May 29 2002 /usr/pkg/lib/libpthread.so@ -> libpthread.so.14.21
-rwxr-xr-x 1 root wheel 742 May 29 2002 /usr/pkg/lib/libpthread.la*
-rw-r--r-- 1 root wheel 120894 May 29 2002 /usr/pkg/lib/libpthread.a
I'm running 1.5.2 on a i386.
I get very frustrated trying to trace and/or debug libtool...
Has anyone else run across this?
Thanks for any help.
- Scott
This is the stock build but I've also changed -lpthread
to /usr/pkg/lib/libpthread.so and I get the same response...
/bin/sh ../../libtool --mode=link --tag=CXX c++ -O2 -O2 -I/usr/pkg/include -I/u
sr/X11R6/include -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COM
PAT -DQT_NO_ASCII_CAST -Wl,-E -L/usr/X11R6/qt2/lib -Wl,-R/usr/X11R6/qt2/lib -W
l,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o libmpeg
.la -rpath /usr/X11R6/lib -L/usr/X11R6/lib -Wl,-E -L/usr/X11R6/qt2/lib -Wl,-R/u
sr/X11R6/qt2/lib -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/us
r/pkg/lib -module
-release 0.3.0 -version-info 0:3:0 dummy.lo mpgplayer/*
.lo mpegplay/*.lo splay/*.lo
oggvorbis/*.lo tplay/*.lo decoder/
*.lo output/*.lo input/*.lo
util/render/*.lo util/render/x11/*.lo
util/render/dither/*.lo util/render/dither2YUV/*
.lo util/audio/libaudio.la util/file/*.lo
frame/*.lo util/*.lo
yuv/*.lo util/abstract/*.lo
-lX11 -lXext -lm -lstdc++ -lpthread
*** Warning: This library needs some functionality provided by -lpthread.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libmpeg. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.