[xcrysden] xcrysden mesa/tc/tk on MacOS

David Strubbe dstrubbe at civet.berkeley.edu
Wed Jan 16 21:02:36 CET 2013


Dear Tone,

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
writeXSF.c:128:5: warning: 'result' is deprecated (declared at
/opt/local/include/tcl.h:507);

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.

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
    __TEXT                 000000010dd16000-000000010ddde000 [  800K]
r-x/rwx SM=COW  /Users/USER/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libX11.6.dylib                 0x000000010e6a692d _XInternAtom + 84
1   libX11.6.dylib                 0x000000010e6a682f XInternAtom + 76
2   libGL.1.dylib                 0x000000010e543538 choose_x_visual + 56
3   libGL.1.dylib                 0x000000010e543292 choose_visual + 978
4   libGL.1.dylib                 0x000000010e54114f Fake_glXChooseVisual +
143
5   xcrys                         0x000000010dda8041 Togl_CreateWindow +
1709
6   libtk8.6.dylib                 0x000000010e07f50d Tk_MakeWindowExist +
125
7   xcrys                         0x000000010dda78c2 Togl_Cmd + 1301
8   libtcl8.6.dylib               0x000000010e1cc059 TclInvokeStringCommand
+ 121
9   libtcl8.6.dylib               0x000000010e1cda79 TclNREvalObjv + 1657
10  libtcl8.6.dylib               0x000000010e236b07 TEBCresume + 12887
11  libtcl8.6.dylib               0x000000010e1cdae8 TclNRRunCallbacks + 88
12  libtcl8.6.dylib               0x000000010e1ce706 TclEvalEx + 1734
13  libtcl8.6.dylib               0x000000010e25f3fd Tcl_FSEvalFileEx + 621
14  libtk8.6.dylib                 0x000000010e0707cd Tk_MainEx + 1453
15  xcrys                         0x000000010dd18089 main + 66
16  libdyld.dylib                 0x00007fff8f7d47e1 start + 1


On Tue, Jan 15, 2013 at 11:42 AM, Tone Kokalj <tone.kokalj at ijs.si> wrote:

> On Fri, 2013-01-11 at 13:46 -0500, David Strubbe wrote:
> > Application initialization failed: Can't find a usable init.tcl in the
> > following directories:
> >
> >   /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
> >
> > /opt/local/lib/tcl8.5/init.tcl: version conflict for package "Tcl":
> > have 8.5.12, need exactly 8.5.13
> > version conflict for package "Tcl": have 8.5.12, need exactly 8.5.13
>
> This is due to, say, incomplete or inconsistent installation of Tcl
> 8.5.13. As the message suggests, it cannot locate the matching init.tcl
> file. Set the TCL_LIBRARY shell environmental variable to point to the
> directory that contain the Tcl's system library of Tcl scripts. The one
> of /opt/local/lib/tcl8.5/ obviously corresponds to version 8.5.12.
>
> >
> > With 8.6.0, the compilation fails with these errors:
> >
> > xcAppInit.c: In function 'XC_OpenStrCmd':
> > xcAppInit.c:786:11: error: 'Tcl_Interp' has no member named 'result'
>
> There are some backward incompatibilities with the new Tcl8.6. Browsing
> Tcl documentation, one finds the workaround by defining the
> USE_INTERP_RESULT macro (e.g. defining the -DUSE_INTERP_RESULT for
> Make.sys's CFLAGS).
>
> Best regards,
> --
> Anton Kokalj
> J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia
> (tel: +386-1-477-3523 // fax:+386-1-477-3822)
>
> Please, if possible, avoid sending me Word or PowerPoint attachments.
> See:  http://www.gnu.org/philosophy/no-word-attachments.html
>
> _______________________________________________
> XCrySDen mailing list
> XCrySDen at democritos.it
> http://www.democritos.it/mailman/listinfo/xcrysden
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.democritos.it/pipermail/xcrysden/attachments/20130116/9b713e63/attachment.htm 


More information about the XCrySDen mailing list