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

link failure on OpenBSD; easy workaround

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2003-03-25 03:42:02 CET

svn 0.20 on OpenBSD 3.2, configured with `./configure --prefix=/usr/local/stow/svn-0.20'

No berkeley DB libraries (i.e., it's a client-only build).

    /usr/local/src/svn-0.20/libtool --mode=link gcc -g -O2 -DNEON_ZLIB -L/usr/local/lib -rpath /usr/local/stow/svn-0.20/lib -o svn add-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o feedback.o help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o prompt.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o resolve-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o update-cmd.o util.o ../../../subversion/libsvn_client/libsvn_client-1.la ../../../subversion/libsvn_wc/libsvn_wc-1.la ../../../subversion/libsvn_ra/libsvn_ra-1.la ../../../subversion/libsvn_delta/libsvn_delta-1.la ../../../subversion/libsvn_subr/libsvn_subr-1.la ../../../subversion/libsvn_auth/libsvn_auth-1.la /usr/local/src/svn-0.20/apr-util/libaprutil-0.la -lexpat /usr/local/src/svn-0.20/apr/libapr-0.la -lm -lresolv /usr/local/src/svn-0.20/neon/src/libneon.la -L/usr/local/stow/svn
 -0.20/lib -lz -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm
    gcc -g -O2 -DNEON_ZLIB -o svn add-cmd.o cat-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o feedback.o help-cmd.o import-cmd.o info-cmd.o log-cmd.o ls-cmd.o main.o merge-cmd.o mkdir-cmd.o move-cmd.o prompt.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o resolve-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o update-cmd.o util.o -L/usr/local/lib ../../../subversion/libsvn_client/.libs/libsvn_client-1.a /usr/local/src/svn-0.20/subversion/libsvn_wc/.libs/libsvn_wc-1.a -lm /usr/local/src/svn-0.20/subversion/libsvn_ra/.libs/libsvn_ra-1.a -lm -lm -lm -lm -lz -lm -L/usr/local/stow/svn-0.20/lib -lz -lz -lm -lz -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ../../../subversion/libsvn_wc/.libs/libsvn_wc-1.a /usr/local/src/svn-0.20/subversion/libsvn_delta/.libs/libsvn_delta-1.a -lm ../../../subversion/libsvn_ra/.libs/libsvn_ra-1.a -lm /usr/local/src/svn-0.20/subversion/libsvn_ra_dav/.libs/libsvn_ra_dav
 -1.a -lm -lm -lm -lz -lm -lz -lz -lm -lz -lm -lm /usr/local/src/svn-0.20/subversion/libsvn_auth/.libs/libsvn_auth-1.a -lm /usr/local/src/svn-0.20/subversion/libsvn_ra_svn/.libs/libsvn_ra_svn-1.a -lm -lm -lm ../../../subversion/libsvn_delta/.libs/libsvn_delta-1.a -lm ../../../subversion/libsvn_subr/.libs/libsvn_subr-1.a -lm ../../../subversion/libsvn_auth/.libs/libsvn_auth-1.a /usr/local/src/svn-0.20/subversion/libsvn_subr/.libs/libsvn_subr-1.a -lm /usr/local/src/svn-0.20/apr-util/.libs/libaprutil-0.a -lexpat /usr/local/src/svn-0.20/apr/.libs/libapr-0.a -lm -lresolv /usr/local/src/svn-0.20/neon/src/.libs/libneon.a -lz -lm -lz -lxml2 -lz -lm -lz -liconv -lm -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/stow/svn-0.20/lib
    signals.c:455: Undefined symbol `_pthread_sigmask' referenced from text segment
    thread_mutex.c:66: Undefined symbol `_pthread_mutex_destroy' referenced from text segment
    thread_mutex.c:97: Undefined symbol `_pthread_mutexattr_init' referenced from text segment
    thread_mutex.c:105: Undefined symbol `_pthread_mutex_init' referenced from text segment
    thread_mutex.c:113: Undefined symbol `_pthread_mutexattr_destroy' referenced from text segment
    thread_mutex.c:139: Undefined symbol `_pthread_mutex_lock' referenced from text segment
    thread_mutex.c:152: Undefined symbol `_pthread_mutex_lock' referenced from text segment
    thread_mutex.c:172: Undefined symbol `_pthread_mutex_trylock' referenced from text segment
    thread_mutex.c:184: Undefined symbol `_pthread_mutex_trylock' referenced from text segment
    thread_mutex.c:206: Undefined symbol `_pthread_mutex_unlock' referenced from text segment
    thread_mutex.c:219: Undefined symbol `_pthread_mutex_unlock' referenced from text segment
    thread.c:75: Undefined symbol `_pthread_attr_init' referenced from text segment
    thread.c:96: Undefined symbol `_pthread_attr_setdetachstate' referenced from text segment
    thread.c:117: Undefined symbol `_pthread_attr_getdetachstate' referenced from text segment
    thread.c:165: Undefined symbol `_pthread_create' referenced from text segment
    thread.c:179: Undefined symbol `_pthread_self' referenced from text segment
    thread.c:185: Undefined symbol `_pthread_equal' referenced from text segment
    thread.c:193: Undefined symbol `_pthread_exit' referenced from text segment
    thread.c:203: Undefined symbol `_pthread_join' referenced from text segment
    thread.c:223: Undefined symbol `_pthread_detach' referenced from text segment
    thread.c:291: Undefined symbol `_pthread_once' referenced from text segment
    collect2: ld returned 1 exit status

I found that I could work around the problem by doing `make
LIBS=/usr/lib/libc_r.a'. After doing that, all the self-tests pass.

-- 
PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 25 03:42:45 2003

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