Re: buildworld breaks

From: Lukas Ertl <l.ertl_at_univie.ac.at>
Date: Thu, 7 Aug 2003 13:54:19 +0200 (CEST)
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
<ctype.h>', 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_at_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/
Received on Thu Aug 07 2003 - 02:54:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC