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

Problem with compiling Perl bindings (1.6.17) on PowerPC

From: Justin Hibbits <chmeeedalf_at_gmail.com>
Date: Fri, 18 Nov 2011 09:23:53 -0500

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
Received on 2011-11-18 15:25:23 CET

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.