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

Re: Has you guys seen this problem - undefined symbol: svn_sort_compare_items_as_paths

From: Joe Orton <jorton_at_redhat.com>
Date: 2004-05-02 14:14:15 CEST

On Sat, May 01, 2004 at 09:30:01PM -0700, Ben Reser wrote:
> On Fri, Apr 30, 2004 at 06:25:57AM +0200, David Kimdon wrote:
> > On Fri, Apr 30, 2004 at 02:17:56PM +1000, Daniel F Garcia wrote:
> > > http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=246258
> >
> > This is completely a Debian bug and my fault. It is a side effect of
> > getting rpath out of the subversion shared libraries. You should
> > downgrade to 1.0.2-1 until this is fixed.
>
> We really need to fix the Subversion build path to either by default not
> put an rpath in the binary or add an option or something. I've been
> unable to figure out how to do this so right now I'm using chrpath to
> deal with this. I don't think chrpath (IIRC) is an acceptable solution
> for Debian so if you have a solution that fixes the build system somehow
> I'd like to see it so I can work it in somehow.

I've never seen an RPATH in the SVN libraries like David mentioned; but
the RPATH in SVN programs is really just a mis-use of libtool; -rpath is
only supposed to be used when linking libraries not programs. We use
this in the Red Hat RPMs:

--- subversion-0.31.0/build/generator/gen_base.py.rpath
+++ subversion-0.31.0/build/generator/gen_base.py
@@ -421,6 +421,9 @@
     tfile = '%s-%s%s' % (name, cfg.version, extmap['lib', 'target'])
     self.filename = os.path.join(self.path, tfile)
 
+ ### hmm. this is Makefile-specific
+ self.link_cmd = '$(LINK_LIB)'
+
 class TargetApacheMod(TargetLib):
 
   def __init__(self, name, options, cfg, extmap):
--- subversion-0.31.0/Makefile.in.rpath
+++ subversion-0.31.0/Makefile.in
@@ -127,7 +127,8 @@
 COMPILE_SWIG_JAVA = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(SWIG_JAVA_INCLUDES) $(INCLUDES) -o $@ -c
 COMPILE_SWIG_PL = $(LIBTOOL) $(LTFLAGS) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) $(SWIG_PL_INCLUDES) $(INCLUDES) -o $@ -c
 
-LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(libdir)
+LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
+LINK_LIB = $(LINK) -rpath $(libdir)
 
 # special link rule for mod_dav_svn
 LINK_APACHE_MOD = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(APACHE_LIBEXECDIR) -avoid-version -module

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 2 14:14:39 2004

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.