[SciPy-user] fftpack fails on cvs build (OSX)

Bob Ippolito bob at redivi.com
Tue Feb 17 11:51:46 CST 2004


On Feb 17, 2004, at 11:35 AM, Christopher Fonnesbeck wrote:

>
> On Feb 17, 2004, at 10:47 AM, Pearu Peterson wrote:
>
>>>
>>> On Feb 17, 2004, at 10:26 AM, Pearu Peterson wrote:
>>>
>>>> Could you update cvs and try again? I have added Bob's suggestion
>>>> there.
>>>> Let me know if it works or not.
>>>
>>> You added:
>>>
>>> opt.append('-framework','Python')
>>
>> Oops. I meant what's below.
>>
>>> which gives an error, since append only takes 1 argument.  
>>> Substituting:
>>>
>>> opt.append("-framework Python")
>>>
>>> gives the following error:
>>>
>>> g77: Python: No such file or directory
>>
>> Could you try:
>>
>> opt.extend(['-framework','Python'])
>>
>
> Doesnt work ... it can't seem to find python. I believe the  
> appropriate way to link frameworks with g77 with "-Wl,-framework  
> -Wl,Python". Using
>
> opt.append("-Wl,-framework -Wl,Python -lcc_dynamic")
>
> I am able to eliminate most of the errors, except for the following:
>
> /usr/local/bin/g77 -Wl,-framework -Wl,Python -lcc_dynamic  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/build/src/Lib/fftpack/ 
> _fftpackmodule.o  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/Lib/fftpack/src/zfft.o  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/Lib/fftpack/src/drfft.o  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/Lib/fftpack/src/zrfft.o  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/Lib/fftpack/src/zfftnd.o  
> build/temp.darwin-7.2.0-Power_Macintosh-2.3/build/src/fortranobject.o  
> -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin7.0.0/3.4  
> -Lbuild/temp.darwin-7.2.0-Power_Macintosh-2.3 -ldfftpack -lrfftw  
> -lfftw -lg2c -o  
> build/lib.darwin-7.2.0-Power_Macintosh-2.3/scipy/fftpack/_fftpack.so
> /usr/bin/ld: Undefined symbols:
> _MAIN__

It probably needs a -bundle, right now it's probably trying to link as  
an executable..

-bob



More information about the SciPy-user mailing list