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... |
try
RPM -qi gcc |
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. $ |
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. |
All times are GMT -5. The time now is 05:46 AM. |