[Numpy-discussion] f2py error with -DF2PY_REPORT_ATEXIT

Robin robince at gmail.com
Tue Nov 3 13:52:50 EST 2009

Just noticed this is only supported on linux - sorry for the noise
(not having a very good day today!)


On Tue, Nov 3, 2009 at 6:47 PM, Robin <robince at gmail.com> wrote:
> Hi,
> When I try to build a fortran module with f2py from '1.4.0.dev7618'
> with gfortran 4.2.3 from att.com and apple gcc 4.2 on snow leopard I
> get the following error when I try to use -DF2PY_REPORT_ATEXIT:
> In [1]: import gfint
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call last)
> /Users/robince/fortran/<ipython console> in <module>()
> ImportError: dlopen(./gfint.so, 2): Symbol not found: _on_exit
>  Referenced from: /Users/robince/fortran/gfint.so
>  Expected in: dynamic lookup
> Is numpy trac the place for f2py tickets? Or is there an obvious fix.
> Inspecting gfint.so shows the same symbols for both architectures, and
> _on_exit is listed there with a U which I guess means undefined.
> Cheers
> Robin

More information about the NumPy-Discussion mailing list