[Insight-developers] Re: BOOST_FUNCTION_COMPARE_TYPE_ID
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Thu Nov 29 14:28:56 EST 2007
Le 29 nov. 07 à 20:23, Mathieu Malaterre a écrit :
> On Nov 29, 2007 6:49 PM, Gaëtan Lehmann
> <gaetan.lehmann at jouy.inra.fr> wrote:
>>
>> Le 29 nov. 07 à 18:20, Mathieu Malaterre a écrit :
>>
>>
>>> My message was truncated...
>>>
>>> On Nov 29, 2007 6:06 PM, Mathieu Malaterre
>>> <mathieu.malaterre at gmail.com> wrote:
>>>> Ok, found it:
>>>>
>>>> if dl and (os.name == 'posix'):
>>>> sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
>>>>
>>>> Ahhh nevermind, we have a
>>>
>>> ... a custom wrapping system partly using swig. I simply had to
>>> add at
>>> the very top of the python script the proper dl flags...
>>>
>>> That was nasty...
>>
>> Hi Mathieu,
>>
>> We should already have those flags set both in WrapITK and the
>> current wrapping system.
>> Can you explain a bit more what was the fix?
>
> I am loading swig-wrapped library that link to ITK lib. Therefore my
> python environement is still set with dl.RTLD_LOCAL.
> You should be able to reproduce the bug, by simlpy doing import
> NameOfITKLib (in which case itk.py is never explicitely loaded and
> your symbols are not globals...).
Ok, I see the problem :-)
I was afraid the flags may not be set as they should. We already had
that, and spent a lot of time with Zachary Pincus to identify the
source of the problem.
Thanks for the explanationh
Gaëtan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://www.itk.org/mailman/private/insight-developers/attachments/20071129/300821f9/PGP.pgp
More information about the Insight-developers
mailing list