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

Re: lt-svnversion consistenly linked against wrong libs (was: Re: svnversion_tests.py: lt-svnversion uses wrong libraries)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-08-11 18:22:51 CEST

Erik Hülsmann <e.huelsmann@gmx.net> writes:

> The problem:
> the program subversion/svnversion/.libs/lt-svnversion is linked against (some - not all) libsvn_* libraries in the /usr/local/lib directory instead of the ones in the build tree.
>
> The following output demonstrates the problem I describe:
>
> After building (using 'make') and executing 'subversion/svnversion/svnversion' (to let libtool do its job), I get the following output when running:
>
> $ ldd subversion/svnversion/.libs/lt-svnversion | grep -v '.libs/' | grep 'libsvn_'
> libsvn_ra_svn-1.so.0 => /usr/local/lib/libsvn_ra_svn-1.so.0 (0x402fd000)
> libsvn_delta-1.so.0 => /usr/local/lib/libsvn_delta-1.so.0 (0x40306000)
> libsvn_diff-1.so.0 => /usr/local/lib/libsvn_diff-1.so.0 (0x4030d000)
> libsvn_subr-1.so.0 => /usr/local/lib/libsvn_subr-1.so.0 (0x40312000)
>
> This problem only occurs to svnversion; not to any of the other svn programs in the tree.

Try running

LD_DEBUG=libs subversion/svnversion/svnversion

to get some debug output from the shared library loader.

Examining the RPATH embedded in the executable and the libraries may
help, use objdump:

objdump -x subversion/svnversion/.libs/lt-svnversion | grep RPATH
objdump -x subversion/libsvn_client/.libs/libsvn_client-1.so | grep RPATH

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Aug 11 18:23:52 2003

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

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