LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-27-2014, 07:26 AM   #16
fion
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled

Copying dd from RHEL4 and running on RHEL5 ran successfully when just copying the binary, as well as when packaged with RHEL4's libc and ld-linux. Due to some crazy company policy restrictions, I packaged these by hand rather than using stratifier or Ermine.

Happily, though, I have realized that we have another alternative that karhel didn't: we are building the applications that need to run on multiple distributions/versions. Because of this, we're going to investigate the possibility of building on a newer version and verifying compatibility on older ones.

Thanks for the thoughts! I'm very impressed by getting a response on this thread! I will definitely post the results of our further attempts.
 
Old 06-27-2014, 07:59 AM   #17
karhel
LQ Newbie
 
Registered: May 2009
Posts: 7

Original Poster
Rep: Reputation: 1
Hello

The only solution we found to solve our issue was to create a VM in RHEL4 to use our old software.

B/R
KarHel
 
1 members found this post helpful.
Old 06-27-2014, 08:07 AM   #18
fion
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
Good to know. Thanks for the update (and nice memory)! Things are good for us building on RHEL5, packaging necessary shared objects (including ld-linux), and then running on RHEL4 (and others). Still curious why going the other way doesn't seem to work, but we'll be content with this approach.

Thanks again!

Last edited by fion; 06-27-2014 at 12:45 PM. Reason: More firm claim on how we're moving forward
 
Old 06-28-2014, 02:18 AM   #19
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by fion View Post
Good to know. Thanks for the update (and nice memory)! Things are good for us building on RHEL5, packaging necessary shared objects (including ld-linux), and then running on RHEL4 (and others). Still curious why going the other way doesn't seem to work, but we'll be content with this approach.

Thanks again!
Hello. I found this thread on stackoverflow:
http://stackoverflow.com/questions/1...t-main-return0

Looks like the problem boils down to the following: ld.so on RHEL5 uses ONLY GNU_HASH.
This section is not present in executables built for RHEL4, so ld.so can't find information
it supposed to find.

Could you check if it's indeed you case?
 
Old 06-30-2014, 07:21 AM   #20
fion
LQ Newbie
 
Registered: Jun 2014
Posts: 4

Rep: Reputation: Disabled
Actually, I had found that stackoverflow topic as well. Unfortunately, I didn't really understand what they were talking about well enough for me to implement any change. What is "readelf" really being run on? What did it mean to "look for a GNU_HASH"? When I ran readelf on my executable, I couldn't find GNU_HASH in the results anywhere. Which, I suppose, wasn't surprising.

Then, the build options that were recommended ... are those compiler or linker options? I believe they're compiler options. However, I didn't have the motivation to try them, since our build environment is pretty crazy. Switching platforms was simpler than adding compiler options. :/

Still, because I'm impressed by the help I've received, I tried compiling one of our applications with -Wl,--hash-style=both on RHEL4. This resulted in an error:
/usr/bin/ld: unrecognized option '--hash-style=both'
Same error with sysv:
/usr/bin/ld: unrecognized option '--hash-style=sysv'

So, again, I'm not quite sure what's going on. But I am content with building on RHEL5, as that build runs everywhere that we need it to.
 
  


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
cloning red hat EL4 or El5 servers jpuretz@tk20.com Linux - Server 4 03-11-2009 01:36 PM
floating point error, processes killed by SIGFPE tdos20 Slackware 5 01-06-2009 01:25 PM
floating-point in script mitsos Programming 6 08-31-2006 07:14 AM
floating point multiplication irfanhab Programming 0 12-23-2004 10:13 PM
managing floating point vince_2x Linux - General 2 09-21-2004 09:05 PM

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

All times are GMT -5. The time now is 01:55 AM.

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