<div>Dear Tone,</div><div><br></div><div>Including the C flag you mentioned, I can now compile with tcl/tk 8.6.0 (despite a huge number of warnings of the form</div><div>writeXSF.c:128:5: warning: &#39;result&#39; is deprecated (declared at /opt/local/include/tcl.h:507);</div>
<div><br></div><div>however the program crashes while trying to open the X11 window with a segmentation fault, and shows this info in a window about sending a report to Apple.</div><div><br></div><div>Crashed Thread:  0  Dispatch queue: com.apple.main-thread</div>
<div><br></div><div>Exception Type:  EXC_BAD_ACCESS (SIGSEGV)</div><div>Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000</div><div><br></div><div>VM Regions Near 0:</div><div>--&gt; </div><div>    __TEXT                 000000010dd16000-000000010ddde000 [  800K] r-x/rwx SM=COW  /Users/USER/*</div>
<div><br></div><div>Thread 0 Crashed:: Dispatch queue: com.apple.main-thread</div><div>0   libX11.6.dylib                <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e6a692d _XInternAtom + 84</div>
<div>1   libX11.6.dylib                <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e6a682f XInternAtom + 76</div><div>2   libGL.1.dylib                 <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e543538 choose_x_visual + 56</div>
<div>3   libGL.1.dylib                 <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e543292 choose_visual + 978</div><div>4   libGL.1.dylib                 <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e54114f Fake_glXChooseVisual + 143</div>
<div>5   xcrys                         <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010dda8041 Togl_CreateWindow + 1709</div><div>6   libtk8.6.dylib                <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e07f50d Tk_MakeWindowExist + 125</div>
<div>7   xcrys                         <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010dda78c2 Togl_Cmd + 1301</div><div>8   libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e1cc059 TclInvokeStringCommand + 121</div>
<div>9   libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e1cda79 TclNREvalObjv + 1657</div><div>10  libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e236b07 TEBCresume + 12887</div>
<div>11  libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e1cdae8 TclNRRunCallbacks + 88</div><div>12  libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e1ce706 TclEvalEx + 1734</div>
<div>13  libtcl8.6.dylib               <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e25f3fd Tcl_FSEvalFileEx + 621</div><div>14  libtk8.6.dylib                <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010e0707cd Tk_MainEx + 1453</div>
<div>15  xcrys                         <span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010dd18089 main + 66</div><div>16  libdyld.dylib                 <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff8f7d47e1 start + 1</div>
<div><br></div><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 11:42 AM, Tone Kokalj <span dir="ltr">&lt;<a href="mailto:tone.kokalj@ijs.si" target="_blank">tone.kokalj@ijs.si</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, 2013-01-11 at 13:46 -0500, David Strubbe wrote:<br>
&gt; Application initialization failed: Can&#39;t find a usable init.tcl in the<br>
&gt; following directories:<br>
&gt;<br>
&gt;   /opt/local/lib/tcl8.5 /Users/dstrubbe/Software/xcrysden-1.5.53_macportslibs/lib/tcl8.5 /Users/dstrubbe/Software/lib/tcl8.5 /Users/dstrubbe/Software/xcrysden-1.5.53_macportslibs/library /Users/dstrubbe/Software/library /Users/dstrubbe/Software/tcl8.5.12/library /Users/dstrubbe/tcl8.5.12/library<br>

&gt;<br>
&gt; /opt/local/lib/tcl8.5/init.tcl: version conflict for package &quot;Tcl&quot;:<br>
&gt; have 8.5.12, need exactly 8.5.13<br>
&gt; version conflict for package &quot;Tcl&quot;: have 8.5.12, need exactly 8.5.13<br>
<br>
</div>This is due to, say, incomplete or inconsistent installation of Tcl<br>
8.5.13. As the message suggests, it cannot locate the matching init.tcl<br>
file. Set the TCL_LIBRARY shell environmental variable to point to the<br>
directory that contain the Tcl&#39;s system library of Tcl scripts. The one<br>
of /opt/local/lib/tcl8.5/ obviously corresponds to version 8.5.12.<br>
<div class="im"><br>
&gt;<br>
&gt; With 8.6.0, the compilation fails with these errors:<br>
&gt;<br>
&gt; xcAppInit.c: In function &#39;XC_OpenStrCmd&#39;:<br>
&gt; xcAppInit.c:786:11: error: &#39;Tcl_Interp&#39; has no member named &#39;result&#39;<br>
<br>
</div>There are some backward incompatibilities with the new Tcl8.6. Browsing<br>
Tcl documentation, one finds the workaround by defining the<br>
USE_INTERP_RESULT macro (e.g. defining the -DUSE_INTERP_RESULT for<br>
Make.sys&#39;s CFLAGS).<br>
<br>
Best regards,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Anton Kokalj<br>
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia<br>
(tel: <a href="tel:%2B386-1-477-3523" value="+38614773523">+386-1-477-3523</a> // fax:<a href="tel:%2B386-1-477-3822" value="+38614773822">+386-1-477-3822</a>)<br>
<br>
Please, if possible, avoid sending me Word or PowerPoint attachments.<br>
See:  <a href="http://www.gnu.org/philosophy/no-word-attachments.html" target="_blank">http://www.gnu.org/philosophy/no-word-attachments.html</a><br>
<br>
_______________________________________________<br>
XCrySDen mailing list<br>
<a href="mailto:XCrySDen@democritos.it">XCrySDen@democritos.it</a><br>
<a href="http://www.democritos.it/mailman/listinfo/xcrysden" target="_blank">http://www.democritos.it/mailman/listinfo/xcrysden</a><br>
</font></span></blockquote></div><br>