[f2py] need help with Intel compiler on Mac OS X 10.6

Qingshan Chen <[email protected]> Sat, 31 Jul 2010 15:02:12 -0400
Newsgroups gmane.comp.python.f2py.user
Message-ID <[email protected]>
Hi,
Does anyone has any success using f2py with Intel ifort on Mac OS X 
10.6? If yes, how did you enable it?

There seems to be fundamental issues even with a program as simple as
subroutine hw()
      write(*,*) "Hello world!"
end subroutine hw

First of all, I have to copy the GnuFCompiler.get_flags_linker_so method 
from gnu.py to intel.py (a tip from Pearu) so that I can compile the 
program with
f2py -c --fcompiler=intelem hw.f90 -m hw

But when I try to import the module, I get the following error
Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: dlopen(./hw.so, 2): Symbol not found: _MAIN__
   Referenced from: /Users/qchen/Documents/python/f2py/hw.so
   Expected in: flat namespace
  in /Users/qchen/Documents/python/f2py/hw.so

Does anyone have an idea what's going here?
Thanks a lot!
Qingshan

-- 
Qingshan Chen
Postdoctoral Research Associate
Florida State University
Url: http://people.sc.fsu.edu/~qchen3