Program will not run correctly using Slackware 14.1/Tcl 8.6.1
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Program will not run correctly using Slackware 14.1/Tcl 8.6.1
Hello All,
Our present terminals use Slackware 12.2 with Tcl 8.5.5 installed. We have a C program that runs in conjunction with it. When the associated script is executed a GUI appears that contain multiple function buttons that through the mouse can be selected to perform different functions.
We are updating some new machines with Slackware 14.1 with Tcl 8.6.1
installed and copying those working files associated with the script.
Through the help of the "Forum" I was able to get the the program to recompile where at first there were multiple errors. However, the GUI appears but function buttons do not operate. When pressed the GUI exits back to the terminal screen with an line error number.
Looked at function calls between the libraries, C and Tcl programs but nothing has lead to getting the GUI to work.
My question is, are there any differences between Slackware 12.2/Tcl 8.5.5 and Slackware 14.1/Tcl 8.6.1 that could cause this GUI not to work. I have searched for some possible answers but have found none!!
Building Tcl 8.5.5 for Slackware 14.1 would be my recommendation. The source package and build scripts (those are the ones with the "SlackBuild" extension) for 12.2 and 14.1 are here:
When pressed the GUI exits back to the terminal screen with an line error number.
you have forgotten to post the message, and possible also the line, or better the line plus a little around to have the context.
its very hard to reason about the problem without more information,
because obvisouly you have a running app where you can click buttons, so tcl/tk possible not the problem.
possible the program works and some preconditions are not fulfilled? (can not find the script I should call..)
I would like to try based on your suggestion to download gcc-4.2.4 which works with our
present Slackware 12.2 to the new machine with Slackware 14.1. I got the file downloaded
but where do I put it and and how do I use it? I would like to keep the present one that came with 14.1 which is gcc-4.8.2. but be able to select 4.2.4 for testing.
I am thinking that perhaps the compiler may not be the correct one for the older C program
we have even though with the help through the "Forum" I was able to recompile with 14.1.
Are you running 32-bit or 64-bit Slackware 14.1? Slackware 12.2 was only 32 bits. Maybe install multilib and try compiling Tcl as a 32 bit executable.
If you were to use gcc-4.2.4 you would probably need multilib anyway if this is a 64-bit Slackware. To have both versions of gcc, you would probably have to unpack the package and rename the files so that there is no conflict between gcc-4.2.4 and gcc-4.8.2. Alternatively, if gcc-4.2.4 is only being used once, you could "upgradepkg gcc-4.2.4", compile the Tcl then "upgradepkg gcc-4.8.2_multilib-x86_64-1alien" again.
The Slackware 14.1 is 64-bit. The script was written years ago before my time with a earlier version before 12.2. I do not have much experience so I do not understand on how to do all that has been posted. I have gcc-4.2.4 downloaded but I do not know what to do with it. Does it have to be extracted in a certain location to test? If so how is it done.
I do not have much experience so I do not understand on how to do all that has been posted. I have gcc-4.2.4 downloaded but I do not know what to do with it.
Just start with multilib. Eric gives pretty straightforward instructions on how to install multilib and how to use it to create 32 bit executables.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.