On Fri, 25 Nov 2005 14:30:20 +0100
Roger Oberholtzer
I have need of both the gcc that comes with SUSE 10 (4.0.2) and a 3.4.x version of gcc as well. Is it possible to have both installed at the same time? I would guess that things like include files would have to be sorted. But does anyone know of a general guide for doing this sort of thing? The SUSE 10 one would be the default that should be invoked as usual. The gcc 3.4 could require, say, environment variables to be set.
The reason for this is I want to compile kernel modules for some other system, and it seems that it is not happy if they are compiled with SUSE's 4.x gcc. The kernel itself was compiled with 3.4.4. I can chroot to an environment that will run gcc 3.4.4, but I would prefer to just run the 3.4 compiler from a Makefile in SUSE 10.0. Make sense?
Yes. I had to do that a while back on a SLES9 system because I had to
build GNU Pascal and that required a specific version of GCC to be
installed. Because the system was going to be used at an Intel
Development Forum, the base system had to be vanilla SLES9.
Note that the older libraries are currently installed. The C++ header
files are in /usr/include/c++/<version>
Where the version on SuSE 10 is 4.0.2.
When you install gcc 3.4.4 the headers will /usr/include/c++/3.4.4/
You will need to take a bit of care when compiling and set the CXX, CC,
CFLAGS and CXXFLAGS environment variables.
--
Jerry Feldman