Subject: more fallout from WARNS=4?
To: None <>
From: Kurt Schreiner <>
List: current-users
Date: 11/29/2005 17:51:18

cross compiling for vax on i386 comes to a halt with:

    compile  libc/memchr.ln
/u/NetBSD/src/lib/libc/string/memchr.c(66): warning: cast discards 'const' from pointer target type [275]
    compile  libc/memchr.o
cc1: warnings being treated as errors
/u/NetBSD/src/lib/libc/string/memchr.c: In function `memchr':
/u/NetBSD/src/lib/libc/string/memchr.c:66: warning: cast discards qualifiers from pointer target type

*** Failed target:  memchr.o
*** Failed command: /u/NetBSD/arch/vax/TOOLS/bin/vax--netbsdelf-gcc -O2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Werror -D_LIBC -DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/u/NetBSD/src/lib/libc/include -I/u/NetBSD/src/lib/libc -DHESIOD -DINET6 -DNLS -DYP -I. -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS -I/u/NetBSD/src/sys -I/u/NetBSD/src/lib/libc/stdlib -I/u/NetBSD/src/libexec/ld.elf_so -I/u/NetBSD/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE -I/u/NetBSD/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP -DFLOATING_POINT -DALL_STATE -DUSG_COMPAT -nostdinc -isystem /u/NetBSD/arch/vax/dest/usr/include -c /u/NetBSD/src/lib/libc/string/memchr.c -o memchr.o.tmp
*** Error code 1

nbmake: stopped in /u/NetBSD/src/lib/libc

Shot in the dark: This another WARNS=4 glitch???