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 07-29-2008, 01:44 PM   #1
rheng
LQ Newbie
 
Registered: Jul 2008
Posts: 8

Rep: Reputation: 0
CentOS - gcc path question


Hi,

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 libstdc++.so.6 -> libstdc++.so.6.0.3

I need the libstdc++.so.6 -> libstdc++.so.6.0.7.

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?

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

Rep: Reputation: 40
try
RPM -qi gcc
 
Old 07-29-2008, 02:00 PM   #3
rheng
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 libstdc++.so.6.0.7 and manually linked it. Before doing that, it was linked to libstdc++.so.6.0.3.

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




$ 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 <johnny@centos.org>
URL : http://gcc.gnu.org
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
rheng
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.
 
  


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
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


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