Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] pthread problems...

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Mat" <m.l AT compaqnet.fr>
  • To: sm-discuss AT lists.ibiblio.org
  • Cc: m.l AT compaqnet.fr
  • Subject: [SM-Discuss] pthread problems...
  • Date: Thu, 29 Aug 2002 00:18:47 +0200 (CEST)

Hi,

I've been throught a sorcery rebuild (0.8.0.1, gcc3.2), but all spells using
pthreads fails to compile (apache2, perl...).

glibc (which provides libpthread* compiles and install fine, the libpthread*
are there), but even it I give -D_REENTRANT -lpthread as optionals params,
pthread-enabled spells fails :(
Look at the error messages below:

cast -r -c apache2
<..............>
/httpd-2.0.40/modules/dav/main -export-dynamic
-L/usr/src/httpd-2.0.40/srclib/apr-util/xml/expat/lib -o htpasswd
htpasswd.lo /usr/src/httpd-2.0.40/srclib/pcre/libpcre.la
/usr/src/httpd-2.0.40/srclib/apr-util/libaprutil.la -lgdbm -ldb
/usr/src/httpd-2.0.40/srclib/apr-util/xml/expat/lib/libexpat.la
/usr/src/httpd-2.0.40/srclib/apr/libapr.la -lm -lcrypt -lnsl -ldl
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
libtool: link: warning: library `/usr/lib/libgdbm.la' was moved.
/usr/src/httpd-2.0.40/srclib/apr/.libs/libapr.so: undefined reference to
`pthread_create'
/usr/src/httpd-2.0.40/srclib/apr/.libs/libapr.so: undefined reference to
`pthread_getspecific'
/usr/src/httpd-2.0.40/srclib/apr/.libs/libapr.so: undefined reference to
`pthread_mutexattr_destroy'
/usr/src/httpd-2.0.40/srclib/apr/.libs/libapr.so: undefined reference to
`pthread_de
<................>
collect2: ld returned 1 exit status

! Problem Detected !

make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/src/httpd-2.0.40/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/httpd-2.0.40/support'
make: *** [all-recursive] Error 1
Creating
/var/log/sorcery/compile/apache2-2.0.40.bz2


root@nostromo:/# ls -al /lib/libpthread*
-rwxr-xr-x 1 root root 143k Aug 28 23:43 /lib/libpthread-0.9.so
lrwxrwxrwx 1 root root 17 Mar 2 18:23 /lib/libpthread.so.0
-> libpthread-0.9.so

root@nostromo:/# ls -al /usr/lib/libpthread*
-rw-r--r-- 1 root root 112k Aug 28 23:43 /usr/lib/libpthread.a
lrwxrwxrwx 1 root root 25 Aug 28 23:43
/usr/lib/libpthread.so -> ../../lib/libpthread.so.0
-rw-r--r-- 1 root root 116k Aug 28 23:43
/usr/lib/libpthread_p.a

root@nostromo:/# ldconfig -v | grep pthread
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/lib' given more than once
libpthread.so.0 -> libpthread-0.9.so
libpthread.so.0 -> libpthread-0.9.so

root@nostromo:/# ldconfig -v | grep pthread
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/lib' given more than once
libpthread.so.0 -> libpthread-0.9.so
libpthread.so.0 -> libpthread-0.9.so

ml@nostromo:~$ gaze install glibc |grep pthread
/lib/libpthread-0.9.so
/usr/include/bits/pthreadtypes.h
/usr/include/pthread.h
/usr/lib/libpthread.a
/usr/lib/libpthread_p.a


Does someone already encoutered that ? Any ideas please ? (this stops my
guruism for mail/news, plus all my users here, I'm stuck !)

Bye,
Mat.
--
//
// M.L.
// Linux User #36502 ~ ICQ #23832402
//




  • [SM-Discuss] pthread problems..., Mat, 08/28/2002

Archive powered by MHonArc 2.6.24.

Top of Page