If you commit the changes to CVS HEAD, (and nobody objects to the changes...) I will merge them to the VTK-5-2 branch...<br><br><br><div class="gmail_quote">On Fri, May 2, 2008 at 12:08 PM, Mathieu Malaterre <<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have just spent yet-another hour trying to figure out why the exact<br>
same code would seg fault when called from the python-wrapped layer<br>
and not the C++ layer. This is yet again the famous dlopen +<br>
RTLD_GLOBAL that still need to be loaded (well at least on my debian<br>
linux system).<br>
<br>
For some obscure reason the 'dl' python module has been removed on<br>
AMD64, but the API can be found in the equivalent 'DLFCN' module.<br>
Therefore I use the following approach in python: try first to load dl<br>
then DLFCN:<br>
<br>
<a href="http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Utilities/VTK/vtkgdcm.py?view=markup" target="_blank">http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Utilities/VTK/vtkgdcm.py?view=markup</a><br>
<br>
...<br>
<br>
  try:<br>
    import dl<br>
  except ImportError:<br>
    # are we on AMD64 ?<br>
    try:<br>
      import DLFCN as dl<br>
    except ImportError:<br>
      dl = None<br>
...<br>
<br>
Could this be fixed in VTK 5.2 ?<br>
<br>
Thanks,<br>
<font color="#888888">--<br>
Mathieu<br>
_______________________________________________<br>
vtk-developers mailing list<br>
<a href="mailto:vtk-developers@vtk.org">vtk-developers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
</font></blockquote></div><br>