LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-10-2008, 11:19 AM   #1
jask496
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
Running legacy C programs withoout errors


I am trying to run C programs written around 1990 with Red Hat Linux 9. I get error messages with practically every reply to the menu programs and to the programs that are run from the menu. They do not crash, but I have to type ENTER to get to where I want to be. I am told this has something to do with standards that were changed. The programs run fine under Red Hat Linux 8.2. Is there any way to solve the problem - a newer version of Red Hat maybe?
 
Old 06-10-2008, 12:47 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
If the programs are recompiling ok under the new Version I am not sure if this will help, but there are a series of compatibility libs for both gcc 2.96 and 3.4.

compat-libstdc++-33

compat-libstdc++296

compat-gcc-34

compat-gcc-34-c++


These are just a few that I could find for F8.
 
Old 06-10-2008, 01:15 PM   #3
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Was it errno.h?

Wasn't this little jem was it?

"Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed."
 
Old 06-10-2008, 03:20 PM   #4
jask496
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Original Poster
Rep: Reputation: 0
The "Incorrectly built binary ..." message is exactly what I get.
 
Old 06-11-2008, 12:07 PM   #5
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Live With Problem or Upgrade

Hopefully wiser elders will add their voices, but I have never tried fixing this problem on our RH 9 system, because it involves a lot of difficult work of upgrading the C-RTL and kernel. My thinking is, if you are going to do all that labor, why not upgrade.

Someone decided to enforce this error in RH 9's CRTL and RH EL 3. That has been debated endlessly along with the fate of RH 9 in this and other forums, and I'm not going there.

http://www.linuxquestions.org/questi...y+built+binary

For one of our commercial backup agent products, we wound up patching one of their shell scripts with a call to sed to strip out the message, after calling uname -s, which should have returned the string Linux, but instead returned "Linux" along with that foolish errno message.

PATTERN="^\[[0-9]*\]"
sed -n '/'${PATTERN}'/'p ${AGENTCFG} | cut -d" " -f1

RH 9 is no longer supported, and unless you want the academic exercise of upgrading the kernel and the C-RTL, you are better off either living with this error or upgrading to paid RH EL or CentOS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
nvidia-glx-legacy & GLX errors Codegen Ubuntu 5 03-11-2007 03:18 PM
compiling programs + gl.h and glx.h errors Daedra Slackware 2 12-01-2006 05:31 PM
Errors on Compiling Lua and other programs. Dralnu Linux - Software 1 04-19-2006 01:42 PM
Programs archives -- Legacy software moxieman99 LQ Suggestions & Feedback 1 11-12-2005 10:56 AM
running doom legacy deathsythe210 Linux - Games 0 11-05-2004 04:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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