From owner-freebsd-current@FreeBSD.ORG Thu Aug 7 04:54:42 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB62337B401 for ; Thu, 7 Aug 2003 04:54:41 -0700 (PDT) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1A2B43F3F for ; Thu, 7 Aug 2003 04:54:40 -0700 (PDT) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id h77BsQYw223878 for ; Thu, 7 Aug 2003 13:54:34 +0200 Date: Thu, 7 Aug 2003 13:54:19 +0200 (CEST) From: Lukas Ertl To: freebsd-current@freebsd.org In-Reply-To: <20030807113623.E595@korben.in.tern> Message-ID: <20030807134724.E595@korben.in.tern> References: <20030807113623.E595@korben.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4245; Body=0 Fuz1=0 Fuz2=0 Subject: Re: buildworld breaks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Aug 2003 11:54:42 -0000 On Thu, 7 Aug 2003, Lukas Ertl wrote: > buildworld is current broken: > > ===> sys/boot/i386/libi386 > cc -O -pipe -mcpu=pentiumpro -ffreestanding -DCOMPORT=0x3f8 -DCOMSPEED=9600 -DTERM_EMU -I/usr/src/sys/boot/i386/libi386/../../common -I/usr/src/sys/boot/i386/libi386/../btx/lib -I/usr/src/sys/boot/i386/libi386/../../../contrib/dev/acpica -I/usr/src/sys/boot/i386/libi386/../../.. -I. -I/usr/src/sys/boot/i386/libi386/../../../../lib/libstand/ -ffreestanding -mpreferred-stack-boundary=2 -c /usr/src/sys/boot/i386/libi386/biosacpi.c > In file included from /usr/src/sys/contrib/dev/acpica/acfreebsd.h:165, > from /usr/src/sys/boot/i386/libi386/biosacpi.c:33: > /usr/obj/usr/src/i386/usr/include/ctype.h:88: error: syntax error before "int" > *** Error code 1 > > Stop in /usr/src/sys/boot/i386/libi386. > *** Error code 1 I think I found the error: Rev. 1.18 of sys/contrib/dev/acpica/acfreebsd.h introduced an '#include ', which has a declaration of isascii(). The problem is that biosacpi.c includes stand.h, which defines isascii() already, and you end up with this (from the preprocessor output): int _tolower(int); int _toupper(int); int (((int) & ~0x7F) == 0); int toascii(int); So either remove the inclusion if ctype.h in acfreebsd.h or remove the inclusion of stand.h in biosacpi.c. regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/