Subject: GENERIC fails to build due to warnings in compat linux code
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: current-users
Date: 06/13/2007 08:16:27
Hi,

building GENERIC currently fails with

#   compile  GENERIC/linux_exec.o
cc -ffreestanding -fno-zero-initialized-in-bss -march=i486 -mtune=pentiumpro -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -fno-strict-aliasing -Di386 -I. -I/usr/src/sys/contrib/dev/ath/netbsd -I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -I/usr/src/sys/lib/libkern/../../../common/lib/libc/string -I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string -I/usr/src/sys/dist/ipf -c /usr/src/sys/compat/linux/common/linux_exec.c
/usr/src/sys/compat/linux/common/linux_exec.c: In function 'linux_nptl_proc_exit':
/usr/src/sys/compat/linux/common/linux_exec.c:371: error: storage size of 'cup' isn't known
cc1: warnings being treated as errors
/usr/src/sys/compat/linux/common/linux_exec.c:386: warning: implicit declaration of function 'linux_sys_futex'
/usr/src/sys/compat/linux/common/linux_exec.c:371: warning: unused variable 'cup'
*** Error code 1


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~