LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-25-2014, 02:51 PM   #16
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651

i made that suggestion
prior to knowing that this was a 32 bit program being built on a 64 bit OS that is NOT multi lib

also a TON of older code will NOT compile on gcc 4.8 or 4.9

sometimes it is a simple few line hack to get the old code up to the current gcc specs

other times it is WAY easier to have a few versions of gcc installed
if i see an average gcc4.8 build error i will drop to 4.3 , most of the time it will build
or use gcc34
( old habits and a long history of using Fedora and building most programs i use with the very very very NEW version of gcc )


also IF the code built AND worked in gcc 4.3 then we WOULD know that that is the issue
if it still did not work then a tcl issue

but again

without knowing the full build commands and any errors
nor the last error of a "strace"
or the output of gdb .......
 
Old 11-25-2014, 04:05 PM   #17
jefsa
Member
 
Registered: Mar 2012
Posts: 83

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Hello All,

This is what I did:

I downloaded as suggested the multilib packages. After successfully downloading I went
to the point in the instructions, "Compiling 32-bit programs" and entered
. /etc/profile.d/32dev.sh. The prompt changed to:
root@work1 (32bit):/bytex/bytex_gui#
At the prompt I then entered gcc -o bytex bytex.c. The following are the error messages returned:
bytex.c: in function 'check error':
bytex.c:1311:37 error: 'Tcl_Interp' has no member named 'result'
fprintf(stderr, "%s\n", interp >result);
bytex.c:1317:54: error: 'Tcl_Interp' has no member named 'result'
fprintf(stderr, "Tcl_Int failed: %s\n", interp >result
bytex.c:1323:53 error: 'Tcl_Interp' has no member named 'result'
fprintf(stderr, "Tk_Init failed: %s\n", interp >result'

Again the program was written on a Slackware version below 12.2 and before my time. I have no C programming experience and I am trying to get the script to work on Slackware 14.1 64 bit.

The actual problem is:
From the command line I would enter go_bytex. A GUI appears with an assortment of function buttons that perform individual functions. For the most part when one of these buttons is pressed, using the mouse, the GUI disappears and I am returned to the command line with an error message. Here is a message when one of the buttons is pressed:
alloc: invalid block: 0x16d9930: 0 0
/bytex/go_bytex: line 4: 3542 Aborted bytex

What can I do now?

Thanks.

Regards,

Jeff
 
Old 11-25-2014, 07:31 PM   #18
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by jefsa View Post
At the prompt I then entered gcc -o bytex bytex.c.
your next step would be to download the source and SlackBuild as suggested by dugan. http://slackware.osuosl.org/slackware-12.2/source/tcl/

Try making a 64-bit executable and if that doesn't work, 32-bit.
 
Old 11-26-2014, 12:38 AM   #19
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Well, in this case your program is buggy (only the bug didn't manifest in the older configuration). Your options:
- contact the original programmer
- hire another programmer
- install a virtual computer with the previous working configuration
 
Old 11-26-2014, 06:14 PM   #20
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Try upgrading the 12.2 machine's TCL package to 8.6.1. Then rebuild the program on the 12.2 machine and test it on the 12.2 machine again. If that breaks the application, then you know that the issue is TCL 8.6.1 not being backward compatible with 8.5.5.

Last edited by dugan; 11-26-2014 at 06:17 PM.
 
  


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
want a ns2 program code in tcl MONICA Linux - Wireless Networking 1 04-23-2012 05:49 PM
not able to run tcl for mobiwan manjunath11 Linux - Newbie 6 11-05-2010 03:18 AM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 06:57 PM
amsn says tcl/tk not correctly installed? please help! phiqtion Linux - Newbie 2 05-29-2004 12:08 AM

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

All times are GMT -5. The time now is 08:13 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