On Wed, 23 Nov 2011 15:49:42 +0000 Julien Crapovich <[email protected]> wrote:
> Hi, > > I'm under OpenBSD 5.0, and I would like to compile a kernel without > INET6. > > # cd /usr/src > # wget ftp://ftp.openbsd.org/pub/OpenBSD/5.0/sys.tar.gz > # tar zxvf sys.tar.gz > > I edited /usr/src/sys/conf/GENERIC, and disabled INET6 (line 59, > #INET6) > > > # cd /usr/src/sys/arch/`arch -s`/conf > # config GENERIC && cd ../compile/GENERIC > # make clean ; make depend ; make > [.....] > > cc > -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-main > -Wno-uninitialized -Wno-format -Wstack-larger-than-2047 > -fno-builtin-printf -fno-builtin-snprintf -fno-builtin-vsnprintf > -fno-builtin-log -fno-builtin-log2 -fno-builtin-malloc -O2 -pipe > -nostdinc -I. -I../../../.. -I../../../../arch -DDDB -DDIAGNOSTIC > -DKTRACE -DACCOUNTING -DKMEMSTATS -DPTRACE -DCRYPTO -DSYSVMSG > -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_43 -DCOMPAT_O48 -DLKM > -DFFS -DFFS2 -DFFS_SOFTUPDATES -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS > -DNFSCLIENT -DNFSSERVER -DCD9660 -DUDF -DMSDOSFS -DFIFO > -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN -DTCP_SIGNATURE -DINET -DALTQ > -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE -DPIPEX -DMROUTING -DMPLS > -DBOOT_CONFIG -DUSER_PCICONF -DKVM86 -DUSER_LDT -DAPERTURE > -DCOMPAT_LINUX -DPROCFS -DNTFS -DPCIVERBOSE -DEISAVERBOSE > -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD > -DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DX86EMU > -DONEWIREVERBOSE -DMAXUSERS=80 -D_KERNEL -MD -MP > -c ../../../../net/pipex.c ../../../../net/pipex.c: In function > 'pipex_l2tp_output': ../../../../net/pipex.c:1894: error: invalid > application of 'sizeof' to incomplete type 'struct ip6_hdr' > ../../../../net/pipex.c:1911: error: invalid application of 'sizeof' > to incomplete type 'struct ip6_hdr' > *** Error code 1 > > Stop in /usr/src/sys/arch/i386/compile/GENERIC (line 92 of > /usr/share/mk/sys.mk) in fact you don't need to. ifconfig <IFNAME> -inet6 will turn it off per iface...

