Subject: Re: sys_socket.c:130: error: structure has no member named `snd'
To: None <current-users@netbsd.org>
From: Dmitri Nikulin <setagllib@optusnet.com.au>
List: current-users
Date: 11/11/2004 13:06:13
Thomas T. Thai wrote:

> Trying to compile -current kernel on i386. I have source of sys.tar.gz 
> and contrib.tar.gz.
>
> #   compile  ICE.MP/sys_socket.o
> cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length 
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes 
> -Wno-sign-compare -fno-zero-initialized-in-bss -Di386 -I. 
> -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=32 
> -D_KERNEL -D_KERNEL_OPT -I../../../../dist/ipf -c 
> ../../../../kern/sys_socket.c
> ../../../../kern/sys_socket.c: In function `soo_ioctl':
> ../../../../kern/sys_socket.c:130: error: structure has no member 
> named `snd'
> ../../../../kern/sys_socket.c:130: error: structure has no member 
> named `snd'
> ../../../../kern/sys_socket.c:131: error: structure has no member 
> named `snd'
> ../../../../kern/sys_socket.c:131: error: structure has no member 
> named `snd'
> ../../../../kern/sys_socket.c:134: error: invalid type argument of `->'
> ../../../../kern/sys_socket.c:134: error: invalid type argument of `->'
> ../../../../kern/sys_socket.c:134: error: invalid type argument of `->'
> ../../../../kern/sys_socket.c:134: error: invalid type argument of `->'
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src/sys/arch/i386/compile/ICE.MP
>
> ---
> Thomas
>
>
This happened thanks to a commit a couple of days ago. It was fixed in a 
few hours. cvs update again and you should be able to compile fine.

setenv CVSROOT anoncvs@anoncvs.netbsd.org:/cvsroot
setenv CVS_RSH ssh
cd /usr/src
cvs -z5 update -dP

^should be enough.