[SciPy-user] scipy _fftpack.so build failure, centos4

Gary Strangman strang@nmr.mgh.harvard....
Wed Aug 15 16:14:18 CDT 2007


Hi all,

I'm trying to build scipy0.5.2 in a non-root location on centos4, as part 
of an entirely-separate-from-root python install (python2.4.3, numpy1.0b5, 
gcc3.4.6). I'm having link(?) problems--lots of undefined references--with 
_fftpack.so. The problem appears similar to the reported problems for Mac 
users but unsetenv'ing LDFLAGS and CPPFLAGS didn't help. The tail of the 
build is below. Anyone have any ideas? It doesn't seem to matter whether I 
do "python setup.py install" or "python setup.py build_src build_clib 
build_ext build" as I saw for one suggestion ..........

[snip]
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x1
adf):build/src.linux-i686-2.4/fortranobject.c:218: undefined reference to
`PyExc_AttributeError'
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o(.text+0x1
ae7):build/src.linux-i686-2.4/fortranobject.c:218: undefined reference to
`PyErr_SetString'
/usr/lib/gcc/i386-redhat-linux/3.4.6/libfrtbegin.a(frtbegin.o)(.text+0x35):
In function `main':
: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
error: Command "/usr/bin/g77 -L/usr/X11R6/lib -L/space/nsg/8/users/lib
-L/usr/lib -L/usr/local/lib
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/Lib/fftpack/_fftpackmodul
e.o build/temp.linux-i686-2.4/Lib/fftpack/src/zfft.o
build/temp.linux-i686-2.4/Lib/fftpack/src/drfft.o
build/temp.linux-i686-2.4/Lib/fftpack/src/zrfft.o
build/temp.linux-i686-2.4/Lib/fftpack/src/zfftnd.o
build/temp.linux-i686-2.4/build/src.linux-i686-2.4/fortranobject.o
-L/space/nsg/8/users/lib -Lbuild/temp.linux-i686-2.4 -ldfftpack -lfftw3
-lg2c -o build/lib.linux-i686-2.4/scipy/fftpack/_fftpack.so" failed with
exit status 1
/space/nsg/8/users/scipy-0.5.2>

Gary


More information about the SciPy-user mailing list