My bad, I misunderstood the issue.<div><br></div><div>There have been some issues with linking CTK with DCMTK statically. </div><div>There is a painful discussion here: <a href="http://public.kitware.com/pipermail/ctk-developers/2012-February/000941.html">http://public.kitware.com/pipermail/ctk-developers/2012-February/000941.html</a></div>
<div>It seems to be because DCMTK doesn't expose as an external project the dependencies of all its libraries.</div><div>It ends up linking multiple times the same symbols.</div><div><br></div><div>Julien.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Nov 17, 2012 at 5:42 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am building against ITKv4's head. I'm not sure it this fix is relevant.<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Nov 17, 2012 at 5:36 PM, Julien Finet <<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>> wrote:<br>
> Hi Bill,<br>
><br>
> Yesterday Francois Budin reported a similar issue (he had a crash though).<br>
> After investigation, we noticed that the itkMRMLIOPlugin was loaded by the<br>
> executable CLI because ITK_AUTOLOAD_PLUGIN was set.<br>
><br>
> I just pushed a fix that would prevent executable CLIs from loading the<br>
> plugin:<br>
> <a href="http://na-mic.org/Mantis/view.php?id=2773" target="_blank">http://na-mic.org/Mantis/view.php?id=2773</a><br>
> <a href="http://na-mic.org/Mantis/view.php?id=1635" target="_blank">http://na-mic.org/Mantis/view.php?id=1635</a><br>
><br>
> Please note that it only applies to executable CLIs, the problem might still<br>
> happen for loadable CLIs.<br>
><br>
> Julien.<br>
><br>
><br>
> On Sat, Nov 17, 2012 at 3:11 PM, Steve Pieper <<a href="mailto:pieper@ibility.net">pieper@ibility.net</a>> wrote:<br>
>><br>
>> FYI<br>
>><br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
>> Date: Sat, Nov 17, 2012 at 11:28 AM<br>
>> Subject: [Insight-developers] Possible issue with ITK dcmtk and Slicer<br>
>> dcmtk<br>
>> To: Insight Developers <<a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a>><br>
>> Cc: Hans Johnson <<a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a>>, Kent Williams<br>
>> <<a href="mailto:norman-k-williams@uiowa.edu">norman-k-williams@uiowa.edu</a>><br>
>><br>
>><br>
>> Folks,<br>
>><br>
>> I have not investigated this too much, but here it goes...<br>
>><br>
>> I updated slicer 4 today and itkv4. I'm building Slicer against<br>
>> today's itkv4 master.<br>
>><br>
>> The EMSegmentCommandLine program is segfaulting when exiting. I tried<br>
>> it with the --xml argument.<br>
>><br>
>> gdb reports (some symbols are missing because my build is not all debug<br>
>><br>
>> #0 0x0000000000000031 in ?? ()<br>
>> #1 0x00007fffed103079 in OFListBase::~OFListBase (this=0x7fffed51b930,<br>
>> __in_chrg=<value optimized out>)<br>
>> at<br>
>> /home/lorensen/Projects/Slicer4-Superbuild/DCMTK/ofstd/libsrc/oflist.cc:54<br>
>> #2 0x00007fffe1980fba in OFList<DcmCodecList*>::~OFList() ()<br>
>> from<br>
>> /home/lorensen/Projects/Slicer4-Superbuild/ITKv4-build/Modules/ThirdParty/DCMTK/ITKDCMTK_ExtProject-build/lib/libdcmdata.so.3<br>
>> #3 0x00007fffd2649d3d in __cxa_finalize (d=0x7fffe1d0b2c0)<br>
>> at cxa_finalize.c:56<br>
>> #4 0x00007fffe1978f36 in __do_global_dtors_aux ()<br>
>> from<br>
>> /home/lorensen/Projects/Slicer4-Superbuild/ITKv4-build/Modules/ThirdParty/DCMTK/ITKDCMTK_ExtProject-build/lib/libdcmdata.so.3<br>
>> #5 0x0000000000000000 in ?? ()<br>
>><br>
>> Looks to me like Slicer's Superbuild DCMTK is classing with ITK's<br>
>> DCMTK. As I said I have not investigated this very much.<br>
>><br>
>> Bill<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
>><br>
>> Please keep messages on-topic and check the ITK FAQ at:<br>
>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
>> _______________________________________________<br>
>> slicer-devel mailing list<br>
>> <a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a><br>
>> <a href="http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel" target="_blank">http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel</a><br>
>> To unsubscribe: send email to<br>
>> <a href="mailto:slicer-devel-request@massmail.spl.harvard.edu">slicer-devel-request@massmail.spl.harvard.edu</a> with unsubscribe as the<br>
>> subject<br>
><br>
><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>