[Zope-Perl] unresolved symbol: PL_thr_key

jbr at FIZ-Karlsruhe.DE jbr at FIZ-Karlsruhe.DE
Mon Jan 26 10:03:54 EST 2004



Hello,

PL_thr_key is defined in
  python ... /site-packages/perl2.so
    

Can you find perl2.so in your python directory somewhere below:

   python ... /site-packages

My guesses are:

When installing perl* for python,  was perl in the PATH  environment ?

When now calling python on commmand line, to you have the same perl in your
PATH as at compile time of python ?


Juergen Berger



> From: Darryl Cousins <darryl at altcontrol.nl>

> Hi,

> This is a quiet list but I hope someone may see this and could help me.

> Using Zope-2.6.1, perl-5.8.0, pyperl-1.0.1

> Install for Python-Module went fine.
> As did setup.py install
> dbi* and perl* installed in /home/zope/Zope-2.6.1/lib/python2.1/site-packages

> At work I had no problems with the pyperl nodule on Redhat
> At home I get the following error:

> ============== CODE ========================
> [zope at theshire zope]# ~/Zope-2.6.1/bin/python
> Python 2.1.3 (#1, Sep 19 2002, 13:15:46)
> [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
> Type "copyright", "credits" or "license" for more information.
> >>> import perl
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: perl2.so not found
> >>> import perl2
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: /home/zope/Zope-2.6.1/lib/python2.1/site-packages/perl2.so: undefined symbol: PL_thr_key
> >>>
> ============== /CODE ========================

> I have googled for PL_the_key but found nothing relative to python

> Here is perl -V (I cannot see any great difference between here and at work)
> ============== CODE ========================
> [zope at theshire zope]# perl -V
> Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
> Platform:
> osname=linux, osvers=2.4.20-gentoo-r6, archname=i686-linux-thread-multi
> uname='linux theshire 2.4.20-gentoo-r6 #1 fri jan 23 08:22:36 cet 2004 i686 intel(r) pentium(r) 4 cpu 1.50ghz genuineintel gnulinux '
> config_args='-des -Darchname=i686-linux-thread -Dcc=gcc -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dlocincpth=  -Doptimize=-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman3ext=3pm -Dcf_by=Gentoo -Ud_csh -Dusethreads -Di_gdbm -Di_db -Di_ndbm'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=undef use64bitall=undef uselongdouble=undef
> usemymalloc=n, bincompat5005=undef
> Compiler:
> cc='gcc', ccflags ='-DPERL5 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
> optimize='-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe',
> cppflags='-DPERL5 -DPERL5 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing'
> ccversion='', gccversion='3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)', gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
> alignbytes=4, prototype=define
> Linker and Libraries:
> ld='gcc', ldflags =' -L/usr/local/lib'
> libpth=/usr/local/lib /lib /usr/lib
> libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt -lutil
> perllibs=-lpthread -lnsl -ldl -lm -lc -lcrypt -lutil
> libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
> gnulibc_version='2.3.2'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
> cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
> Built under linux
> Compiled at Jan 26 2004 11:57:45
> @INC:
> /etc/perl
> /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.0
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.0/i686-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.0
> /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.0/i686-linux-thread-multi
> /usr/lib/perl5/5.8.0
> /usr/local/lib/site_perl
> ============== /CODE ========================

> Thanks for your time and I hope to shortly read your comments.

> Darryl Cousins




More information about the Zope-perl mailing list