[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

undefined reference to `pthread_mutexattr_init' in apr?

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2000-10-27 07:26:13 CEST

OK. I had this building just fine last week. I updated apr today and
my build is erroring out. My system is Debian potato x86

Just to make sure, here's what I did:

$ cvs -d :pserver:fitz@cvs.tigris.org:/cvs co subversion
$ cd subversion/
$ cvs -d :pserver:anoncvs@www.apache.org:/home/cvspublic checkout -d apr apache-2.0/src/lib/apr
$ tar xfvz ~/tarballs/neon.tgz
$ mv neon-0.7.5 neon
$ ./autogen.sh
$ ./configure --with-maintainer-mode --disable-shared
$ make

and BOOM!

make[4]: Leaving directory `/home/bwf/subversion/subversion/libsvn_subr'
Making all in tests
make[4]: Entering directory `/home/bwf/subversion/subversion/libsvn_subr/tests'
/bin/sh ../../../libtool --silent --mode=link gcc -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -DSVN_DEBUG -DAP_DEBUG -g -Wall -o hashdump-test hashdump-test.o ../../tests-common/libsvn_tests_main.la ../libsvn_subr.la ../../../apr/libapr.a ../../../expat-lite/libexpat.la -lcrypt -lnsl -lnsl -ldl
../../../apr/libapr.a(intraproc.o): In function `apr_unix_create_intra_lock':
/home/bwf/subversion/apr/locks/unix/intraproc.c:85: undefined reference to `pthread_mutexattr_init'
/home/bwf/subversion/apr/locks/unix/intraproc.c:101: undefined reference to `pthread_mutexattr_destroy'
collect2: ld returned 1 exit status
make[4]: *** [hashdump-test] Error 1
make[4]: Leaving directory `/home/bwf/subversion/subversion/libsvn_subr/tests'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/bwf/subversion/subversion/libsvn_subr'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bwf/subversion/subversion'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bwf/subversion'
make: *** [all-recursive-am] Error 2


Received on Sat Oct 21 14:36:12 2006

This is an archived mail posted to the Subversion Dev mailing list.