Subject: 'restrict' problem compiling current on sparc64
To: None <tech-toolchain@netbsd.org>
From: abs <abs@mono.org>
List: tech-toolchain
Date: 10/28/2001 01:13:14
Attempting to compile -current on sparc64 with the following env:
export MACHINE=sparc64
export DESTDIR=/var/obj/destdir
export MAKEOBJDIRPREFIX=/var/obj/src
export TOOLDIR=/var/obj/tooldir
Chokes with "invalid use of `restrict'" in glob.h
/var/obj/tooldir/bin/sparc64--netbsd-gcc -O -mcpu=v9 -DALL_STATE
-DUSG_COMPAT -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Werror -D_LIBC -DNLS -DYP -DHESIOD
-DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT
-I/home/netbsd/current/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE
-I/home/netbsd/current/lib/libc/../../libexec/ld.elf_so
-I/home/netbsd/current/lib/libc/dlfcn -DWITH_RUNE -DRUNEMOD_MAJOR=3
-D_PATH_LOCALEMODULE=\"/usr/lib/runemodule\" -DRESOLVSORT -I.
-DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc -idirafter
/var/obj/destdir/usr/include -c
/home/netbsd/current/lib/libc/gen/__glob13.c
In file included from /home/netbsd/current/lib/libc/gen/__glob13.c:78:
/var/obj/destdir/usr/include/glob.h:107: invalid use of `restrict'
The relevant line reads:
int glob __P((const char * __restrict, int,
int (* __restrict)(const char *, int), glob_t * __restrict));
Am I doing anything obviously wrong here??
Thanks