[vtk-developers] VTK Python on Sun

Andy Cedilnik andy.cedilnik at kitware.com
Thu May 2 13:01:38 EDT 2002


My observations so far:
Yes, it has to do with C++ compiler. When libvtkCommon.so and so on are
build they do not link to libCrun.so. When vtk executable is build it
does. The result is that VTK/Python on Sun using Sun C++ compiler will
not work. I even tried to link libCrun by myself and that resulted in:

Python 1.5.2 (#5, May  1 2002, 11:42:34) [C] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import vtk
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/space/berk/vtknew/Wrapping/Python/vtk/__init__.py", line 7, in
?
    from common import *
  File "/space/berk/vtknew/Wrapping/Python/vtk/common.py", line 7, in ?
    from libvtkCommonPython import *
ImportError: ld.so.1: python1.5: fatal: relocation error: file
/space/andy/vtk/VTK-bin/bin/libvtkCommonPython.so: symbol
__1cDstdEcerr_: referenced symbol not found

And so on.

				Andy


On Thu, 2002-05-02 at 11:27, David Gobbi wrote:
> On 2 May 2002, Andy Cedilnik wrote:
> 
> > Hello!
> >
> > Any clue about that:
> >
> > shannara [258] PYTHONPATH=.../VTK-bin/bin:.../VTK/Wrapping/Python
> > python1.5
> > Python 1.5.2 (#5, May  1 2002, 11:42:34) [C] on sunos5
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > >>> import vtk
> > Traceback (innermost last):
> >   File "<stdin>", line 1, in ?
> >   File "/space/berk/vtknew/Wrapping/Python/vtk/__init__.py", line 7, in
> > ?
> >     from common import *
> >   File "/space/berk/vtknew/Wrapping/Python/vtk/common.py", line 7, in ?
> >     from libvtkCommonPython import *
> > ImportError: ld.so.1: python1.5: fatal: relocation error: file
> > /space/andy/vtk/VTK-bin/bin/libvtkCommonPython.so: symbol
> > __1cG__CrunKpure_error6F_v_: referenced symbol not found
> 
> Just my guess, but this probably has to do with a C executable (python)
> trying to load a C++ .so and failing because the dynamic linker expects
> some special C++ symbols to be present in the executable.
> 
> If you re-link the python executable with c++ the problem might go away.
> I've never compiled VTK/Python under solaris so I don't know if this is
> a common problem or not.
> 
> I searched for __1cG__CrunKpure_error6F_v_ on google and received 142
> hits.  There is probably some useful info there.
> 
>  - David
> 
> _______________________________________________
> vtk-developers mailing list
> vtk-developers at public.kitware.com
> http://public.kitware.com/mailman/listinfo/vtk-developers





More information about the vtk-developers mailing list