[SciPy-dev] undefined symbol errors in scipy svn

Robert Kern robert.kern at gmail.com
Thu Feb 2 22:16:59 EST 2006


Christopher Fonnesbeck wrote:
> I have been unable to build scipy from svn on OSX this week. I keep 
> getting undefined symbol errors, but I am using the same compilers  that
> I have always been using (gcc 3.3 and g77 3.4.4). Numpy builds  fine.
> 
> /usr/local/bin/g77 -L/usr/local/lib build/temp.darwin-8.4.0-
> Power_Macintosh-2.4/build/src/Lib/fftpack/_fftpackmodule.o build/
> temp.darwin-8.4.0-Power_Macintosh-2.4/Lib/fftpack/src/zfft.o build/
> temp.darwin-8.4.0-Power_Macintosh-2.4/Lib/fftpack/src/drfft.o build/
> temp.darwin-8.4.0-Power_Macintosh-2.4/Lib/fftpack/src/zrfft.o build/
> temp.darwin-8.4.0-Power_Macintosh-2.4/Lib/fftpack/src/zfftnd.o build/
> temp.darwin-8.4.0-Power_Macintosh-2.4/build/src/fortranobject.o -L/
> usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4 -
> Lbuild/temp.darwin-8.4.0-Power_Macintosh-2.4 -ldfftpack -lfftw3 -lg2c 
> -lcc_dynamic -o build/lib.darwin-8.4.0-Power_Macintosh-2.4/scipy/
> fftpack/_fftpack.so -lSystemStubs
> /usr/bin/ld: Undefined symbols:
> _PyArg_ParseTupleAndKeywords
> _PyCObject_AsVoidPtr

I don't see this with the latest numpy and scipy. OS X 10.4, gcc 3.3, g77 3.4.
The arguments you are missing are "-undefined dynamic_lookup -bundle". Look at
line 67 of numpy/distutils/fcompiler/gnu.py for where it ought to be set.

-- 
Robert Kern
robert.kern at gmail.com

"In the fields of hell where the grass grows high
 Are the graves of dreams allowed to die."
  -- Richard Harter




More information about the SciPy-Dev mailing list