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

[BUG] Linker error while building perl bindings

From: Mathias Weinert <mathias.weinert_at_gfa-net.de>
Date: 2005-10-20 12:50:52 CEST

I just fetched the sources from branches/1.3.x (revision 16850) and
tried to build subversion including the perl bindings under cygwin.
With subversion itself everything was okay but I was not able
to build the perl bindings. Instead I got the following linker error:

Creating library file: lib_Core.dll.a
core.o(.text+0x1589f): In function `_wrap_svn_prop_dup':
/d/Subversion/subversion-trunk/subversion/bindings/swig/perl/native/core.c:4429: undefined reference to `_svn_prop_dup'
core.o(.text+0x15c0f): In function `_wrap_svn_prop_array_dup':
/d/Subversion/subversion-trunk/subversion/bindings/swig/perl/native/core.c:4469: undefined reference to `_svn_prop_array_dup'
collect2: ld returned 1 exit status
perlld: *** system() failed to execute

The cause of this was, that the linker got -L/usr/local/lib as one of its
first options and so it found an older version of the svn_subr-1 library
there.

In my opinion this is a bug because with this I would have to remove the
libraries I am currently using before I could build any new version.

In order to avoid this I did the following patch of
subversion/bindings/swig/perl/native/Makefile.PL.in but I am not sure if
this makes sense (although it worked for me). So if you find any better
solution please tell me (and commit it).

Mathias

--- subversion/bindings/swig/perl/native/Makefile.PL.in.orig 2005-10-20 10:47:10.000000000 +0200
+++ subversion/bindings/swig/perl/native/Makefile.PL.in 2005-10-20 12:26:31.966167900 +0200
@@ -47,6 +47,7 @@
                   (map {$_ = abs_path($_); "-L$_"} @ldpaths),
                   @ldmodules, '-lsvn_swig_perl-1',
                   `$swig -perl -ldflags`)],
+ LDDLFLAGS => ' ',
     test => { TESTS => "$swig_srcdir/perl/native/t/*.t" }
 );

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 20 12:51:53 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.