[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Compatible 2.96 cpp
- From: "Ken Schroeder" <kschroed cisco com>
- To: "Jakub Jelinek" <jakub redhat com>, "Discussion of Red Hat Enterprise Linux 3 \(Taroon\)" <taroon-list redhat com>
- Cc:
- Subject: RE: Compatible 2.96 cpp
- Date: Wed, 1 Dec 2004 12:11:15 -0500
Here is the hack we have put in place:
mv /usr/bin/gcc /usr/bin/gcc323
Then added the wrapper script below to /usr/bin/gcc which then any
user who requires gcc296 by default we set GCC296=y in they're profile.
Simlar setup for g++.
samus:/users/kschroed # ls -l /usr/bin/gcc*
-rwxr-xr-x 1 root root 299 Sep 23 09:43 /usr/bin/gcc
-rwxr-xr-x 2 root root 81864 Mar 24 2004 /usr/bin/gcc296
-rwxr-xr-x 2 root root 88836 Apr 15 2004 /usr/bin/gcc323
-rwxr-xr-x 1 root root 84808 Mar 4 2004 /usr/bin/gcc-ssa
samus:/users/kschroed # cat /usr/bin/gcc
#!/bin/sh
if id | grep -q gcc296; then
#Use the compat gcc
exec /usr/bin/gcc296 $@
elif [ -n "$GCC296" ]; then
# Use the compat gcc
exec /usr/bin/gcc296 $@
else
# Use the standard gcc
exec /usr/bin/gcc323 $@
fi
-----Original Message-----
From: taroon-list-bounces redhat com
[mailto:taroon-list-bounces redhat com]On Behalf Of Jakub Jelinek
Sent: Wednesday, December 01, 2004 4:58 AM
To: Discussion of Red Hat Enterprise Linux 3 (Taroon)
Subject: Re: Compatible 2.96 cpp
On Wed, Dec 01, 2004 at 11:52:51AM +0200, Avrahami David wrote:
> Hi,
>
> One of our applications(Tivoli) should be compiled with gcc 2.96.
> Due to that I made the following changes:
> # mv /usr/bin/gcc /usr/bin/gcc323
> # mv /usr/bin/g++ /usr/bin/g++323
> # ln -s /usr/bin/gcc296 /usr/bin/gcc
> # ln -s /usr/bin/g++296 /usr/bin/g++
>
> The command I run and output error are as following:
>
> # tidlc -p /usr/bin/cpp -I/usr/Tivoli/include/linux-ix86 -I. test.ist
> Tivoli IDL Compiler, Version 2.0, Date 09/19/97
> tidlc: -lang-c++: linker input file unused because linking not done
> <built-in>:(around line 1):ERROR: in cfe::illegal suffix in file:
> <built-in>
> <command line>:(around line 1):ERROR: in cfe::illegal suffix in file:
> <command line>
>
>
> It seems that Tivoli asks for cpp 2.96 also, but I couldn't find such
> file as I did with gcc and g++ .
You can use
#!/bin/sh
exec /usr/bin/gcc296 -E -xc "$@"
as your temporary /usr/bin/cpp for most purposes.
Jakub
--
Taroon-list mailing list
Taroon-list redhat com
http://www.redhat.com/mailman/listinfo/taroon-list
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]