<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Dear Prof. Kokalj,<BR>thank you very much for your help.<BR>i had&nbsp;successfully compiled Xcrysden-1.5.53 ; however when i executed the program for&nbsp;FERMI SURFACE rendering, it crashed just like the previous version (the reason why i&nbsp;started to compile it again).<BR>the error reads:<BR>"<font style="font-size: 8pt;" size="1" face="Courier New">*** glibc detected *** /home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys: free(): invalid next size (normal): 0x000000001bf55700 ***<br>======= Backtrace: =========<br>/lib64/libc.so.6[0x30c787245f]<br>/lib64/libc.so.6(cfree+0x4b)[0x30c78728bb]<br>/home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys[0x4719ca]<br>/home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys[0x48b15d]<br>/home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys[0x49119e]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(TclInvokeStringCommand+0x6f)[0x2ac97999efbf]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a01b9]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799e2d70]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(TclObjInterpProcCore+0x11d)[0x2ac979a229ad]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a01b9]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799e2d70]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(TclObjInterpProcCore+0x11d)[0x2ac979a229ad]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a01b9]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(Tcl_EvalObjv+0x43)[0x2ac9799a1393]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(TclEvalObjEx+0x390)[0x2ac9799a17f0]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac979a23321]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a01b9]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799e2d70]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(TclObjInterpProcCore+0x11d)[0x2ac979a229ad]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a01b9]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so[0x2ac9799a0e16]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(Tcl_EvalEx+0x16)[0x2ac9799a1196]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so(Tk_BindEvent+0x802)[0x2ac97966cda2]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so[0x2ac9796ae94d]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so[0x2ac9796af5af]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so(Tk_HandleEvent+0x544)[0x2ac979677a24]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so[0x2ac979677ce0]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(Tcl_ServiceEvent+0x5d)[0x2ac979a1451d]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtcl8.5.so(Tcl_DoOneEvent+0x8e)[0x2ac979a1478e]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so(Tk_MainLoop+0x1b)[0x2ac97967724b]<br>/home/mafarhan/programs/xcrysden-1.5.53/external/lib/libtk8.5.so(Tk_MainEx+0x357)[0x2ac979684827]<br>/home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys[0x40cb8a]<br>/lib64/libc.so.6(__libc_start_main+0xf4)[0x30c781d994]<br>/home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys[0x40bf59]<br>======= Memory map: ========<br>00400000-004d9000 r-xp 00000000 08:11 3758224213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys<br>006d9000-006de000 rw-p 000d9000 08:11 3758224213&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /home/mafarhan/programs/xcrysden-1.5.53/bin/xcrys<br>006de000-00747000 rw-p 006de000 00:00 0 <br>1b580000-1d4de000 rw-p 1b580000 00:00 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [heap]<br>30c7000000-30c701c000 r-xp 00000000 08:01 12747083&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/ld-2.5.so<br>30c721c000-30c721d000 r--p 0001c000 08:01 12747083&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/ld-2.5.so<br>30c721d000-30c721e000 rw-p 0001d000 08:01 12747083&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/ld-2.5.so<br>30c7800000-30c794e000 r-xp 00000000 08:01 12747084&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/libc-2.5.so<br>30c794e000-30c7b4e000 ---p 0014e000 08:01 12747084&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/libc-2.5.so<br>30c7b4e000-30c7b52000 r--p 0014e000 08:01 12747084&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /lib64/libc-2.5.so<br>30c7b52000-30c7b53000 rw-p 00152000 08:0/home/mafarhan/programs/xcrysden-1.5.53/xcrysden: line 233: 13879 Aborted&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ${XCRYSDEN_XCRYS_DIR}/xcrys ${XCRYSDEN_TOPDIR}/Tcl/xcInit.tcl $USE -- $XCRYSDEN_TOPDIR $XCRYSDEN_SCRATCH "$@" &gt; /dev/null</font>"<br>&nbsp;<BR>please help me in this regard.<BR>thanking you in anticipation.<BR>Regards,<BR>M. Arshad Farhan<BR>&nbsp;<BR>&nbsp;<BR><div><div id="SkyDrivePlaceholder"></div>&gt; From: tone.kokalj@ijs.si<br>&gt; To: xcrysden@democritos.it<br>&gt; Date: Mon, 12 Mar 2012 21:46:53 +0100<br>&gt; Subject: Re: [xcrysden] problem in compiling Xcrysden<br>&gt; <br>&gt; On Mon, 2012-03-12 at 12:35 +0900, εΝεΟ ΗΡΤΟ αΡΝΗζ wrote:<br>&gt; &gt; Dear Prof. Kokalj,<br>&gt; &gt; i compiled the libraries you told me to but i'm stuck for meschach<br>&gt; &gt; library.<br>&gt; &gt; when i tarred the package, there were many pre-compiled files.<br>&gt; &gt; i copied the header files &amp;<br>&gt; &gt; library into /XCrySDen-1.5.24-src-all/external/include/ <br>&gt; &gt; and<br>&gt; &gt; /XCrySDen-1.5.24-src-all/external/lib<br>&gt; &gt; <br>&gt; &gt; directories and tried to compile the package again.<br>&gt; &gt; it gave me this error &amp; i defined the value of pi  as suggested by you<br>&gt; &gt; to the questioner (from a previous thread of yours ;<br>&gt; &gt; http://www.democritos.it/pipermail/xcrysden/2012-January/001071.html)<br>&gt; &gt;  <br>&gt; &gt; now it gives the following error:<br>&gt; &gt;  <br>&gt; &gt; "       -o xcrys   -ltk8.5<br>&gt; &gt; -L/home/mafarhan/programs/XCrySDen-1.5.24-src-all/external/lib<br>&gt; &gt; -ltcl8.5 -lGLU -lGL -lXmu -lX11 -lXext -lm <br>&gt; &gt; fft3d.o: In function `fft3d_interpolate':<br>&gt; &gt; fft3d.c:(.text+0x4a9): undefined reference to `fftw_malloc'<br>&gt; <br>&gt; Add the -lfftw3 to some ***_LIB variable in Make.sys<br>&gt; <br>&gt; Alternatively, consider compiling the newest version instead:<br>&gt; http://www.xcrysden.org/download/xcrysden-1.5.53.tar.gz<br>&gt; <br>&gt; The compilation procedure has been improved and compilation should be<br>&gt; smoother. Use the ./system/Make.sys-semishared as a Make.sys, i.e.:<br>&gt; <br>&gt; 1. cp system/Make.sys-semishared Make.sys<br>&gt; 2. $EDITOR Make.sys ([optional]; EDITOR is an editor of your choice)<br>&gt; 3. make all<br>&gt; <br>&gt; Regards, Tone<br>&gt; <br>&gt; -- <br>&gt; Anton Kokalj<br>&gt; J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia <br>&gt; (tel: +386-1-477-3523 // fax:+386-1-477-3822)<br>&gt; <br>&gt; Please, if possible, avoid sending me Word or PowerPoint attachments.<br>&gt; See:  http://www.gnu.org/philosophy/no-word-attachments.html<br>&gt; <br>&gt; _______________________________________________<br>&gt; XCrySDen mailing list<br>&gt; XCrySDen@democritos.it<br>&gt; http://www.democritos.it/mailman/listinfo/xcrysden<br></div>                                               </div></body>
</html>