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

Tom Loredo loredo at astro.cornell.edu
Wed Aug 11 23:05:16 CDT 2004


Hello again-

Well, building MacPy 2.3.4 from source didn't help me, either.  I get the
same regexp error.  I'm beginning to wonder if there's something wrong
with my system (though I don't have any problems with other software, and
running DiskWarrior didn't turn up anything nor did it fix the problem). 
I also tried it on my G3 laptop running 10.2.8, but with MacPy 2.3, and I
get the same error.  The laptop and my G4 don't have identical software,
so I'm not sure what that says about the nature of my problems.

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

Rather than track that down, I omitted 'sparse' from the build and
things went a lot further, until I reached fftpack (I do have fftw
installed, so I'm not sure I need this).  The ld fails; it appears
it cannot find Python symbols (lines wrapped below):

-------

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
_PyComplex_Type
_PyDict_GetItemString
_PyDict_SetItemString
_PyErr_Clear

[snip]

_Py_FindMethod
__PyObject_New
restFP
saveFP
collect2: ld returned 1 exit status
error: Command "/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" failed
with exit status 1

--------

If anyone knows how I might fix this, please advise.  Or perhaps it's
another clue regarding my earlier problems.

Thanks again,
Tom



More information about the SciPy-user mailing list