Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tk problem with static library X11 on Linux

Status
Not open for further replies.

snailman

Programmer
Nov 4, 2003
1
FR
Hello,
In order to make a TclTk application I have developped a program in C. I have created a new interpreter with Tcl_CreateInterp and added new commands with Tcl_CreateCommand... I compiled it in static with gcc 2.6 on Mandrake 8.2 like :
gcc -static -o mynewwish main.c /usr/lib/libtcl.a /usr/lib/libtk.a /usr/X11R6/lib/libX11.a ...
(I used tcl8.3.3 and tk 8.3.3 sources to obtain static librairies libtcl.a and libtk.a)
This soft was successfully compiled and linked and I could install it on several computers.
But recently, I changed my system using Mandrake 9.1. I have recompiled program with gcc 3.2 and same command line and sources. Compilation is successful but when running, the program crashes with segmentation fault. By debugging with gdb I have seen that problem came from the function XimFreeDefaultTree.
So Have I forgotten an option of compilation or is it a problem of X11.???
Is there a solution?
Thanks for help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top