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

Problems building due to spurious -L/lib and -L/usr/lib in libsvn_ra_dav.

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2002-04-26 10:45:37 CEST

I am currently unable to build a SVN that works from the repository
(I do have a 1682+ snapshot that works). I think I've been able to
trace it down to the fact that libsvn_ra_dav.la is adding -L/lib and
-L/usr/lib (see below). No other libtool file that isn't descended
from libsvn_ra_dav has these flags (so, libsvn_ra, libsvn_client,
and cmdline/svn all have this -L/lib bogosity), so I think the root
cause is something that only libsvn_ra_dav links against.

The catch is that I don't think this is explicit, but libtool is
adding it somehow. I definitely think it might be something with
how my system is configured, but this is, uh, just odd.

The net result is that if I try to do a 'svn up', I get:

% /pkg/svn-cvs/bin/svn up

svn_error: #21089 : <RA layer request failed>
  REPORT request failed on /repos/svn/trunk

svn_error: #21089 : <RA layer request failed>
  REPORT of /repos/svn/trunk: could not connect to server

---
Anyone have any clues here?  I'll try to tackle this with fresh
eyes tomorrow, but I can't do anything and haven't been able to
do so for a few days.  Fresh checkouts haven't helped at all.
I've attached a non-silent trace of what libtool is doing on my
system.  I have no idea where that -L/lib and -L/usr/lib are
coming from (notice it isn't passed to libtool, but libtool passes
that to gcc).  Once that gets in, I think I get the wrong neon
and Berkeley DB - which may explain my errors.  I think I went
through most of the .la files that were explicitly mentioned
and I can't see why it would be adding -L/lib and -L/usr/lib.
Help!  =)  -- justin
-------------------------------------------
% ./libtool --version
ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
-------------------------------------------
% make subversion/libsvn_ra_dav/libsvn_ra_dav.la
cd subversion/libsvn_ra_dav && /bin/sh /home/jerenkrantz/cvs-svn/trunk/libtool  --mode=link  gcc -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE  -g -Wall  -pthread  -DNEON_ZLIB  -I./subversion/include -I.  -I/pkg/httpd-2.0/include   -I/pkg/httpd-2.0/include -I/pkg/db-4.0.14/include -I/pkg/neon-0.19.4/include/neon -I/pkg/db-4.0.14/include -Wl,-rpath,/pkg/db-4.0.14/lib    -L/pkg/db-4.0.14/lib  -rpath /pkg/svn-cvs/lib -o libsvn_ra_dav.la  commit.lo fetch.lo log.lo merge.lo options.lo props.lo session.lo util.lo ../../subversion/libsvn_subr/libsvn_subr.la /pkg/httpd-2.0/lib/libaprutil.la -lgdbm -ldb /usr/lib/libexpat.la /pkg/httpd-2.0/lib/libapr.la -L/pkg/neon-0.19.4/lib -lneon -lz -lexpat -lm -lcrypt -lnsl  -ldl
rm -fr .libs/libsvn_ra_dav.la .libs/libsvn_ra_dav.* .libs/libsvn_ra_dav.*
gcc -shared  commit.lo fetch.lo log.lo merge.lo options.lo props.lo session.lo util.lo -Wl,--whole-archive /usr/lib/libneon.a -Wl,--no-whole-archive  -Wl,--rpath -Wl,/home/jerenkrantz/cvs-svn/trunk/subversion/libsvn_subr/.libs -Wl,--rpath -Wl,/pkg/httpd-2.0/lib -Wl,--rpath -Wl,/pkg/svn-cvs/lib -Wl,--rpath -Wl,/pkg/httpd-2.0/lib  -L/lib -L/usr/lib -L/pkg/httpd-2.0/lib -L/pkg/db-4.0.14/lib ../../subversion/libsvn_subr/.libs/libsvn_subr.so /pkg/httpd-2.0/lib/libaprutil.so /usr/lib/libgdbm.so -ldb /pkg/httpd-2.0/lib/libapr.so -L/pkg/neon-0.19.4/lib /usr/lib/libneon.a -lz /usr/lib/libexpat.so -lm -lcrypt -lnsl -ldl   -Wl,-rpath -Wl,/pkg/db-4.0.14/lib -Wl,-soname -Wl,libsvn_ra_dav.so.0 -o .libs/libsvn_ra_dav.so.0.0.0
(cd .libs && rm -f libsvn_ra_dav.so.0 && ln -s libsvn_ra_dav.so.0.0.0 libsvn_ra_dav.so.0)
(cd .libs && rm -f libsvn_ra_dav.so && ln -s libsvn_ra_dav.so.0.0.0 libsvn_ra_dav.so)
rm -fr .libs/libsvn_ra_dav.lax
mkdir .libs/libsvn_ra_dav.lax
rm -fr .libs/libsvn_ra_dav.lax/libneon.a
mkdir .libs/libsvn_ra_dav.lax/libneon.a
(cd .libs/libsvn_ra_dav.lax/libneon.a && ar x /usr/lib/libneon.a)
ar cru .libs/libsvn_ra_dav.a  commit.o fetch.o log.o merge.o options.o props.o session.o util.o  .libs/libsvn_ra_dav.lax/libneon.a/ne_props.o .libs/libsvn_ra_dav.lax/libneon.a/ne_dates.o .libs/libsvn_ra_dav.lax/libneon.a/ne_session.o .libs/libsvn_ra_dav.lax/libneon.a/ne_auth.o .libs/libsvn_ra_dav.lax/libneon.a/ne_string.o .libs/libsvn_ra_dav.lax/libneon.a/ne_cookies.o .libs/libsvn_ra_dav.lax/libneon.a/ne_207.o .libs/libsvn_ra_dav.lax/libneon.a/ne_socket.o .libs/libsvn_ra_dav.lax/libneon.a/ne_request.o .libs/libsvn_ra_dav.lax/libneon.a/ne_locks.o .libs/libsvn_ra_dav.lax/libneon.a/ne_acl.o .libs/libsvn_ra_dav.lax/libneon.a/ne_redirect.o .libs/libsvn_ra_dav.lax/libneon.a/ne_md5.o .libs/libsvn_ra_dav.lax/libneon.a/ne_uri.o .libs/libsvn_ra_dav.lax/libneon.a/ne_xml.o .libs/libsvn_ra_dav.lax/libneon.a/ne_compress.o .libs/libsvn_ra_dav.lax/libneon.a/ne_alloc.o .libs/libsvn_ra_dav.lax/libneon.a/ne_basic.o .libs/libsvn_ra_dav.lax/libneon.a/ne_utils.o .libs/libsvn_ra_dav.lax/libneon.a/base64.o 
ranlib .libs/libsvn_ra_dav.a
rm -fr .libs/libsvn_ra_dav.lax
creating libsvn_ra_dav.la
(cd .libs && rm -f libsvn_ra_dav.la && ln -s ../libsvn_ra_dav.la libsvn_ra_dav.la)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 26 10:46:41 2002

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