[Zope-Perl] pyperl build error: solaris2.7, python2.0, perl5.6.0
Gisle Aas
gisle@ActiveState.com
10 Jan 2001 10:07:10 -0800
Huayin Wang <wang@rjka.com> writes:
> Error occurs when trying to build Python-Object,
> here's the details:
>
> /.../misc/pyperl-1.0.beta5/Python-Object/> make
>
> gcc -c -I/usr/local/include/python2.0 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\" -fPIC -I/usr/local/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
> *** Error code 1
> make: Fatal error: Command failed for target `Object.o'
The error shows up because the 'perl_key' type is not defined. It
means that you try to build 'pyperl' in MULTI_PERL mode with a
non-thread enabled perl.
You need to build your perl with the -Dusethreads option to
'Configure'. The easy way is just to use ActivePerl. Then you should
not need any patching either.
Regards,
Gisle