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&#39;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">&lt;<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>&gt;</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&#39;s head. I&#39;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 &lt;<a href="mailto:julien.finet@kitware.com">julien.finet@kitware.com</a>&gt; wrote:<br>
&gt; Hi Bill,<br>
&gt;<br>
&gt; Yesterday Francois Budin reported a similar issue (he had a crash though).<br>
&gt; After investigation, we noticed that the itkMRMLIOPlugin was loaded by the<br>
&gt; executable CLI because ITK_AUTOLOAD_PLUGIN was set.<br>
&gt;<br>
&gt; I just pushed a fix that would prevent executable CLIs from loading the<br>
&gt; plugin:<br>
&gt; <a href="http://na-mic.org/Mantis/view.php?id=2773" target="_blank">http://na-mic.org/Mantis/view.php?id=2773</a><br>
&gt; <a href="http://na-mic.org/Mantis/view.php?id=1635" target="_blank">http://na-mic.org/Mantis/view.php?id=1635</a><br>
&gt;<br>
&gt; Please note that it only applies to executable CLIs, the problem might still<br>
&gt; happen for loadable CLIs.<br>
&gt;<br>
&gt; Julien.<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Nov 17, 2012 at 3:11 PM, Steve Pieper &lt;<a href="mailto:pieper@ibility.net">pieper@ibility.net</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; FYI<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ---------- Forwarded message ----------<br>
&gt;&gt; From: Bill Lorensen &lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;<br>
&gt;&gt; Date: Sat, Nov 17, 2012 at 11:28 AM<br>
&gt;&gt; Subject: [Insight-developers] Possible issue with ITK dcmtk and Slicer<br>
&gt;&gt; dcmtk<br>
&gt;&gt; To: Insight Developers &lt;<a href="mailto:insight-developers@itk.org">insight-developers@itk.org</a>&gt;<br>
&gt;&gt; Cc: Hans Johnson &lt;<a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a>&gt;, Kent Williams<br>
&gt;&gt; &lt;<a href="mailto:norman-k-williams@uiowa.edu">norman-k-williams@uiowa.edu</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Folks,<br>
&gt;&gt;<br>
&gt;&gt; I have not investigated this too much, but here it goes...<br>
&gt;&gt;<br>
&gt;&gt; I updated slicer 4 today and itkv4. I&#39;m building Slicer against<br>
&gt;&gt; today&#39;s itkv4 master.<br>
&gt;&gt;<br>
&gt;&gt; The EMSegmentCommandLine program is segfaulting when exiting. I tried<br>
&gt;&gt; it with the --xml argument.<br>
&gt;&gt;<br>
&gt;&gt; gdb reports (some symbols are missing because my build is not all debug<br>
&gt;&gt;<br>
&gt;&gt; #0  0x0000000000000031 in ?? ()<br>
&gt;&gt; #1  0x00007fffed103079 in OFListBase::~OFListBase (this=0x7fffed51b930,<br>
&gt;&gt;     __in_chrg=&lt;value optimized out&gt;)<br>
&gt;&gt;     at<br>
&gt;&gt; /home/lorensen/Projects/Slicer4-Superbuild/DCMTK/ofstd/libsrc/oflist.cc:54<br>
&gt;&gt; #2  0x00007fffe1980fba in OFList&lt;DcmCodecList*&gt;::~OFList() ()<br>
&gt;&gt;    from<br>
&gt;&gt; /home/lorensen/Projects/Slicer4-Superbuild/ITKv4-build/Modules/ThirdParty/DCMTK/ITKDCMTK_ExtProject-build/lib/libdcmdata.so.3<br>
&gt;&gt; #3  0x00007fffd2649d3d in __cxa_finalize (d=0x7fffe1d0b2c0)<br>
&gt;&gt;     at cxa_finalize.c:56<br>
&gt;&gt; #4  0x00007fffe1978f36 in __do_global_dtors_aux ()<br>
&gt;&gt;    from<br>
&gt;&gt; /home/lorensen/Projects/Slicer4-Superbuild/ITKv4-build/Modules/ThirdParty/DCMTK/ITKDCMTK_ExtProject-build/lib/libdcmdata.so.3<br>
&gt;&gt; #5  0x0000000000000000 in ?? ()<br>
&gt;&gt;<br>
&gt;&gt; Looks to me like Slicer&#39;s Superbuild DCMTK is classing with ITK&#39;s<br>
&gt;&gt; DCMTK. As I said I have not investigated this very much.<br>
&gt;&gt;<br>
&gt;&gt; Bill<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt;&gt; <a href="http://kitware.com/products/protraining.php" target="_blank">http://kitware.com/products/protraining.php</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-developers" target="_blank">http://www.itk.org/mailman/listinfo/insight-developers</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; slicer-devel mailing list<br>
&gt;&gt; <a href="mailto:slicer-devel@bwh.harvard.edu">slicer-devel@bwh.harvard.edu</a><br>
&gt;&gt; <a href="http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel" target="_blank">http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel</a><br>
&gt;&gt; To unsubscribe: send email to<br>
&gt;&gt; <a href="mailto:slicer-devel-request@massmail.spl.harvard.edu">slicer-devel-request@massmail.spl.harvard.edu</a> with unsubscribe as the<br>
&gt;&gt; subject<br>
&gt;<br>
&gt;<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>