[SciPy-dev] referenced symbol not found

Alain Sartout sartout at math.u-strasbg.fr
Thu Jan 30 04:15:54 CST 2003


Hello,

I have problems for a scipy installation on Sun solaris8. I have try a lot 
compilation for all software list (pyhon, lapack, atlas etc...) whith SunCC, gcc 
for different version of python etc... It never works!

Here the output from python when I try to import scipy :

-----------------------
irmasrv3 [290] > python
Python 2.2.2 (#5, Jan 29 2003, 14:13:36) 
[GCC 3.2] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import scipy
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.2/site-packages/scipy/__init__.py", line 49, in ?
    import special, io, linalg, stats, fftpack
  File "/usr/local/lib/python2.2/site-packages/scipy/special/__init__.py", line 
326, in ?
    from special import *
  File "/usr/local/lib/python2.2/site-packages/scipy/special/special.py", line 
5, in ?
    from cephes import *
ImportError: ld.so.1: python: fatal: relocation error: file 
/usr/local/lib/python2.2/site-packages/scipy/special/cephes.so: symbol __sincos: 
referenced symbol not found
-----------------------



Here, somme informations about software versions :


irmasrv3 [291] > python -c 'import os,sys;print os.name,sys.platform'
posix sunos5

irmasrv3 [292] > uname -a
SunOS irmasrv3 5.8 Generic_108528-12 sun4u sparc SUNW,Sun-Fire

irmasrv3 [293] > gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2

irmasrv3 [294] > g77 --version
GNU Fortran (GCC 3.2) 3.2 20020814 (release)
Copyright (C) 2002 Free Software Foundation, Inc.

irmasrv3 [295] > python -c 'import sys;print sys.version'
2.2.2 (#5, Jan 29 2003, 14:13:36) 
[GCC 3.2]

irmasrv3 [296] > python -c 'import Numeric;print Numeric.__version__'
22.0
irmasrv3 [297] > f2py -v
2.32.225-1419
irmasrv3 [467] # cd /usr/local/lib/python2.2/site-packages/scipy/linalg
irmasrv3 [468] # python setup_atlas_version.py build_ext --inplace --force
atlas_info:
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/local/lib/atlas']
    include_dirs = ['/usr/local/include']

running build_ext
building 'atlas_version' extension
creating build
creating build/temp.solaris-2.8-sun4u-2.2
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC 
-I/usr/local/include/python2.2 -c 
/usr/local/lib/python2.2/site-packages/scipy/linalg/atlas_version.c -o 
build/temp.solaris-2.8-sun4u-2.2/atlas_version.o
gcc: /usr/local/lib/python2.2/site-packages/scipy/linalg/atlas_version.c: No 
such file or directory
gcc: no input files
error: command 'gcc' failed with exit status 1
irmasrv3 [472] # python scipy_distutils/system_info.py
atlas_info:
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/usr/local/lib/atlas']
    include_dirs = ['/usr/local/include']

blas_info:
  NOT AVAILABLE

blas_src_info:
  NOT AVAILABLE

dfftw_info:
  FOUND:
    libraries = ['drfftw', 'dfftw']
    library_dirs = ['/usr/local/lib']
    define_macros = [('SCIPY_DFFTW_H', None)]
    include_dirs = ['/usr/local/include']

dfftw_threads_info:
  FOUND:
    libraries = ['drfftw_threads', 'dfftw_threads']
    library_dirs = ['/usr/local/lib']
    define_macros = [('SCIPY_DFFTW_THREADS_H', None)]
    include_dirs = ['/usr/local/include']

djbfft_info:
  NOT AVAILABLE

fftw_info:
  FOUND:
    libraries = ['fftw', 'rfftw']
    library_dirs = ['/usr/local/lib']
    define_macros = [('SCIPY_FFTW_H', None)]
    include_dirs = ['/usr/local/include']

fftw_threads_info:
  NOT AVAILABLE

lapack_info:
  FOUND:
    libraries = ['lapack']
    library_dirs = ['/usr/local/lib']

lapack_src_info:
  NOT AVAILABLE

sfftw_info:
  NOT AVAILABLE

sfftw_threads_info:
  NOT AVAILABLE

x11_info:
  NOT AVAILABLE




Thanks for your help

	Alain.



------Alain SARTOUT---------------------------------------------------------- 
      office : IRMA - CNRS UMR 7501, 7 rue Rene Descartes  F-67084 STRASBOURG
      phone  : (33) [0]3 90 24 01 72 fax: (33) [0]3 90 24 03 28
      e-mail : Alain.Sartout at math.u-strasbg.fr
      WWW    : http://www-irma.u-strasbg.fr
-----------------------------------------------------------------------------





More information about the Scipy-dev mailing list