[SciPy-user] Undefined symbol "ATL_cpttrsm"

Lee Harr missive at hotmail.com
Sun Oct 31 12:34:18 CST 2004


>>>>ImportError: /usr/local/lib/libptf77blas.so.1: Undefined symbol 
>>>>"ATL_cpttrsm"
>>>>
>>>>
>>>>Any hints on how to fix this are appreciated ...
>>>
>>>Symbol "ATL_cpttrsm" should be defined in atlas library, try `nm 
>>>/usr/local/lib/libatlas.* | grep ATL_cpttrsm`.
>>

>>
>>so... it looks like the threaded (_r) libs have the symbol, but not
>>the unthreaded, but the threaded libs were not linked in ...
>


>This should be done in scipy_distutils/system_info.py. Look for
>the definition of *atlas_threads* classes. If freebsd uses for _r-libraries 
>for threaded linking then pt{f77,c}blas should be replaced
>with {f77,c}blas_r but I am not sure, the usage of _r-libraries looks odd 
>to me. Could anyone explain why freebsd introduces _r-libraries?
>


I tried changing:

class atlas_threads_info(atlas_info):
    _lib_names = ['ptf77blas','ptcblas']

class atlas_blas_threads_info(atlas_blas_info):
    _lib_names = ['ptf77blas','ptcblas']


to:

class atlas_threads_info(atlas_info):
    _lib_names = ['atlas_r','ptf77blas','ptcblas']

class atlas_blas_threads_info(atlas_blas_info):
    _lib_names = ['atlas_r','ptf77blas','ptcblas']


Now I get this ....

>>>from scipy import *
>>>linalg.solve
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.3/site-packages/scipy_base/ppimport.py", line 
270, in __getattr__
    module = self._ppimport_importer()
  File "/usr/local/lib/python2.3/site-packages/scipy_base/ppimport.py", line 
243, in _ppimport_importer
    module = __import__(name,None,None,['*'])
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/__init__.py", 
line 8, in ?
    from basic import *
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/basic.py", line 
11, in ?
    from lapack import get_lapack_funcs
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/lapack.py", line 
16, in ?
    import clapack
ImportError: /usr/local/lib/python2.3/site-packages/scipy/linalg/clapack.so: 
Undefined symbol "clapack_sgesv"


but I do not see that one defined anywhere...

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.com/



More information about the SciPy-user mailing list