From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 21 11:30:22 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9692716A4BF for ; Thu, 21 Aug 2003 11:30:22 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC18643F75 for ; Thu, 21 Aug 2003 11:30:21 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7LIULUp070929 for ; Thu, 21 Aug 2003 11:30:21 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7LIULcp070928; Thu, 21 Aug 2003 11:30:21 -0700 (PDT) Resent-Date: Thu, 21 Aug 2003 11:30:21 -0700 (PDT) Resent-Message-Id: <200308211830.h7LIULcp070928@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Darren Reed Received: by hub.freebsd.org (Postfix, from userid 680) id E059F16A4C0; Thu, 21 Aug 2003 11:29:11 -0700 (PDT) Message-Id: <20030821182911.E059F16A4C0@hub.freebsd.org> Date: Thu, 21 Aug 2003 11:29:11 -0700 (PDT) From: Darren Reed To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/55846: and conflict for major() X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Darren Reed List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Aug 2003 18:30:22 -0000 >Number: 55846 >Category: bin >Synopsis: and conflict for major() >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 21 11:30:21 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Darren Reed >Release: FreeBSD 4.8-RC i386 >Organization: FreeBSD >Environment: System: FreeBSD hub.freebsd.org 4.8-RC FreeBSD 4.8-RC #1: Sat Aug 16 06:09:47 PDT 2003 root@:/g/src/sys/compile/HUB i386 >Description: Including and for non-kernel compiles causes the following problem: /usr/include/sys/systm.h:346: syntax error before `int' /usr/include/sys/systm.h:347: syntax error before `int' /usr/include/sys/systm.h:348: syntax error before `(' These lines of code look like this after going through cpp: int ((int)(((u_int)( dev_t x ) >> 8)&0xff)) ; int ((int)(( dev_t x )&0xffff00ff)) ; dev_t ((dev_t)((( int x ) << 8) | ( int y ))) ; Problem is there is no #ifdef _KERNEL around the declarations for these functions in >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: