[Debian-med-packaging] Bug#572131: Bug#572131: libinsighttoolkit3-dev: built against tcl8.4 but vtk is against 8.5

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Mar 2 13:47:33 UTC 2010


On Tue, Mar 2, 2010 at 2:46 PM, Michal Suchanek
<michal.suchanek at ruk.cuni.cz> wrote:
>
> On 03/02/2010 12:37 AM, Mathieu Malaterre wrote:
>>
>> On Mon, Mar 1, 2010 at 7:49 PM, Michal Suchanek<hramrach at centrum.cz>
>> <michal.suchanek at ruk.cuni.cz>  wrote:
>>
>>>
>>> Package: libinsighttoolkit3-dev
>>> Version: 3.16.0-1j
>>> Severity: normal
>>>
>>>
>>> Hello
>>>
>>> I tried building InsightApplications against the Debian packages
>>> libvtk5-dev and libinsighttoolkit3-dev but the build is failing to
>>> locate the tcl headers`.
>>>
>>> After adding CFLAGS I got error that /usr/lib/libtcl8.5.so cannot be
>>> built. It looks like tcl 8.5 is used by vtk but 8.4 by vtk which does
>>> not fit together well.
>>>
>>
>> Could you please copy/paste the *exact* compilation error.
>> I believe this is due to the fact that CMake does transitive linking.
>> If a library Foo links against libtcl8.5.so.0, there are cases where
>> cmake will try to link to both -lFoo and -ltcl8.5 when -lFoo only is
>> sufficient.
>>
>> As a simple work-around one need to install the -dev package for tcl8.5
>>
>>
>>
>
> Yes, the workaround works for me.
>
> However, the exact error is not very enlightening because the error is about
> missing tcl.h and only after adding some tcl.h into header search path the
> build would complain about missing libtcl8.5.so
>
> The problem could be probably easily diagnosed if cmake printed the commands
> it executes but I did not find anything in the cmake help about any option
> to turn it on.

$ make VERBOSE=1


-- 
Mathieu





More information about the Debian-med-packaging mailing list