Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193900 - sci-libs/vtk-5.0.3 does not declare /usr/lib/python2.4/site-packages/vtk/ in the LDPATH
Summary: sci-libs/vtk-5.0.3 does not declare /usr/lib/python2.4/site-packages/vtk/ in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 18:59 UTC by Daniel Tourde
Modified: 2010-05-28 20:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tourde 2007-09-26 18:59:24 UTC
While building salome (www.salome-platform.org), the system complains that it cannot find libvtkCommonPython

(cd . && ln -s SALOME_GenericObjSK.lo SALOME_GenericObjSK.o)
i686-pc-linux-gnu-gcc -shared  SalomePy.lo SALOMEDSSK.lo SALOMEDS_AttributesSK.lo SALOME_ExceptionSK.lo SALOME_GenericObjSK.lo  -L/var/tmp/portage/sci-misc/salome-gui-3.2.6/work/salome3.2.6_SRC/GUI_SRC_3.2.6/src/Qtx/.libs -L../../lib/salome -lstdc++ -L/usr/lib/python2.4/config -lpython2.4 -ldl -lutil -L/usr/qt/3/lib -lqt-mt -L/usr/lib/vtk-5.0 -L/usr/lib/vtk-5.0/python -lvtkCommon -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkIO -lvtkRendering -lvtkHybrid -lGL -lGLU -lX11 -lXt -lGL -lGLU -lSalomeApp -lvtkCommonPython -lvtkGraphicsPython -lvtkImagingPython -lnsl -lm -ldl -lc  -Wl,-soname -Wl,libSalomePy.so.0 -o .libs/libSalomePy.so.0.0.0
/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lvtkCommonPython
collect2: ld returned 1 exit status
make[3]: *** [libSalomePy.la] Error 1

It turns out that the /etc/env.d/40vtk does not add /usr/lib/python2.4/site-packages/vtk/ to the LDPATH.

Markus, can you fix that?

Daniel

Reproducible: Always
Comment 1 Daniel Tourde 2007-09-26 21:03:31 UTC
Markus,

I went a little bit further with that.
Salome-GUI was clearly specifying -L/usr/lib/vtk-5.0/python where the libraries were in /usr/lib/python2.4/site-packages/vtk.
Once I replaced the path in the right file in salome, things went right. So I removed the LDPATH=/usr/lib/python2.4/site-packages/vtk I had put in /etc/env.d/40vtk.

Two questions though:
- Why did the system never found the libraries? They should have been available anyway, whatever the -L/blabla, isn't it?
- Is there anything that should be corrected in the vtk ebuild to avoid such situations?

Daniel
Comment 2 Daniel Tourde 2008-01-02 14:32:08 UTC
Markus,

What about that question?

Daniel
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2008-01-03 14:03:18 UTC
Hi Daniel,

Thanks for the reminder and happy New Year!
From what you posted it seems to me that this
is something that should be addressed by Salome
not VTK. All python related libraries should ideally
end up in /usr/lib/python2.x/site-packages and that's
where packages should look for them.

Does Solome have a switch for this?
Simply assuming that the libraries are in 
/usr/lib/vtk-5.0/python seems fairly random.

cheers,
Markus

Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2009-12-19 18:15:20 UTC
Hi Daniel,

Where are we with this issue. Still a problem?

Thanks,
Markus
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2010-05-28 20:06:10 UTC
Not in tree anymore