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

Re: subversion 1.2.0 "make check" does not operate correctly under certain circumstances

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-05-28 03:26:40 CEST

Donald R Laster Jr <laster@dlaster.com> writes:

> The 1.2.0 "make check" used the wrong libraries if another version is
> installed in a location such as /usr/local. I originally installed
> subversion 1.1.4 in /usr/local. When 1.2.0 was released I
> "reinstalled" 1.1.4 into /usr/ local/subversion-1.1.4 but forgot to
> remove the libraries from /usr/ local/lib. When I ran the "make
> check" in the 1.2.0 directories the "make check" appears to have used
> the 1.1.4 libraries that were sitting in /usr/local/lib. Whem I
> reinstalled subversion 1.1.4 in /usr/local/subversion-1.1.4 and
> subversion 1.2.0 in /usr/local/subversion-1.2.0 and insure no
> subversion lbiraries were left in /usr/local/lib both sets of "make
> check" ran correctly.

I think this is because you configured subversion using --enable-dso.

You can verify that the build is using libraries from within the build
tree by running:

$ ldd subversion/clients/cmdline/.libs/lt-svn | grep libsvn

This should show the libraries being picked up from the build area.

I think official libtool way to run the command would be:
$ ./libtool --mode=execute ldd subversion/clients/cmdline/svn
but using .libs/lt-svn directly works for me.

Since you used --enable-dso additional libraries get loaded at
runtime, to see what gets loaded use:

$ strace -etrace=open subversion/clients/cmdline/.libs/lt-svn 2>&1 | grep libsvn_ra-1

I expect this will show libraries being loaded from outside the build
area. The exact set of paths searched for --enable-dso libraries
depends on how your system is configured. It may be possible to use
LD_LIBRARY_PATH to change this, try adding:

/path/to/build/dir/subversion/libsvn_ra_local/.libs

to LD_LIBRARY_PATH and repeat the strace command to see if it works.
You will probably need to add libsvn_fs_fs as well, and possibly
libsvn_ra_dav, libsvn_ra_svn and libsvn_fs_base, to get the regression
tests to pass.

Using LD_LIBRARY_PATH didn't work on --enable-dso libraries the last
time I tried it on my machine, which means there is no way to make
--enable-dso regression tests work without first installing
Subversion.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 28 03:27:29 2005

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.