LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2009, 05:36 AM   #1
tobsinte
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
Port from RHEL 4 to RHEL 5


Hi,

I'm having some application written in C and ported from HP-UX 11i to RHEL 4. Now, some of the newer servers are having RHEL 5 and there seems some serious issues with some of the components when these RHEL 4 binaries are run in RHEL 5. And the cry for the products to officially port and certify to RHEL 5.

Could anyone has some suggestions or experience in porting C components from RHEL 4 to RHEL 5? Please share some info on what are the areas that I need to concentrate on for the porting? Are there real differences between RHEL 4 to RHEL 5? (Note: All the C components are infrastructure products for data and file routing, data translation, data transformation etc and make extensive use of a lot of system calls)

Thanks a lot,
tobsinte
 
Old 06-29-2009, 07:33 AM   #2
chutsu
Member
 
Registered: Nov 2003
Location: UK
Distribution: Debian Lenny
Posts: 255

Rep: Reputation: 31
What does your app do?
Does it use standard C libraries?
 
Old 06-30-2009, 04:47 AM   #3
tobsinte
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
There are 9 applications. All are infrastructure products doing data and file routing, data translation and transformation, process monitoring and management tools, common installation tool (which was using libcur_colr in HP-UX before porting it into RHEL 4).

Yes, most of them use standard C libraries. Rogue wave libraries will need to be built in RHEL I guess, since there is none readily available.
 
Old 06-30-2009, 05:04 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
It's a bit difficult to say without knowing what libraries you require. It may be as simple as recompiling under v5, but it may not be.

have you tried recompiling?
 
Old 06-30-2009, 11:07 PM   #5
tobsinte
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks billymayday. I understand what you are saying - its a very difficult situation to gauge. I am waiting for the RHEL 5 server to be available (we dont have any RHEL 5 development/test server right now) to move the compile env there and start compiling and see. But while waiting for that (I guess you know how procurement works in big companies ), I need to come up with the effort estimation ball park for the porting... a tough task to do because of a lot of uncertainty - I would have loved to do this piece on T&M but I dont think anyone will buy that.

Just as you mentioned it could very well be a walk in the park or it could be a hell lot of work. I already did the mistake once, while porting these from HP-UX 11i to RHEL 4, underestimated the effort because, I thought it should be very easy - but end up having to rewrite the complete code for 2 of the applications - one because of deprecated libraries and one because it was written in complete SHELL scripts!!!
 
Old 06-30-2009, 11:18 PM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by tobsinte View Post
thanks billymayday. I understand what you are saying - its a very difficult situation to gauge. I am waiting for the RHEL 5 server to be available (we dont have any RHEL 5 development/test server right now) to move the compile env there and start compiling and see. But while waiting for that (I guess you know how procurement works in big companies ), I need to come up with the effort estimation ball park for the porting... a tough task to do because of a lot of uncertainty - I would have loved to do this piece on T&M but I dont think anyone will buy that.

Just as you mentioned it could very well be a walk in the park or it could be a hell lot of work. I already did the mistake once, while porting these from HP-UX 11i to RHEL 4, underestimated the effort because, I thought it should be very easy - but end up having to rewrite the complete code for 2 of the applications - one because of deprecated libraries and one because it was written in complete SHELL scripts!!!
Yes, I know what is it like - work for the big company.
Some (loooong) time ago in the similar situation I waited for the development server too.

But today... Why you need somebody to provide you with RHEL5 server ?
Install it yourself on your descktop/anywhere with qemu/VMWare/VirtualBox/whatever and begin porting.

Or use tools like statifier (http://statifier.sf.net) or Ermine
(http://magicErmine.com) to pack dynamically linked executable with all it's dependencies into one self-contained file on RHEL4, move it to RHEL5 and test

Last edited by Valery Reznic; 07-01-2009 at 12:03 AM.
 
Old 07-01-2009, 01:45 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you don't want to or can't pay for RHEL 5.x, get the equiv Centos 5.x; its the same code but free.
Then you can start by trying to compile at home or wherever and get an idea of the effort.
 
Old 07-01-2009, 11:17 PM   #8
tobsinte
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Valery and chrism01 for your suggestions. I will do that though to get these installed on my office machine, i need admin rights - which no one has. Desktop team dont install anything which is not stadard!!! And i cant take the source out of the office to my home notebook either. but i'll find a way to try this...
 
Old 07-02-2009, 05:15 AM   #9
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by tobsinte View Post
Thanks Valery and chrism01 for your suggestions. I will do that though to get these installed on my office machine, i need admin rights - which no one has. Desktop team dont install anything which is not stadard!!! And i cant take the source out of the office to my home notebook either. but i'll find a way to try this...
VMWare required admin rights, but qemu
you should be able to install and run as regular user
 
Old 07-03-2009, 06:18 AM   #10
tobsinte
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks Valery.
 
  


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
Install dmidecode and procinfo in RHEL 4 - RHEL 3 rafanto Red Hat 11 06-23-2009 07:23 AM
Installed Fedora 9 over RHEL it overwrote RHEL. How to install both?? obe786 Linux - Newbie 2 01-29-2009 08:52 AM
Possible to have virtual machine in RHEL 5.1 run RHEL 4.0-1 ES (64-bit) maryjane Linux - Newbie 1 10-20-2008 01:04 PM
Ghostscript errors after upgrading from RHEL AS 4 to RHEL 5.1. mightyscotchpine Linux - Server 0 04-03-2008 08:38 PM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 07:30 AM


All times are GMT -5. The time now is 04:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration