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

Re: Problems building Perl binding

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-02-26 20:56:03 CET

Cristiano Paris wrote:

> swig 1.3.19 from the Gentoo ebuild.
> perl v5.8.2
>
> How can I tell if swig has Perl bindings?

Try this (showing my answers):

   $ swig -swiglib
   /usr/local/lib/swig1.3

   $ ls /usr/local/lib/swig1.3
   Makefile.pl perlmain.i std_common.i std_string.i
   noembed.h perlrun.swg std_map.i std_vector.i
   perl5.swg precommon.swg std_pair.i typemaps.i

If you don't have those files, there may be another package you need to load.
You should also see if there is a 5.8.3 update; there are some important fixes
that went in after 5.8.2.

As far as the _Client.so file is concerned, you need to do a 'make clean'
followed by a rerunning of the Makefile.PL, then 'make' in order to see all of
the "interesting" messages:

   $ env APR_CONFIG=/usr/local/apache2/bin/apr-config perl Makefile.PL
   Writing Makefile for SVN::_Core
   Writing Makefile.client for SVN::_Client
   Writing Makefile.delta for SVN::_Delta
   Writing Makefile.fs for SVN::_Fs
   Writing Makefile.ra for SVN::_Ra
   Writing Makefile.repos for SVN::_Repos
   Writing Makefile.wc for SVN::_Wc

   $ make
...snip...
   swig -c -nopm -perl -I.. -I../../../include -I/usr/local/apache2/include
-module SVN::_Client -o svn_client.c ../svn_client.i
...snip...
   gcc -c -I/usr/local/apache2/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE -I.. -I../../../include -g
-g -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -DVERSION=\"\"
-DXS_VERSION=\"\" -fpic "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE"
svn_client.c
   Running Mkbootstrap for SVN::_Client ()

etc. I suspect you are missing the SWIG support for Perl and you should see
multiple warnings/errors in the log file.

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Feb 26 20:55:20 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.