From owner-freebsd-bugs Mon Feb 25 13:30:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9797137B41A for ; Mon, 25 Feb 2002 13:30:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1PLU1m53555; Mon, 25 Feb 2002 13:30:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7493F37B402 for ; Mon, 25 Feb 2002 13:27:31 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1PLRVU53282; Mon, 25 Feb 2002 13:27:31 -0800 (PST) (envelope-from nobody) Message-Id: <200202252127.g1PLRVU53282@freefall.freebsd.org> Date: Mon, 25 Feb 2002 13:27:31 -0800 (PST) From: Thomas Pornin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/35321: standard include files do not comply to standards Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35321 >Category: bin >Synopsis: standard include files do not comply to standards >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Feb 25 13:30:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Thomas Pornin >Release: 4.5-PRERELEASE >Organization: NONE >Environment: FreeBSD nostromo.bolet.org 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Sat Dec 22 09:18:15 CET 2001 root@nostromo.bolet.org:/usr/src/sys/compile/NOSTROMO i386 >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 . >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message