Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-29-2008, 01:44 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
CentOS - gcc path question


Was wondering if someone out there could help me out.

Currently the CentOS packages and the kernel/kernel drivers are compiled on the CentOS default compiler which is gcc 3.4.5. The application code we use is compiled on gcc 4.0.3. Unfortunately, upgrading the kernel compiler to gcc 4.0.3 is not an option.

When I installed the kernel and applications in /usr/lib, I see ->

I need the ->

3.4.5 doesn't have the 1.3.1 ABI symbols.

I manually copied over the library 6.0.7 and manually linked them. Not sure if that is the way to go. I think there is a way to put the 4.0.3 path ahead of the 3.4.5 path so that the libstdc will point to the new library. But not sure how to do that.

Any ideas how I can resolve this issue?

Old 07-29-2008, 01:53 PM   #2
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 548

Rep: Reputation: 40
RPM -qi gcc
Old 07-29-2008, 02:00 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 8

Original Poster
Rep: Reputation: 0
I knew that it was running gcc 3.4.5. I'm trying to link it with gcc 4.0.3

For example:

I copied over and manually linked it. Before doing that, it was linked to

[root@DXi3500-Arcade lib]# ls -al libstdc*
lrwxrwxrwx 1 root root 18 Jul 28 14:25 ->
-rwxr-xr-x 1 root root 796392 Dec 31 2005
-rwxr-xr-x 1 root root 878588 Jul 28 12:55

$ rpm -qi gcc
Name : gcc Relocations: (not relocatable)
Version : 3.4.5 Vendor: CentOS
Release : 2 Build Date: Sat 31 Dec 2005 07:26:35 PM PST
Install Date: Thu 20 Apr 2006 05:59:49 AM PDT Build Host: build-i386
Group : Development/Languages Source RPM: gcc-3.4.5-2.src.rpm
Size : 12921365 License: GPL
Signature : DSA/SHA1, Sun 01 Jan 2006 08:19:15 PM PST, Key ID a53d0bab443e1821
Packager : Johnny Hughes <>
Summary : Various compilers (C, C++, Objective-C, Java, ...)
Description :
The gcc package contains the GNU Compiler Collection version 3.4.
You'll need this package in order to compile C code.
Old 07-29-2008, 02:13 PM   #4
LQ Newbie
Registered: Jul 2008
Posts: 8

Original Poster
Rep: Reputation: 0
I have both 3.4.5 and 4.0.3 compilers loaded. But by default after the compilation is done, the kernel defaults to 3.4.5 because that is the first one in the environment PATH.

The application will be compiled on version 4.0.3 we switch to it.


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
Cannot correctly set up the PATH environment variable Centos dralexpe Linux - Software 7 05-31-2008 12:23 AM
CentOS 4.4 saving PATH, CLASSPATH variables Thor Red Hat 2 11-25-2006 09:55 AM
gcc is not found in path hiimsa Linux - Desktop 4 11-17-2006 05:24 AM
please help - cannot find gcc in path mchao Linux - General 9 02-14-2002 10:49 AM
GCC include path. jwilson Linux - General 1 04-02-2001 04:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration