LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2003, 06:22 AM   #1
snailman
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
Question 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 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shared to static library ofada Programming 2 07-08-2009 11:54 AM
static qt library in debian dun_noe Debian 2 05-23-2005 02:42 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
static linking to c library lantern Programming 1 04-19-2004 08:58 AM
How to use own static library? chuanyung Programming 4 03-10-2004 07:54 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration