Subject: Re: linux_sysctl.c broken in current with GENERIC (i386)
To: Andrew Brown <atatat@atatdot.net>
From: Alicia da Conceicao <alicia@engine.ca>
List: tech-kern
Date: 04/18/2004 05:32:10
> >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?
Hi Andrew:
I have:
/usr/include/sys/sysctl.h: v1.96 2003/07/02
/usr/src/sys/compat/linux/common/linux_sysctl.h: v1.1 2002/02/15
gcc -v: version 2.95.3 20010315 (release)
I guess these are out of date. Any advice on the best way to upgrade
my toolchain (gcc, includes, etc.) to a newer version that works?
I can't find any recent binary snapshots, so which source tarballs
should I get and build?
Thanks in advance.
Alicia.