[Zope-Perl] Can't import perl.so
Gisle Aas
gisle@ActiveState.com
23 Oct 2000 09:53:18 -0700
Stephen Harrison <stephen@nipltd.com> writes:
> 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)
It has.
> 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 don't know what this is.
> 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
You are missing the definition of "perl_key". Might it just be that
you did not build your perl with -Dusethreads?
> 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?
I am not sure I have had a success report from Solaris after we
introduced the thread specific context struct to support the
MULTI_PERL build option. It makes the source rely on pthreads.
Regards,
Gisle