Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 2003 13:54:19 +0200 (CEST)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        freebsd-current@freebsd.org
Subject:   Re: buildworld breaks
Message-ID:  <20030807134724.E595@korben.in.tern>
In-Reply-To: <20030807113623.E595@korben.in.tern>
References:  <20030807113623.E595@korben.in.tern>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030807134724.E595>