[SciPy-user] Further OS X (Jaguar) difficulties

tom fogal tfogal at apollo.sr.unh.edu
Thu Aug 12 09:52:59 CDT 2004


Hi TomL,

 <200408120405.i7C45GS05105 at laplace.astro.cornell.edu>Tom Loredo writes:
>
>I've altered linalg/interface_gen.py to use pre rather than re, and the
>build goes fine until sparsetools, which causes another segfault:
>
>	building extension "scipy.signal.sigtools" sources
>	building extension "scipy.signal.spline" sources
>	building extension "scipy.sparse._zsuperlu" sources
>	building extension "scipy.sparse._dsuperlu" sources
>	building extension "scipy.sparse._csuperlu" sources
>	building extension "scipy.sparse._ssuperlu" sources
>	building extension "scipy.sparse.sparsetools" sources
>	creating build/src/Lib/sparse
>	creating build/src/Lib/sparse/sparsetools
>	Segmentation fault

Sorry, can't help you there... 

>gcc: build/src/fortranobject.c
>cc1: warning: changing search order for system directory "/usr/local/include"
>cc1: warning:   as it has already been specified as a non-system directory
>/usr/local/bin/g77 -lcc_dynamic -bundle
>build/temp.darwin-6.8-Power_Macintosh-2.3/build/src/Lib/fftpack/
>_fftpackmodule.o
>build/temp.darwin-6.8-Power_Macintosh-2.3/Lib/fftpack/src/zfft.o
>build/temp.darwin-6.8-Power_Macintosh-2.3/Lib/fftpack/src/drfft.o
>build/temp.darwin-6.8-Power_Macintosh-2.3/Lib/fftpack/src/zrfft.o
>build/temp.darwin-6.8-Power_Macintosh-2.3/Lib/fftpack/src/zfftnd.o
>build/temp.darwin-6.8-Power_Macintosh-2.3/build/src/fortranobject.o
>-L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.0
>-Lbuild/temp.darwin-6.8-Power_Macintosh-2.3 -ldfftpack -lrfftw -lfftw
>-lg2c -o
>build/lib.darwin-6.8-Power_Macintosh-2.3/scipy/fftpack/_fftpack.so
>/usr/bin/ld: Undefined symbols:
>_PyArg_ParseTuple
>_PyArg_ParseTupleAndKeywords
>_PyCObject_AsVoidPtr
>_PyCObject_Type

<snip>

As you can see from your commandline above, the python library is not
being linked to (no '-lpython'). I had a similar problem - the solution
was to add the linking flag to the end of my 'python setup.py'
command line. For example:

python setup.py build build_ext -lpython2.3

the 2.3 because I do not have a libpython.so, only libpython2.3.so. You
can add as many arguments as you like, but if you have a space I think
you need to quote them.
This worked for me on linux/x86_64. YMMV.

>Thanks again,
>Tom

Your welcome. Good luck,

-tom



More information about the SciPy-user mailing list