Tcl Tk problems with the X11 static library on Mandrake 9.1
Hello,
I've developped a software in Tcl/Tk using my own interpreter. To make it standalone I have created a C program using Tcl_CreateInterp Tcl_CreateCommand... I had compiled it in static with the gcc 2.96 on Mandrake 8.2 like this :
gcc -static -o mynewwish -static main_wish.c /usr/lib/libtcl.a /usr/lib/libtk.a ... /usr/X11R6/lib/libX11.a
(I've installed tcl835 and tk835 sources to obtain libtcl.a and libtk.a)
The software was correctly compiled and I could install it on severals machines.
I've recently upgrade my system by installing the Mandrake 9.1. The problem is by recompiling the program, using the same command line and same sources, the program crashes because of segmentation fault even if it's compile correctly.
So I've written a score of "fprintf" in the tk source functions and i have found that segmentation fault came from
the call of "OpenIM" a module of the X11 library.
So I don't really know what to do ! Is it a problem due to the new compiler version, the new X11 library? Must I reinstalle Mandrake 8.2 or suicide myself ?
|