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

linking with the right db.

From: Andreas Jellinghaus <aj_at_dungeon.inka.de>
Date: 2004-01-26 00:36:25 CET

apache is configured:
./configure --prefix=$PREFIX --enable-ssl --enable-dav --enable-so \
       --enable-deflate --with-dbm=db4 --with-berkeley-db=$PREFIX
and subversion:
./configure --prefix=$PREFIX --with-apxs=$PREFIX/bin/apxs \
        --with-neon=$PREFIX --with-berkeley-db=$PREFIX --with-zlib \
        --with-apr=$PREFIX --with-apr-util=$PREFIX

PATH and LD_LIBRARY_PATH include $PREFIX/bin and $PREFIX/lib,
so everything is found as it should be.

still I find in config.log:
SVN_APRUTIL_EXPORT_LIBS=' -L/home/aj/subversion/lib -laprutil-0 -ldb
-lexpat'
SVN_APRUTIL_LIBS=' /home/aj/subversion/lib/libaprutil-0.la -ldb -lexpat'

the first is good, the second is not - it will link with the
wrong db in /usr/lib/.

And in my compile logfile I find:
/libtool --silent --mode=link gcc -g -O2 -g -O2 -pthread -DNEON_ZLIB
-DNEON_SSL -L/home/aj/subversion/lib -rpath /home/aj/subversion/lib -o
libsvn_swig_perl-1.la swigutil_pl.lo
/home/aj/subversion/lib/libaprutil-0.la -ldb -lexpat
/home/aj/subversion/lib/libapr-0.la -lrt -lm -lcrypt -lnsl -ldl -lz

clearly no reference to $PREFIX/lib at all -> using the wrong db lib.

one more example:
(cd /home/aj/subversion/src/subversion-0.37.0/subversion/libsvn_ra_dav;
/bin/sh
/home/aj/subversion/src/subversion-0.37.0/libtool --mode=relink gcc -g
-O2 -g -O2 -pthread -DNEON_ZLIB -DNEON_SSL -L/home/aj/subversion/lib
-rpath /home/aj/subversion/lib -o libsvn_ra_dav-1.la commit.lo fetch.lo
log.lo merge.lo options.lo props.lo session.lo util.lo
../../subversion/libsvn_delta/libsvn_delta-1.la
../../subversion/libsvn_subr/libsvn_subr-1.la
/home/aj/subversion/lib/libaprutil-0.la
 -ldb -lexpat /home/aj/subversion/lib/libapr-0.la -lrt -lm -lcrypt -lnsl
-ldl -L/home/aj/subversion/lib -lneon -lz -lssl -lcrypto -ldl -lxml2 -lz
-lpthread -lm -lz)
gcc -shared commit.lo fetch.lo log.lo merge.lo options.lo props.lo
session.lo util.lo -Wl,--whole-archive /home/aj/subversion/lib/libneon.a
-Wl,--no-whole-archive -Wl,--rpath -Wl,/home/aj/subversion/lib
-L/usr/lib
-L/home/aj/subversion/src/subversion-0.37.0/subversion/libsvn_subr/.libs
-L/home/aj/subversion/lib -lsvn_delta-1 -lsvn_subr-1 -laprutil-0 -ldb
-lexpat -lapr-0 -lrt -lcrypt -lnsl -lssl
-lcrypto -ldl -lxml2 -lpthread -lm -lz -Wl,-soname
-Wl,libsvn_ra_dav-1.so.0 -o .libs/libsvn_ra_dav-1.so.0.0.0

hu? -L/usr/lib ? that will link the wrong db.
but at least here -L$PREFIX/lib is part of the linking sequence.

What should I do? libraries used from /usr/lib: xml2, ssl, expat.
Is that the reason for -L/usr/lib ?

So what can I do know?

Regards, Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 26 00:50:51 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.