You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Justin Hibbits <ch...@gmail.com> on 2011/11/18 15:23:53 UTC
Problem with compiling Perl bindings (1.6.17) on PowerPC
Hi,
Tried building the p5-subversion port on FreeBSD/PowerPC, but when testing
the installed port I get the error:
Can't load
'/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/SVN/_Core/_Core.so' for
module SVN::_Core:
/usr/local/lib/perl5/site_perl/5.12.4/mach/auto/SVN/_Core/_Core.so:
Unsupported relocation type 6 in non-PLT relocations
I tracked it down to the building of libsvn_swig_perl-1.a, and
swig_util_pl.c is compiled without -fPIC, which is required to build shared
libraries on PowerPC. Manually adding '-fPIC' to the COMPILE_SWIG_PL line
in the top-level Makefile (line 180) fixed this. But, in this, I noticed
there is no usage of a SWIG_PL_COMPILE, while there is a SWIG_PY_COMPILE
and SWIG_RB_COMPILE.
- Justin Hibbits
Re: Problem with compiling Perl bindings (1.6.17) on PowerPC
Posted by Philip Martin <ph...@wandisco.com>.
Justin Hibbits <ch...@gmail.com> writes:
> I tracked it down to the building of libsvn_swig_perl-1.a, and
> swig_util_pl.c is compiled without -fPIC, which is required to build shared
> libraries on PowerPC. Manually adding '-fPIC' to the COMPILE_SWIG_PL line
> in the top-level Makefile (line 180) fixed this. But, in this, I noticed
> there is no usage of a SWIG_PL_COMPILE, while there is a SWIG_PY_COMPILE
> and SWIG_RB_COMPILE.
Subversion uses "perl -MExtUtils::Embed -e ccopts" to determine which
flags to use. Is the problem a fault with Subversion or your Perl
installation? If you want to try writing a patch then look at
build/ac-macros/swig.m4.
--
Philip