[Pythonmac-SIG] F2PY, F90, and Mac os x Tiger: linking problem

Louis Wicker Louis.Wicker at noaa.gov
Tue Mar 28 20:35:18 CEST 2006


All:

last year (twice) I posted a question on several groups looking for  
an answer about an error with trying linking F2PY with XLF 8.1 on Mac  
OS X Tiger.  I have been busy with other developments, but
I thought I would post that it is now working (after I finally gave a  
couple things a try).

1.  Thanks to Bob Ippolito for the suggestion about the Xcode not  
being in sync with the Tiger install.  That solved the __mh_header  
problem.

2.  I got the hello.f example work with the following command line  
with XLF:

f2py --fcompiler=ibm -c -m hello hello.f -L/opt/ibmcmp/xlf/8.1/lib - 
lxlf90 -lxlopt -lxl -lxlfmath

I was getting an error message with out directly linking in the xlf  
libs when I tried to import the shared object file hello.so,

ImportError: Failure linking new module: hello.so: Symbol not found:  
__xlfBeginIO

pretty sure not all those libs are needed - but anyway.

regards,

Lou

------------------------------------------------------------------------ 
----
|  Dr. Louis J. Wicker
|  Research Scientist, National Severe Storms Lab
| 1313 Halley Cir, Norman, OK 73069
| E-mail:   Louis.Wicker at noaa.gov
| HTTP:  www.nssl.noaa.gov/~lwicker
| Phone:    (405) 366-0416
| Fax:       (405) 366-0472
|
|
| Two wrongs don't make a right, but three left's do...
------------------------------------------------------------------------ 
----
|
| "The contents  of this message are mine personally and
| do not reflect any position of  the Government or NOAA."
|
------------------------------------------------------------------------ 
----




More information about the Pythonmac-SIG mailing list