[SciPy-user] scipy on Mac OSX

Bob Ippolito bob at redivi.com
Mon Jun 21 17:24:07 CDT 2004

On Jun 21, 2004, at 3:10 PM, Lisa Tauxe wrote:

> I've been trying for a week now to compile scipy on a Panther machine.  
>  I have faithfully followed Chris Fonnesbeck's procedure but the scipy  
> compilation chokes near the end every time.    The final messages are:
> collect2: ld returned 1 exit status
> /usr/bin/ld: Undefined symbols:
> _PyArg_ParseTuple
> _PyArg_ParseTupleAndKeywords
> _PyCObject_AsVoidPtr
> _PyCObject_Type
> _PyComplex_Type
> _PyDict_GetItemString
> _PyDict_SetItemString
> _PyErr_Clear
> and a bunch more, then
> restFP
> saveFP
> collect2: ld returned 1 exit status
> error: Command "/usr/local/bin/g77 -lcc_dynamic -bundle  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/build/src/Lib/fftpack/ 
> _fftpackmodule.o  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/Lib/fftpack/src/zfft.o  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/Lib/fftpack/src/drfft.o  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/Lib/fftpack/src/zrfft.o  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/Lib/fftpack/src/zfftnd.o  
> build/temp.darwin-7.4.0-Power_Macintosh-2.3/build/src/fortranobject.o  
> -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.2.0/3.4.0  
> -Lbuild/temp.darwin-7.4.0-Power_Macintosh-2.3 -ldfftpack -lrfftw  
> -lfftw -lg2c -o  
> build/lib.darwin-7.4.0-Power_Macintosh-2.3/scipy/fftpack/_fftpack.so"  
> failed with exit status 1
> Any ideas?

I don't know anything about g77, but if it's like gcc/g++ you'll either  
need to use -undefined dynamic_lookup with the env var  
MACOSX_DEPLOYMENT_TARGET set to 10.3 (resulting binary will be  
compatible with 10.3 or later with any Python 2.3), or you will need to  
add -framework Python to that command line (extension will be  
compatible with Python 2.3 installed in a specific location, doesn't  
use any 10.3 specific features).  That won't fix restFP and saveFP, but  
it will fix all of the missing Python symbols.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2357 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20040621/7ada9dbc/smime.bin

More information about the SciPy-user mailing list