[Zope-Perl] error compiling pyperl

Gisle Aas gisle@ActiveState.com
30 May 2002 09:30:39 -0700


"Guy Matz" <gmatz@matz.org> writes:

> i tried to look for this in a FAQ couldn't find . . .
> 
> i'm trying to compile for linux and get the same error when compiling under
> cygwin:
> 
> LAPTOP:gmatz:/tmp/pyperl-1.0.1/Python-Object--> make install
> gcc -c -I"/usr/include/python2.1" -DPERL_USE_SAFE_PUTENV -fno-strict-aliasin
> g -I
> /usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"1.00\" -DXS_VERSION=\"1.
> 00\"
>   -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE -DMULTI_PERL Object.c
> In file included from Object.xs:10:
> ../lang_lock.h:67: parse error before `last_py_tstate'
> ../lang_lock.h:67: warning: data definition has no type or storage class
> make: *** [Object.o] Error 1
> 
> any ideas?

You need a perl with thread support.  Use the -Dusethreads option when
you build perl or use ActivePerl.

Regards,
Gisle