Re: Kernel without INET6 error on pipex.c
Yes, I tried it and it worked. Date: Fri, 25 Nov 2011 01:09:02 +0200 Subject: Re: Kernel without INET6 error on pipex.c From: coonar...@gmail.com To: misc@openbsd.org On Fri, Nov 25, 2011 at 12:46 AM, Stuart Henderson s...@spacehopper.org wrote: On 2011-11-24, Paul Irofti p...@irofti.net wrote: On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. Did you try after disabling INET6 to also disable PIPEX and pseudo-device pppx -- ### Coonardoo - The Well In The Shadow ###
Re: Kernel without INET6 error on pipex.c
Thank you ! Date: Fri, 25 Nov 2011 04:08:38 +0100 From: ktulu+o...@wxcvbn.org To: misc@openbsd.org Subject: Re: Kernel without INET6 error on pipex.c If you haven't subscribed to tech@ yet: http://marc.info/?l=openbsd-techm=132218680527474w=2
Re: Kernel without INET6 error on pipex.c
Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. To: misc@openbsd.org From: s...@spacehopper.org Subject: Re: Kernel without INET6 error on pipex.c Date: Wed, 23 Nov 2011 21:19:46 + diffs might be accepted, but basically: you broke it, you fix it. On 2011-11-23, Julien Crapovich mr_jul...@hotmail.com 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) Thank you J.Crapovich
Re: Kernel without INET6 error on pipex.c
On Thu, 24 Nov 2011 10:09:31 +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. You are the only one who knows exactly what you did. Maybe. Why should we waste time guessing? It's a pretty damn stupid thing to do anyway when it is so easy to block v6 traffic using GENERIC and, BTW, your kernel is NOT GENERIC. It doesn't matter that you were too ignorant to change the name... R/ *** NOTE *** Please DO NOT CC me. I am subscribed to the list. Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou. Rod/ --- This life is not the real thing. It is not even in Beta. If it was, then OpenBSD would already have a man page for it.
Re: Kernel without INET6 error on pipex.c
On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. This is indeed a bug. Other people should stop bashing.
Re: Kernel without INET6 error on pipex.c
On Thu, Nov 24, 2011 at 6:42 AM, Rod Whitworth glis...@witworx.com wrote: On Thu, 24 Nov 2011 10:09:31 +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. You are the only one who knows exactly what you did. B Maybe. Why should we waste time guessing? It's a pretty damn stupid thing to do anyway when it is so easy to block v6 traffic using GENERIC and, BTW, your kernel is NOT GENERIC. It doesn't matter that you were too ignorant to change the name... i don't understand what does renaming the kernel has to do with anything the op is right in that rmoption INET6 is broken, end of whether that define was meant for developers only or not is another matter R/ *** NOTE *** Please DO NOT CC me. I am subscribed to the list. Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou. Rod/ --- This life is not the real thing. It is not even in Beta. If it was, then OpenBSD would already have a man page for it.
Re: Kernel without INET6 error on pipex.c
On Thu, 24 Nov 2011 22:12:10 +1100 Rod Whitworth wrote: You are the only one who knows exactly what you did. Maybe. Why should we waste time guessing? It's a pretty damn stupid thing to do anyway when it is so easy to block v6 traffic using GENERIC and, BTW, your kernel is NOT GENERIC. It doesn't matter that you were too ignorant to change the name... It may well not be worth the effort to fix if it is broken, especially considering the difficulties IPV6 has brought. Have you tried current out of interest. IPV6 commenting has broken the build before assuming that is the single thing that was changed and it builds now when uncommented. I completely disagree with damn stupid, it is obviously the most reliable method to disable ipv6 and the archives (ppp) add weight to this. You should ALWAYS /bin/cp -p GENERIC to a new file if you make changes though, that could waste a lot of devs precious time.
Re: Kernel without INET6 error on pipex.c
On Thu, Nov 24, 2011 at 12:20:29PM +, Kevin Chadwick wrote: On Thu, 24 Nov 2011 22:12:10 +1100 Rod Whitworth wrote: You are the only one who knows exactly what you did. Maybe. Why should we waste time guessing? It's a pretty damn stupid thing to do anyway when it is so easy to block v6 traffic using GENERIC and, BTW, your kernel is NOT GENERIC. It doesn't matter that you were too ignorant to change the name... It may well not be worth the effort to fix if it is broken, especially considering the difficulties IPV6 has brought. Have you tried diff or GTFO current out of interest. IPV6 commenting has broken the build before assuming that is the single thing that was changed and it builds now when uncommented. I completely disagree with damn stupid, it is obviously the most reliable method to disable ipv6 and the archives (ppp) add weight to this. You should ALWAYS /bin/cp -p GENERIC to a new file if you make changes though, that could waste a lot of devs precious time.
Re: Kernel without INET6 error on pipex.c
On 24 November 2011 10:59, Bret S. Lambert bret.lamb...@gmail.com wrote: On Thu, Nov 24, 2011 at 12:20:29PM +, Kevin Chadwick wrote: On Thu, 24 Nov 2011 22:12:10 +1100 Rod Whitworth wrote: You are the only one who knows exactly what you did. Maybe. Why should we waste time guessing? It's a pretty damn stupid thing to do anyway when it is so easy to block v6 traffic using GENERIC and, BTW, your kernel is NOT GENERIC. It doesn't matter that you were too ignorant to change the name... It may well not be worth the effort to fix if it is broken, especially considering the difficulties IPV6 has brought. Have you tried diff or GTFO current out of interest. IPV6 commenting has broken the build before assuming that is the single thing that was changed and it builds now when uncommented. I completely disagree with damn stupid, it is obviously the most reliable method to disable ipv6 and the archives (ppp) add weight to this. You should ALWAYS /bin/cp -p GENERIC to a new file if you make changes though, that could waste a lot of devs precious time. Is there any point in keeping INET6 as removable option ? Can't we just get rid of all the #ifdef INET6 goo ?
Re: Kernel without INET6 error on pipex.c
On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. http://cvs.openbsd.org/faq/faq5.html#ProbIPv6 That should answer your question. The fact is that anything other than GENERIC and friends is not tested. If you provide a diff so that i'll build without INET6 it will probably be commited, but support for doing this is not available. -0- -- Laughter is the closest distance between two people. -- Victor Borge
Re: Kernel without INET6 error on pipex.c
On Thu, 24 Nov 2011 12:42:15 -0200 Christiano F. Haesbaert wrote: Is there any point in keeping INET6 as removable option ? Can't we just get rid of all the #ifdef INET6 goo ? Wy is it there, untill it was stable? All I know is it saved me from having to upgrade a firewall and from having trouble with ppp. They're fixed and I doubt the first will re-occur and the second was far from major, so unless it's trivial and won't keep causing devs pain then anyone have better reasons?
Re: Kernel without INET6 error on pipex.c
On 2011-11-24, Paul Irofti p...@irofti.net wrote: On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. This is indeed a bug. Other people should stop bashing. Yes, of course, but I think that bugs which are only seen when people do things we tell them not to do should generally be a low priority for developers. If somebody needs this to work it's usually not going to take them long to put ifdefs in the right place and send a diff, if they aren't prepared to do this, I really think they should stick to a generic kernel.
Re: Kernel without INET6 error on pipex.c
On Fri, Nov 25, 2011 at 12:46 AM, Stuart Henderson s...@spacehopper.org wrote: On 2011-11-24, Paul Irofti p...@irofti.net wrote: On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. Did you try after disabling INET6 to also disable PIPEX and pseudo-device pppx -- ### Coonardoo - The Well In The Shadow ###
Re: Kernel without INET6 error on pipex.c
On 11/24/11 17:46, Stuart Henderson wrote: On 2011-11-24, Paul Iroftip...@irofti.net wrote: On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. This is indeed a bug. Other people should stop bashing. Yes, of course, but I think that bugs which are only seen when people do things we tell them not to do should generally be a low priority for developers. If somebody needs this to work it's usually not going to take them long to put ifdefs in the right place and send a diff, if they aren't prepared to do this, I really think they should stick to a generic kernel. I'm curious as to why this is needed at all. I've not bothered to look, but I can't see that INET6 takes that much kernel space. Unless a a 486 is being used, isn't this a false optimization? A long time ago I used to make SHRIMP kernels which had everything I didn't need stripped out. Likely it saved 1.5M. I used that till I had a horrible time switching laptops--I'd stripped out what I needed and didn't figure it out for hours. That complete waste taught me that it wasn't worth it. --STeve Andre'
Re: Kernel without INET6 error on pipex.c
Sometimes people ask you do to things, like a bsd kernel without ipv6 code, and those guys pay you for doing this (ROFL) it happened to me, i only have a couple of arrangements(mostly userland) to do, back in the day (4.8 or something like that). 2011/11/24 STeve Andre' and...@msu.edu On 11/24/11 17:46, Stuart Henderson wrote: On 2011-11-24, Paul Iroftip...@irofti.net wrote: On Thu, Nov 24, 2011 at 10:09:31AM +, Julien Crapovich wrote: Hello. Absolutely, but compiling without INET6 is not supposed to generate error. I've just disabled INET6 on GENERIC file, not other hack. This is indeed a bug. Other people should stop bashing. Yes, of course, but I think that bugs which are only seen when people do things we tell them not to do should generally be a low priority for developers. If somebody needs this to work it's usually not going to take them long to put ifdefs in the right place and send a diff, if they aren't prepared to do this, I really think they should stick to a generic kernel. I'm curious as to why this is needed at all. I've not bothered to look, but I can't see that INET6 takes that much kernel space. Unless a a 486 is being used, isn't this a false optimization? A long time ago I used to make SHRIMP kernels which had everything I didn't need stripped out. Likely it saved 1.5M. I used that till I had a horrible time switching laptops--I'd stripped out what I needed and didn't figure it out for hours. That complete waste taught me that it wasn't worth it. --STeve Andre' -- - () ascii ribbon campaign - against html e-mail /\
Re: Kernel without INET6 error on pipex.c
If you haven't subscribed to tech@ yet: http://marc.info/?l=openbsd-techm=132218680527474w=2
Kernel without INET6 error on pipex.c
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) Thank you J.Crapovich
Re: Kernel without INET6 error on pipex.c
On Nov 23 15:49:42, Julien Crapovich wrote: I'm under OpenBSD 5.0, and I would like to compile a kernel without INET6. Howls of derisive laughter, Bruce!
Re: Kernel without INET6 error on pipex.c
On Wed, 23 Nov 2011 15:49:42 + Julien Crapovich mr_jul...@hotmail.com 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...
Re: Kernel without INET6 error on pipex.c
diffs might be accepted, but basically: you broke it, you fix it. On 2011-11-23, Julien Crapovich mr_jul...@hotmail.com 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) Thank you J.Crapovich