From thomas.pornin@cryptolog.com Mon Feb 25 00:46:07 2002 Return-Path: Received: from kraid.nerim.net (kraid.nerim.net [62.4.16.95]) by hub.freebsd.org (Postfix) with ESMTP id 20C2037B405 for ; Mon, 25 Feb 2002 00:46:02 -0800 (PST) Received: from jupiter.cry.pto (aboukir-101-1-4-cryptolog.adsl.nerim.net [80.65.224.225]) by kraid.nerim.net (Postfix) with ESMTP id 2879D41126 for ; Mon, 25 Feb 2002 09:45:16 +0100 (CET) Received: from titan.cry.pto (titan.cry.pto [10.0.1.3]) by jupiter.cry.pto (Postfix) with SMTP id 3F1F93EF3; Mon, 25 Feb 2002 09:46:00 +0100 (CET) Received: by titan.cry.pto (sSMTP sendmail emulation); Mon, 25 Feb 2002 09:46:00 +0100 Message-Id: <20020225084600.3F1F93EF3@jupiter.cry.pto> Date: Mon, 25 Feb 2002 09:46:00 +0100 From: Thomas Pornin Reply-To: Thomas Pornin To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 35307 >Category: standards >Synopsis: standard include files are not standard compliant >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-standards >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 25 00:50:01 PST 2002 >Closed-Date: Sun Jul 31 12:17:26 GMT 2005 >Last-Modified: Sun Jul 31 12:17:26 GMT 2005 >Originator: >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD titan 4.5-STABLE FreeBSD 4.5-STABLE #0: Thu Feb 7 13:03:52 CET 2002 root@titan:/usr/src/sys/compile/BLAH i386 >Description: The problem has been on several FreeBSD versions from 4.3-RELEASE to 4.5-STABLE, either Alpha ou i386. Older versions might be affected as well. No FreeBSD version without the problem have been found as yet (but I did not search real hard). Description: /usr/include/machine/ansi.h contains the following line: typedef __signed char __int8_t; The `__signed' is recognized by gcc as an alternate name for `signed' but is not standard. /usr/include/sys/cdefs.h contains some macros that map `__signed' to `signed' or nothing depending on the value of __STDC__. But some include files include and not , or include both in the wrong order ( after ). Affected files are: At least for , , and , this is contrary to ISO 9899:1999, aka the C standard, which specifies (in 7.1.2/4) that "standard headers may be included in any order". How-To-Repeat: Preprocess the following one-line code with `gcc -E' or another standard preprocessor: #include you will find in the output the faulty declaration with `__signed'. Fix: Fix the above-stated include files to include before . >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: Responsible-Changed-From-To: gnats-admin->freebsd-bugs Responsible-Changed-By: keramida Responsible-Changed-When: Mon Mar 4 23:59:20 PST 2002 Responsible-Changed-Why: Misfiled PR. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35307 From: Guy Coleman To: freebsd-gnats-submit@FreeBSD.org, pornin@bolet.org Cc: Subject: Re: bin/35307: standard include files are not standard compliant Date: Fri, 21 Jun 2002 10:06:32 +0100 Identical problem to http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/35321. One of these two can be closed. Responsible-Changed-From-To: freebsd-bugs->freebsd-standards Responsible-Changed-By: kris Responsible-Changed-When: Sat Jul 12 18:06:31 PDT 2003 Responsible-Changed-Why: Assign to the standards team http://www.freebsd.org/cgi/query-pr.cgi?pr=35307 State-Changed-From-To: open->patched State-Changed-By: stefanf State-Changed-When: Mon Aug 2 15:37:34 GMT 2004 State-Changed-Why: This problem does not exist in -CURRENT. http://www.freebsd.org/cgi/query-pr.cgi?pr=35307 From: Matteo Riondato To: freebsd-gnats-submit@freebsd.org Cc: stefanf@freebsd.org Subject: Re: standards/35307: standard include files are not standard compliant Date: Mon, 11 Apr 2005 19:41:31 +0200 This was fixed in HEAD and in RELENG_5, but not in RELENG_4. If this fix cannot be merged to RELENG_4, this PR can be closed. Thank you. Best Regards --=20 Rionda aka Matteo Riondato Disinformato per default G.U.F.I. Staff Member (http://www.gufi.org) FreeSBIE Developer (http://www.freesbie.org) From: Stefan Farfeleder To: bug-followup@FreeBSD.org Cc: Subject: Re: standards/35307: standard include files are not standard compliant Date: Tue, 12 Apr 2005 17:45:54 +0200 On Mon, Apr 11, 2005 at 07:41:31PM +0200, Matteo Riondato wrote: > This was fixed in HEAD and in RELENG_5, but not in RELENG_4. > If this fix cannot be merged to RELENG_4, this PR can be closed. Yes, this won't be fixed in RELENG_4. I recommend you to upgrade to RELENG_5 as GCC 2.95 is virtually useless for modern C++ code. State-Changed-From-To: patched->closed State-Changed-By: matteo State-Changed-When: Sun Jul 31 12:16:55 GMT 2005 State-Changed-Why: Fixed, but won't be MFC'ed to RELENG_4 http://www.freebsd.org/cgi/query-pr.cgi?pr=35307 >Unformatted: