<p>Fyi</p>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Stefan Sperling" <<a href="mailto:stsp@elego.de">stsp@elego.de</a>><br>Date: Mar 12, 2012 9:51 AM<br>Subject: Re: svn ingores DESTDIR, was: link error with 1.7.3<br>
To: "rupert.thurner" <<a href="mailto:rupert.thurner@gmail.com">rupert.thurner@gmail.com</a>><br>Cc:  <<a href="mailto:dev@subversion.apache.org">dev@subversion.apache.org</a>>,  <<a href="mailto:schwindt@dfki.uni-kl.de">schwindt@dfki.uni-kl.de</a>><br>
<br type="attribution">On Sun, Mar 11, 2012 at 09:09:20PM -0700, rupert.thurner wrote:<br>
> nikolai did a quick test run, allow me to copy his comment. what<br>
> should we do about this "location resistence"?<br>
><br>
> Configured like this :<br>
>  ./configure --prefix=/opt/svn<br>
><br>
> build and tested :<br>
><br>
> ldd ./subversion/bindings/swig/python/libsvn_swig_py/.libs/<br>
> libsvn_swig_py-1.so | grep svn<br>
>        libsvn_client-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_client/.libs/libsvn_client-1.so.0 (0x00007fbd3754b000)<br>
>        libsvn_wc-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_wc/.libs/libsvn_wc-1.so.0 (0x00007fbd372bb000)<br>
>        libsvn_ra-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_ra/.libs/libsvn_ra-1.so.0 (0x00007fbd370ad000)<br>
>        libsvn_diff-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_diff/.libs/libsvn_diff-1.so.0 (0x00007fbd36e9c000)<br>
>        libsvn_ra_local-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_ra_local/.libs/libsvn_ra_local-1.so.0 (0x00007fbd36c93000)<br>
>        libsvn_repos-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_repos/.libs/libsvn_repos-1.so.0 (0x00007fbd36a65000)<br>
>        libsvn_fs-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_fs/.libs/libsvn_fs-1.so.0 (0x00007fbd3685d000)<br>
>        libsvn_fs_fs-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_fs_fs/.libs/libsvn_fs_fs-1.so.0 (0x00007fbd36632000)<br>
>        libsvn_fs_base-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_fs_base/.libs/libsvn_fs_base-1.so.0 (0x00007fbd36402000)<br>
>        libsvn_fs_util-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_fs_util/.libs/libsvn_fs_util-1.so.0 (0x00007fbd35e52000)<br>
>        libsvn_ra_svn-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_ra_svn/.libs/libsvn_ra_svn-1.so.0 (0x00007fbd35c39000)<br>
>        libsvn_ra_neon-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_ra_neon/.libs/libsvn_ra_neon-1.so.0 (0x00007fbd357f7000)<br>
>        libsvn_delta-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_delta/.libs/libsvn_delta-1.so.0 (0x00007fbd353be000)<br>
>        libsvn_subr-1.so.0 => /root/subversion-1.7.3/subversion/<br>
> libsvn_subr/.libs/libsvn_subr-1.so.0 (0x00007fbd3515a000)<br>
><br>
> Staged it , like this<br>
>  export DESTDIR=/opt/test ; gmake install<br>
> and guess what happens :<br>
><br>
> ldd /opt/test/opt/svn/lib64/libsvn_client-1.so | grep svn<br>
>        libsvn_wc-1.so.0 => /usr/lib64/libsvn_wc-1.so.0<br>
> (0x00007ffebf27b000)<br>
>        libsvn_ra-1.so.0 => /usr/lib64/libsvn_ra-1.so.0<br>
> (0x00007ffebf06f000)<br>
>        libsvn_ra_local-1.so.0 => /usr/lib64/libsvn_ra_local-1.so.0<br>
> (0x00007ffebee66000)<br>
>        libsvn_repos-1.so.0 => /usr/lib64/libsvn_repos-1.so.0<br>
> (0x00007ffebec3b000)<br>
>        libsvn_fs-1.so.0 => /usr/lib64/libsvn_fs-1.so.0<br>
> (0x00007ffebea32000)<br>
>        libsvn_fs_fs-1.so.0 => /usr/lib64/libsvn_fs_fs-1.so.0<br>
> (0x00007ffebe809000)<br>
>        libsvn_fs_base-1.so.0 => /usr/lib64/libsvn_fs_base-1.so.0<br>
> (0x00007ffebe5d9000)<br>
>        libsvn_fs_util-1.so.0 => /usr/lib64/libsvn_fs_util-1.so.0<br>
> (0x00007ffebe059000)<br>
>        libsvn_ra_svn-1.so.0 => /usr/lib64/libsvn_ra_svn-1.so.0<br>
> (0x00007ffebde41000)<br>
>        libsvn_ra_neon-1.so.0 => /usr/lib64/libsvn_ra_neon-1.so.0<br>
> (0x00007ffebda00000)<br>
>        libsvn_delta-1.so.0 => /usr/lib64/libsvn_delta-1.so.0<br>
> (0x00007ffebd5c9000)<br>
>        libsvn_diff-1.so.0 => /usr/lib64/libsvn_diff-1.so.0<br>
> (0x00007ffebd3bd000)<br>
>        libsvn_subr-1.so.0 => /usr/lib64/libsvn_subr-1.so.0<br>
> (0x00007ffebd0fc000)<br>
><br>
><br>
> Well, skipping -R in the linker call and using ldconfig makes life<br>
> easy.<br>
><br>
><br>
> So who to blaim ? libtool ? Good luck with that .<br>
<br>
Well,is libtool is constructing a linker command that which<br>
contains -L /usr/lib64 which causes the linker to pick up svn<br>
libraries that are already installed there.<br>
<br>
You should uninstall previously installed subversion libraries<br>
before the build.<br>
<br>
You could also try to force a shared library version number<br>
increment. Both sets of libraries have number 1 so are considered<br>
equal by the linker. I think I brought up the question about whether<br>
we should do this before. But every downstream packager handles this<br>
differently so there is no point in us doing this.<br>
</div>