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

Re: Problems building swig perl bindings for fink package on MacOS X

From: Christian Schaffner <chris01_at_users.sourceforge.net>
Date: 2004-02-16 12:34:53 CET

Hi Ben

Thanks for getting back to me. And sorry for not providing more
informations. I will add that below.

On 16.02.2004, at 10:03, Ben Reser wrote:

> On Fri, Feb 06, 2004 at 02:37:00PM +0100, Christian Schaffner wrote:
>> I am now trying to add packages for the swig perl bindings and had
>> problems when building without any subversion libraries already
>> installed. The build system couldn't find the libraries for ra_local
>> ra_dav ra_svn during e.g 'make -f Makefile.client' in the swig/perl
>> directory. It was looking in /sw/lib instead of in the place of the
>> just built libraries (...../.libs). Therefore i had to add the patch:
>> --- subversion-0.37.0.orig/subversion/bindings/swig/perl/Makefile.PL
>> 2004-02-06 12:07:58.000000000 +0100
>> +++ subversion-0.37.0/subversion/bindings/swig/perl/Makefile.PL
>> 2004-01-30 09:51:16.000000000 +0100
>> @@ -20,8 +20,8 @@
>> my @modules = qw/client delta fs ra repos wc/;
>> my @ldpaths = ('../.libs',
>> - map {"../../../libsvn_$_/.libs"} (@modules, qw/diff
>> subr/));
>> -my @ldmodules = map {"-lsvn_$_-1"} (@modules, qw/diff subr/);
>> + map {"../../../libsvn_$_/.libs"} (@modules, qw/diff
>> subr ra_local ra_dav ra_svn/));
>> +my @ldmodules = map {"-lsvn_$_-1"} (@modules, qw/diff subr ra_local
>> ra_dav ra_svn/);
>> my $apr_config = $ENV{APR_CONFIG} ||
>> '/usr/local/lib/apache2/apr-config';
>> $apr_config = 'apr-config' unless -e $apr_config;
>> to Makefile.PL. Is this a known issue? Or did I do something wrong
>> here?
> Can you give me the configure line you're using? Are you building
> static
> binaries? Any other information about your build environment. Want to
> fix this properly. So I want to verify why this is a problem before I
> make the change. But in general I think your patch is correct.

I am building static and shared libraries on MacOS X 10.3.2 for
building the Fink (<http://fink.sf.net>) package.

The configure line is:
./configure --prefix=/sw --libexecdir='${prefix}/lib/svn'
--mandir='${prefix}/share/man' --infodir='${prefix}/share/info'
--with-neon=/sw --with-apr=/sw --with-apr-util=/sw --enable-shared
--with-apxs=/sw/sbin/apxs --without-apache --disable-mod-activation
Home --with-swig --with-python=/sw/bin/python2.3 --with-perl=perl5.8.1

I use these commands to build the swig perl bindings:
  ### Build swig perl bindings
  make swig-pl-lib
  (cd subversion/bindings/swig/perl && APR_CONFIG=/sw/bin/apr-config &&
export APR_CONFIG && perl5.8.1 Makefile.PL PERL=perl5.8.1
INSTALLMAN1DIR=/sw/share/man/man1 INSTALLMAN3DIR=/sw/share/man/man3
INSTALLVENDORMAN3DIR=/sw/share/man/man3 && make all test)

  ### Install swig perl bindings
  make install-swig-pl-lib DESTDIR=/sw/src/root-svn-ssl-0.37.0-12
  (cd subversion/bindings/swig/perl && make install PERL=perl5.8.1
FULLPERL=5.8.1 DESTDIR=/sw/src/root-svn-ssl-0.37.0-12 UNINST=0)

Some more information (about perl, gcc etc.) is attached at the end of
the mail.

Thanks for any help and please tell me if you need more information.

% gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)

% perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3)
     osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
     uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25
16:58:41 pdt 2003;
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh
powerpc '
     config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe
-Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
     cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
     cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
     ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1495)', gccosandvers=''
     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
     alignbytes=8, prototype=define
   Linker and Libraries:
     ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldbm -ldl -lm -lc
     perllibs=-ldl -lm -lc
     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
   Dynamic Linking:
     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup

Characteristics of this binary (from libperl):
   Locally applied patches:
   Built under darwin
   Compiled at Sep 12 2003 19:50:49

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 16 12:35:16 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.