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

Re: Agggh! 64-bit bug still present in 1.3.2 (PATCH already in issue tracker)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-06-08 15:48:03 CEST

David Summers <david@summersoft.fay.ar.us> writes:

> I finally figured out a few months ago that it was the -rpath during
> the build. I tried multiple ways of setting it during the build and
> couldn't get it to change. I found out about the chrpath command and
> it took me all of 5 minutes to try it out and fix the problem. If
> there is a better way, I'm all ears; I've spent a lot of time on the
> problem over the last year or so and this was the only way I could
> figure out to fix the problem.
> Reference bug # 1456

Using chrpath doesn't seem like the right way to fix this.

When I build Subversion the module in the build directory has an RPATH
that refers to the build directory:

$ objdump -x subversion/mod_dav_svn/.libs/mod_dav_svn.so | grep RPATH
  RPATH /home/pm/sw/subversion/obj/subversion/libsvn_repos/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_fs/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_delta/.libs:/home/pm/sw/subversion/obj/subversion/libsvn_subr/.libs:/usr/local/subversion/lib

When I run 'make install' it uses apxs to install the module and this
relinks the module, creating .libs/mod_dav_svn.soT, which has no
references to the build directory:

$ objdump -x subversion/mod_dav_svn/.libs/mod_dav_svn.soT | grep RPATH
  RPATH /usr/local/subversion/lib

The relink command uses Apache's installed libtool. After running
'make install DESTDIR=zz' I can reproduce the relink using:

$ (cd subversion/mod_dav_svn/ && /usr/local/apache2/build/libtool --mode=install cp mod_dav_svn.la /home/pm/sw/subversion/obj/zz/usr/local/apache2/modules/)

I'm using Debian's patched libtool so perhaps it works slightly
differently, but if your libtool is leaving behind references to the
build dir then that seems like a bug. When I run the libtool relink
command it prints the gcc command used to relink, what do you see when
you run it?

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jun 8 15:49:19 2006

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