LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 12-19-2008, 01:07 PM   #1
tbucken
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
applications built on redhat 5


Hi,

If an application is built on Redhat linux5 should that
application run on SuSe 10.1 ? Are there any special packages
needed.

Tom
 
Old 12-19-2008, 05:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
it depends an awful lot about how the app is built. if it's dynamically linked, which a standard c or c++ program is then it will look for certain other libraries to execute, which may or may not match up on the suse box. more details would probably be the best step i expect.
 
Old 12-19-2008, 07:09 PM   #3
tbucken
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
hello world example

// using these command lines - build on lamd7bld

// g++ y.cxx - build on redhat 5 - fails on sus10.1
/*
g++ y.cxx
a.out
Hello world

run a.out on suse 10.1
a.out
Floating exception
*/

// g++ -static -v y.cxx build on redhat 5 - OK on both

// Does anyone know another way to make this work ?

#include <stdio.h>


int main()
{
printf("Hello world\n");

return 1;
}


Tom
 
Old 12-19-2008, 11:19 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Are you talking Red Hat 5 (ancient, support dropped in 2000?) or RHEL(Red Hat Enterprise Linux)5 (current version)? If you are jumping from RH5 to Suse10.1 it could be that crossing from a 2.4(kernel) based system to a 2.6 based system is just too great.
 
Old 12-20-2008, 12:35 AM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are they both 32 or 64 bit OSs?
 
Old 12-20-2008, 02:15 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
2.4 kernel? rh5 was a 2.0! personally i'd not question that. it's going to be RHEL.

Last edited by acid_kewpie; 12-20-2008 at 02:19 AM.
 
Old 12-20-2008, 08:55 AM   #7
tbucken
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,


using

RHEL(Red Hat Enterprise Linux)5 (current version)?

64 bit

Tom
 
Old 12-20-2008, 09:29 AM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Ok is the Suse you are trying to run on 32bit or 64bit.
 
Old 12-20-2008, 02:36 PM   #9
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 670

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by tbucken View Post
// using these command lines - build on lamd7bld

// g++ y.cxx - build on redhat 5 - fails on sus10.1
/*
g++ y.cxx
a.out
Hello world

run a.out on suse 10.1
a.out
Floating exception
*/

// g++ -static -v y.cxx build on redhat 5 - OK on both

// Does anyone know another way to make this work ?

#include <stdio.h>


int main()
{
printf("Hello world\n");

return 1;
}


Tom
You can try statifier (http://statifier.sf.net) or Ermine (http://magicErmine.com)
Both of them pack dynamically-linked executable and all it's shared libraries into one self-contained executable. This executable has no dependencies and can run on virtually any Linux distribution.
Statifier is licensed under GPL. Ermine - commercial. On the other hand Ermine better work on systems with memory randomization
 
Old 12-22-2008, 10:03 AM   #10
tbucken
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
running on 64 bit SuSe

built on 64 bit redhat 5.0 trying to run on 10.1 64 bit SuSe
 
Old 12-22-2008, 03:57 PM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Tbucken

You have to be careful on the RHEL/RH thing. If you do not, it is just going to cause confusion. Basically get used to using the RHEL5 notation, instead of RH5. Unless you are running on different hardware (amd vs intel, etc), I have no idea why it is spitting out that error. You did install everything (gcc, etc) via the packet managers on both machines? If you compiled GCC(etc) yourself, an unusual flag may have been set. You are using (roughly) the same GCC version on both machinse (4.X)?
 
  


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
Redhat linux 9.0 can't detect built-in network adapter on hp d220 mt mrpc_cambodia Linux - Networking 12 10-24-2009 05:36 AM
Redhat Linux Enterprise 3 AS - Incorrectly built binary which accesses errno or h_err patvejano Linux - Enterprise 0 11-16-2005 12:32 AM
RedHat 9's built-in iptables file thelR Linux - Security 2 08-26-2004 04:51 AM
pls help - movie player built in Redhat 9 sanjaya Linux - Software 2 02-13-2004 03:07 AM
Redhat In built firewall quozt Linux - General 1 07-30-2003 01:32 PM


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