Linmodems Mailing list Archives

Google
 
Web archives.linmodems.org

Return-Path: <wewright@verizonmail.com>
Mailing-List: contact discuss-help@linmodems.org; run by ezmlm
Delivered-To: mailing list discuss@linmodems.org
Received: (qmail 19758 invoked from network); 9 Oct 2002 21:04:36 -0000
Received: from desk.crynwr.com (65.172.240.34)
  by www.linmodems.org with SMTP; 9 Oct 2002 21:04:36 -0000
Received: (qmail 7705 invoked by uid 501); 9 Oct 2002 21:04:35 -0000
Received: (qmail 19454 invoked from network); 9 Oct 2002 20:58:02 -0000
Received: from n1111ber.planetcomm.net (HELO paul.hn.org) (64.4.122.111)
  by www.linmodems.org with SMTP; 9 Oct 2002 20:58:02 -0000
Received: (qmail 6182 invoked from network); 9 Oct 2002 20:57:36 -0000
Received: from unknown (HELO peter) (10.20.30.4)
  by 10.20.30.1 with SMTP; 9 Oct 2002 20:57:36 -0000
Content-Type: text/plain;
  charset="us-ascii"
From: Wes Wright <wewright@verizonmail.com>
Reply-To: wewright@verizonmail.com
To: discuss@linmodems.org
Subject: RedHat 8.0, gcc3.2 fails to compile. Any suggestions?
Date: Wed, 9 Oct 2002 16:57:32 -0400
User-Agent: KMail/1.4.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Message-Id: <200210091657.32898.wewright@verizonmail.com>

I think the problem that you're seeing has to do with the way gcc 3 display's 
version information.

In gcc 2.x gcc --version produced:
2.??

In gcc 3.2 it produces:
gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


If you replace the define in your make file from:
-DGCC_VERSION=\""`gcc --version`\""

to

-DGCC_VERSION=\""`gcc --version | head -n 1 | awk '{print $3}'`\""

then it should get rid of that particular error.

If you have any object files compiled with gcc 2.x then it will probably still 
fail.

-- Wes

Webmaster: Russell Nelson
Last modified: Wed Jul 30 11:02:43 EDT 2003