[SciPy-user] OSX Issue -- Symbol not found: _fprintf$LDBLStub
Bill Northcott
w.northcott at unsw.edu.au
Tue Apr 25 19:03:26 EDT 2006
On 25/04/2006, at 12:38 PM, Greg wrote:
> Hey! I'm attempting to get SciPy to run on OSX 10.4 (Tiger), with
> the latest version of Xcode (2.2.1, I believe) installed. When I run
> python and import scipy.fftpack, I get the following error:
>
> Python 2.4.3 (#1, Mar 30 2006, 11:02:15)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import scipy.fftpack
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/scipy/fftpack/__init__.py", line 10, in ?
> from basic import *
> File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
> python2.4/site-packages/scipy/fftpack/basic.py", line 13, in ?
> import _fftpack as fftpack
> ImportError: Failure linking new module: /Library/Frameworks/
> Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/
> fftpack/_fftpack.so: Symbol not found: _fprintf$LDBLStub
> ..........
>
> Does anyone have thoughts on what could be going wrong?
This is caused by trying to link object code files and or static
libraries produced by different versions of gcc. It will go away if
you ensure that all objects are compiled either with gcc-3.x/g77 or
gcc-4.x/gfortran.
It does not matter what compiler is used for linked dynamic
libraries, which is why they are preferred.
Bill Northcott
More information about the SciPy-User
mailing list