From nobody@FreeBSD.org Thu Nov 8 18:20:37 2001 Return-Path: Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E480037B417 for ; Thu, 8 Nov 2001 18:20:32 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA92KWh22127; Thu, 8 Nov 2001 18:20:32 -0800 (PST) (envelope-from nobody) Message-Id: <200111090220.fA92KWh22127@freefall.freebsd.org> Date: Thu, 8 Nov 2001 18:20:32 -0800 (PST) From: "Antonio D'souza" To: freebsd-gnats-submit@FreeBSD.org Subject: system header file attempts to redefine a type that is built in to gcc 3.0.2 X-Send-Pr-Version: www-1.0 >Number: 31864 >Category: misc >Synopsis: system header file attempts to redefine a type that is built in to gcc 3.0.2 >Confidential: no >Severity: serious >Priority: medium >Responsible: gerald >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Nov 08 18:30:01 PST 2001 >Closed-Date: Fri Jan 31 15:32:41 PST 2003 >Last-Modified: Fri Jan 31 15:32:41 PST 2003 >Originator: Antonio D'souza >Release: 4.4-stable >Organization: University of Waterloo >Environment: FreeBSD alice.quiknet 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #3: Wed Aug 8 14:06:44 EDT 2001 quik@quikbox.ca:/usr/obj/usr/src/sys/QUIK i386 >Description: While trying to compile a C++ file, I recieved the following error, indicating that perhaps some system header files need to be modified so they will tolerate the new gcc: /usr/include/runetype.h:56: redeclaration of C++ built-in type `wchar_t' >How-To-Repeat: I tried to build the QT23 port & this fails very quickly. >Fix: Well, a woekaround would be to use gcc 2.9.5 but ideally, we would find a way od not declaring this type if it is already defined. Perhaps an IFDEF... >Release-Note: >Audit-Trail: From: "Antonio M . D'souza" To: freebsd-gnats-submit@FreeBSD.org, quik@quikbox.ca Cc: Subject: Re: misc/31864: system header file attempts to redefine a type that is built in to gcc 3.0.2 Date: Thu, 8 Nov 2001 21:37:11 -0500 I found the same problem in these 2 additional files: /usr/include/stdlib.h /usr/include/stddef.h After commenting out the line with the typedef, everything seems to be compiling OK. -- "Think Random" www.quikbox.ca State-Changed-From-To: open->feedback State-Changed-By: gerald State-Changed-When: Thu Jan 30 17:33:28 PST 2003 State-Changed-Why: As far as I know (I originally experienced the same bug) this has been fixed by now. Can you confirm this? Responsible-Changed-From-To: freebsd-bugs->gerald Responsible-Changed-By: gerald Responsible-Changed-When: Thu Jan 30 17:33:28 PST 2003 Responsible-Changed-Why: I'll try to handle this. http://www.freebsd.org/cgi/query-pr.cgi?pr=31864 From: "Antonio Michaelangelo D'souza" To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: misc/31864: system header file attempts to redefine a type that is built in to gcc 3.0.2 Date: Thu, 30 Jan 2003 21:33:04 -0500 (EST) Unfortunately, I no longer run FreeBSD so I am unable to verify this for you. However, I am fairly certain that this bug would have been fixed by now. I know I am able to build QT2.3 on Linux at any rate, using gcc-3.2.1 State-Changed-From-To: feedback->closed State-Changed-By: gerald State-Changed-When: Fri Jan 31 15:28:18 PST 2003 State-Changed-Why: Resolved by fixes to our header files, such as stdlib 1.37 and stddef 1.7, which were backported to -STABLE. http://www.freebsd.org/cgi/query-pr.cgi?pr=31864 >Unformatted: