[Zope-Perl] Re: installing pyperl on Mac OSX--anybody have success?

Gisle Aas gisle@ActiveState.com
27 Jun 2001 23:32:20 -0700


Daniel Lord <dano@brightfire.com> writes:

> I have Python 2.1 installed from source and using Mac OSX Perl:
> 
> The install in Python-Object fails miserably:
> 
> ( cd Python-Object ; perl Makefile.PL ; make install )
> Picking up pyton include files from "/usr/local/bin/include/python2.1"
> Writing Makefile for Python::Object
> cc -c -I"/usr/local/bin/include/python2.1" -g -pipe -pipe -fno-common
> -traditional-cpp -DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3
> -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\"
> -I/System/Library/Perl/darwin/CORE -DMULTI_PERL Object.c
> In file included from /usr/local/bin/include/python2.1/Python.h:24,
>                   from Object.xs:8:
> /usr/local/bin/include/python2.1/config.h:159: warning:
> `_POSIX_THREADS' redefined
> /usr/include/sys/unistd.h:87: warning: this is the location of the
> previous definition
> 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
> 
> This seems terribly wrong and I don't wnat to be patching *.h
> files. Anybody have success with this?

Does you perl has thread support?  'perl -V' should say something
about USE_ITHREADS.

--Gisle