[SciPy-dev] undefined symbols in scipy_core-0.4.2

Lisandro Dalcin dalcinl at gmail.com
Mon Oct 17 15:40:03 CDT 2005

If this has been reported, please ignore it...

I've got undefined symbols in  scipy/lib/lapack_lite.so:

[dalcinl at trantor lib.linux-i686-2.4]$ python
Python 2.4.2 (#1, Sep 28 2005, 15:28:55)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.base import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "scipy/__init__.py", line 17, in ?
    import scipy.basic.linalg as linalg
  File "scipy/basic/linalg.py", line 1, in ?
    from basic_lite import *
  File "scipy/basic/basic_lite.py", line 7, in ?
    import scipy.lib.lapack_lite as lapack_lite
ImportError: scipy/lib/lapack_lite.so: undefined symbol: s_cat

Googling, I've found this reference about 'libg2c':


I added  '-lg2c' flag (manually, in the command line, and it worked!). Perhaps

Sorry if I can't help a bit more right now! I am a recent user
(comming from numarray) and I have not found the time to look at

BTW, I got the following warnings...

compile options: '-Ibuild/src/scipy/base/src -Iscipy/base/include
-Ibuild/src/scipy/base -Iscipy/base/src -I/usr/local/include/python2.4
gcc: scipy/base/src/multiarraymodule.c
In file included from scipy/base/src/multiarraymodule.c:26:
scipy/base/include/scipy/arrayobject.h:84: warning: redefinition of `ushort'
/usr/include/sys/types.h:152: warning: `ushort' previously declared here
scipy/base/include/scipy/arrayobject.h:85: warning: redefinition of `uint'
/usr/include/sys/types.h:153: warning: `uint' previously declared here
scipy/base/include/scipy/arrayobject.h:86: warning: redefinition of `ulong'
/usr/include/sys/types.h:151: warning: `ulong' previously declared here
gcc -pthread -shared
build/temp.linux-i686-2.4/scipy/base/src/multiarraymodule.o -lm -lm -o

Lisandro Dalcín
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

More information about the Scipy-dev mailing list