[Zope-Perl] Can't import perl.so

Stephen Harrison stephen@nipltd.com
Mon, 23 Oct 2000 17:31:07 +0100


Hi,

I recently started trying to get zope-perl up and running, but I am
encountering some problems at the pyperl stage.

Setup:
pyperl-1.0beta2
ActivePerl-5.6 (I'm assuming this has the necessary patches applied)
Python-1.5.2 (patched with python-152-dynload-global)
Solaris 8 OS
gcc 2.95.2

Everything compiles and installs, but if I try to import the perl
module, I get this:

>>> import perl
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: ld.so.1: python: fatal: relocation error: file
/space/stephen/Python-1.5.2/lib/python1.5/site-packages/perl.so: symbol
__floatdidf: referenced symbol not found
>>> 

I wondered if maybe ActivePerl doesn't have the necessary patches, so I
did a source build of perl 5.6.0, using the patches supplied.  However,
using this version of perl, Python-Object fails to compile, with the
following error message:

gcc -c -I/space/stephen/Python-1.5.2/include/python1.5
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O     -DVERSION=\"0.11\" -DXS_VERSION=\"0.11\"
-fPIC -I/space/stephen/Perl-5.6/lib/perl5/5.6.0/sun4-solaris/CORE
-DMULTI_PERL Object.c
In file included from Object.xs:10:
../lang_lock.h:65: parse error before `last_py_tstate'
../lang_lock.h:65: warning: data definition has no type or storage class
make: *** [Object.o] Error 1

So, any ideas?  Has anyone else had these kind of problems?  I know that
others have successfully built pyperl on solaris, so am I just having
finger trouble?

Any advice appreciated.

Cheers,
Stephen

-- 

Stephen Harrison            stephen@nipltd.com
New Information Paradigms   www.nipltd.com