Import error in PyNGL undefined symbol

From: Andrea Chini <andrea.chini86_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 20 2014 - 08:54:31 MDT


I've compiled with succes PyNGL module in a centos el6 x86_64 machine with Python 2.6.6.

When I try to import Ngl I obtain this error:

Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Ngl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "", line 39, in <module>
    import fplib
ImportError: /usr/lib64/python2.6/site-packages/PyNGL/ undefined symbol: _gfortran_copy_string

It seems a problem with linking of gfortran libraries but F2CLIBS and F2CLIBS_PREFIX are exported correctly to:


Some command output that can help you:

uname -a

Linux 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux

 => (0x00007fff85dff000) => /usr/lib64/ (0x00007fa411c8c000) => /usr/lib64/ (0x00007fa411a13000) => /usr/lib64/ (0x00007fa4117dc000) => /usr/lib64/ (0x00007fa411554000) => /usr/lib64/ (0x00007fa4112b7000) => /lib64/ (0x00007fa41108e000) => /usr/lib64/ (0x00007fa410e68000) => /lib64/ (0x00007fa410c52000) => /usr/lib64/ (0x00007fa41095f000) => /usr/lib64/ (0x00007fa4105b9000) => /lib64/ (0x00007fa41039c000) => /lib64/ (0x00007fa410007000) => /usr/lib64/ (0x00007fa40fde9000) => /lib64/ (0x00007fa40fbe5000) => /usr/lib64/ (0x00007fa40f9da000) => /lib64/ (0x00007fa40f756000)
        /lib64/ (0x00007fa412204000) => /lib64/ (0x00007fa40f552000) => /usr/lib64/ (0x00007fa40f34f000)


        /usr/lib64/python2.6/site-packages/PyNGL/ undefined reference to `_gfortran_copy_string'
        /usr/lib64/python2.6/site-packages/PyNGL/ undefined reference to `_gfortran_internal_malloc'
        /usr/lib64/python2.6/site-packages/PyNGL/ undefined reference to `_gfortran_pow_r8_i4'
        /usr/lib64/python2.6/site-packages/PyNGL/ undefined reference to `_gfortran_internal_free'



Thanks a lot.

*Andrea Chini*

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Mar 20 08:54:43 2014

This archive was generated by hypermail 2.1.8 : Mon Apr 14 2014 - 11:43:53 MDT