[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
--with-jdk=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/
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
FULLPERL=perl5.8.1 INSTALLDIRS=vendor PREFIX=/sw
LIB=/sw/lib/perl5/5.8.1
INSTALLBIN=/sw/src/root-svn-ssl-0.37.0-12/sw/bin
INSTALLSCRIPT=/sw/src/root-svn-ssl-0.37.0-12/sw/bin
INSTALLPRIVLIB=/sw/lib/perl5/5.8.1
INSTALLARCHLIB=/sw/lib/perl5/5.8.1/darwin-thread-multi-2level
INSTALLSITELIB=/sw/lib/perl5/5.8.1
INSTALLSITEARCH=/sw/lib/perl5/5.8.1/darwin-thread-multi-2level
INSTALLMAN1DIR=/sw/share/man/man1 INSTALLMAN3DIR=/sw/share/man/man3
INSTALLSITEMAN1DIR=/sw/share/man/man1
INSTALLSITEMAN3DIR=/sw/share/man/man3
INSTALLVENDORMAN1DIR=/sw/share/man/man1
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.
Chris.

% 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)
configuration:
   Platform:
     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
usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
     optimize='-Os',
     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',
lseeksize=8
     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,
libperl=libperl.dylib
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
     cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup
-L/usr/local/lib'

Characteristics of this binary (from libperl):
   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
   Locally applied patches:
         RC3
   Built under darwin
   Compiled at Sep 12 2003 19:50:49
   %ENV:
     PERL5LIB="/sw/lib/perl5:/sw/lib/perl5/darwin"
   @INC:
     /sw/lib/perl5/5.8.1/darwin-thread-multi-2level
     /sw/lib/perl5/5.8.1
     /sw/lib/perl5
     /sw/lib/perl5/darwin
     /System/Library/Perl/5.8.1/darwin-thread-multi-2level
     /System/Library/Perl/5.8.1
     /Library/Perl/5.8.1/darwin-thread-multi-2level
     /Library/Perl/5.8.1
     /Library/Perl
     /Network/Library/Perl/5.8.1/darwin-thread-multi-2level
     /Network/Library/Perl/5.8.1
     /Network/Library/Perl
     .

---------------------------------------------------------------------
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.