Subject: Re: Re: where is "pseudo-device agr" ?
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 10/29/2006 20:50:04
On Dim, oct 29 2006 - 18:26, YAMAMOTO Takashi wrote:
> > 
> > I wanted to give a try to agr(4) on my Ultra5 but the device does not
> > seem to be anywhere is the config files. I'm running -netbsd-4, justed
> > CVSed my source tree and I still have the manpage but not "pseudo-device
> > agr" in config file.
> > 
> > Any clue ?
> 
> currently, any GENERIC config doesn't have it.
> you need a custom kernel with "pseudo-device agr".
> 

OK, I added it to GENERIC and try a "make depend &&make".
I got:
#   compile  BAGHEERA/if_agrether.o
cc -mcpu=ultrasparc -mvis -Os -mcmodel=medlow -mno-fpu -ffreestanding -fno-zero-initialized-in-bss -mcpu=ultrasparc -mvis -Os -pipe -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 -fno-strict-aliasing -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I../../../../contrib/dev/ath/netbsd -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sparc64/string -I../../../../dist/ipf -c ../../../../net/agr/if_agrether.c
#   compile  BAGHEERA/if_agrether_hash.o
cc -mcpu=ultrasparc -mvis -Os -mcmodel=medlow -mno-fpu -ffreestanding -fno-zero-initialized-in-bss -mcpu=ultrasparc -mvis -Os -pipe -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 -fno-strict-aliasing -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I../../../../contrib/dev/ath/netbsd -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sparc64/string -I../../../../dist/ipf -c ../../../../net/agr/if_agrether_hash.c
#   compile  BAGHEERA/if_agrmonitor.o
cc -mcpu=ultrasparc -mvis -Os -mcmodel=medlow -mno-fpu -ffreestanding -fno-zero-initialized-in-bss -mcpu=ultrasparc -mvis -Os -pipe -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 -fno-strict-aliasing -Dsparc64 -D__sparc64__ -D_LP64 -Wa,-Av9a -I. -I../../../../contrib/dev/ath/netbsd -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DLKM -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sparc64/string -I../../../../dist/ipf -c ../../../../net/agr/if_agrmonitor.c
In file included from ../../../../net/agr/if_agrmonitor.c:39:
../../../../net/agr/if_agrvar_impl.h:103: error: field 'sc_ioctl_lock' has incomplete type
../../../../net/agr/if_agrvar_impl.h:104: error: field 'sc_lock' has incomplete type
*** Error code 1

Stop.
make: stopped in /home/cvs/src-4/sys/arch/sparc64/compile/BAGHEERA

Do I need -current, or is there another thing to add ?

TIA,
	Jo