Subject: Re: linux_sysctl.c broken in current with GENERIC (i386)
To: Alicia da Conceicao <alicia@engine.ca>
From: Andrew Brown <atatat@atatdot.net>
List: port-i386
Date: 04/17/2004 21:17:55
>2) NetBSD-current won't build with unmodified GENERIC (i386). It
> fails, when it tries to compile "linux_sysctl.c".
>
>=================================================================
>compile GENERIC/linux_sysctl.o
>cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized -Di386 -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../compat/linux/common/linux_sysctl.c
>../../../../compat/linux/common/linux_sysctl.c:75: unknown field `__sysc_ustr' specified in initializer
>../../../../compat/linux/common/linux_sysctl.c:75: unknown field `__sysc_sdatum' specified in initializer
>...
mine can.
this# cd /usr/src/sys/arch/i386/conf/
this# config GENERIC
Build directory is ../compile/GENERIC
Don't forget to run "make depend"
this# cd ../compile/GENERIC/
this# make linux_sysctl.o
# compile GENERIC/linux_sysctl.o
cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Di386 -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ../../../../compat/linux/common/linux_sysctl.c
this#
what revision of sys/sysctl.h and compat/linux/common/linux_sysctl.c
do you have? what does cc -v report?
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."