GCC V3.2 on Redhat8 and Suse9


 
Thread Tools Search this Thread
Top Forums Programming GCC V3.2 on Redhat8 and Suse9
# 1  
Old 04-23-2010
GCC V3.2 on Redhat8 and Suse9

Hi,

Can someone tell me what will be the difference between the binary that is built on Redhat8 and Suse9 even when compiler version is same i.e GCC 3.2.3 is used on both?I mean if I build an application on Suse9 using GCC 3.2that was supposed to be built on Redhat8 using GCC 3.2 what all problems do I face with respect to compilation linking and loading?

Thanks in advance
# 2  
Old 04-23-2010
Do you mean you want to copy an executable image file from Suse to Redhat and then run it on Redhat (or wherever)?

You should recompile. I do not know specifcally what will go wrong if you do not recompile.
# 3  
Old 04-23-2010
No.Somebody has asked me to build a binary on Redhat8 using GCC V3.2 compiler.Since I dont have Redhat8 m/c with me,I am thinking of using same GCC V3.2 on Suse9 to build the binary.Does it cause any Linking and loading problems to the customer in using the binary delivered by me?
# 4  
Old 04-23-2010
That IS what I meant. Yes it has a high probability of causing problems - each of those distros has added features and directories, etc. If the code is pure base C with no libraries other than libc it may be okay.

It will also have a lot better chance to work if you link it statically - which results in a huge executable.

The only way you can partially test that the dynamic linking is compatible is to put the foreign binary on host and
Code:
ldd foreign_binary

If ldd reports problems you are out of the game from the get-go.

The likely error after that is 'undefined symbol' at runtime.
# 5  
Old 04-26-2010
Thanks a lot..your replay has solved the issue i was facing..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

GCC ver 3.4.6

anyone has an idea from where can i download gcc 3.4.6 for hp-ux 11iv3 itanium? (0 Replies)
Discussion started by: guy3145
0 Replies

2. UNIX for Dummies Questions & Answers

Help with gcc and g++

Hi, I have recently got a job in unix, now training is going on and we have been practicing on telnet, so to practice at home I have installed vmware(virtual machine) and planning to download ubuntu. So my doubt is that whether I can write c and cpp progs in vi editor and can I run them by default... (5 Replies)
Discussion started by: vishal.973s
5 Replies

3. SuSE

GCC 3.2 on Redhat8 and Suse9

Hi, Can someone tell me what will be the difference between the binary that is built on Redhat8 and Suse9 even when compiler version is same i.e GCC 3.2.3 is used on both?I mean if I build an application on Suse9 using GCC 3.2that was supposed to be built on Redhat8 using GCC 3.2 what all... (1 Reply)
Discussion started by: kavya
1 Replies

4. Red Hat

GCC 3.2 on Redhat8 and Suse 9

Hi, Can someone tell me what will be the difference between the binary that is built on Redhat8 and Suse9 even when compiler version is same i.e GCC 3.2.3 is used on both?I mean if I build an application on Suse9 using GCC 3.2that was supposed to be built on Redhat8 using GCC 3.2 what all... (1 Reply)
Discussion started by: kavya
1 Replies

5. Solaris

Installing gcc - recieve error message gcc : cannot execute

AIM- Install Oracle 11g on Solaris using VMWare Steps 1.Logged on as root 2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc 3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD 4.Copied files from CD to /usr/local/bin/gcc 5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies

6. Programming

Enabling Far in GCC

hello, i want to enable far in gcc, how to enable this. pls reply back thanx in advance. svh (1 Reply)
Discussion started by: svh
1 Replies

7. Linux

MySQL4 config messup on Suse9.1 How to reset?

I'm trying to run phpBB2 software on Apache2, all was fine with setups except I had no password protecting my database. After researching how to do it, I attempted to set password "freddy" to root (for obvious reasons "freddy" isn't the actual pw I used). I now can't login to MYSQL4 using... (1 Reply)
Discussion started by: Mark Ward
1 Replies

8. Programming

Gcc

Dear all, Any body please guide, i require a C which will run in Linux environment. Its urgent please. warm regards, Senthil K (1 Reply)
Discussion started by: Senthil
1 Replies

9. Linux

SUSE9.1 Peculiar Gigabit Lan performance.

I'm having some peculiar performance issues with my Gigabit Lan. I have some 100Mb devices so I can't do the necessary "jumbo Frame" tweaks for absolute optimum performance as I'd prevent them access. I'm getting appauling transfer rates sending files to the linux machine, around 10 Mbps 3%... (0 Replies)
Discussion started by: Mark Ward
0 Replies

10. Linux

Suse9.0 + Apche2

Does anyone successfully compile Apche2.0.50 on Suse9.0? After run ./configure, and type "make" command, it always stops at this point: ------- .... /home/hiep/httpd-2.0.50/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE... (0 Replies)
Discussion started by: hiepng
0 Replies
Login or Register to Ask a Question