Re: i386 generic kernel compile error

2016-09-05 Thread Christian Weisgerber
On 2016-09-05, Eivind Eide  wrote:

> ../../../../netinet6/in6_pcb.c:211: error: expected expression before '<<' 
> token
> ../../../../netinet6/in6_pcb.c:298: error: expected expression before '==' 
> token
> ../../../../netinet6/in6_pcb.c:313: error: expected expression before '>>' 
> token

CVS conflict.

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de



Re: i386 generic kernel compile error

2016-09-05 Thread Edgar Pettijohn
On 16-09-05 16:18:02, Eivind Eide wrote:
> I'm trying to compile generic i386 -current kernel to test a patch
> which maybe can make -current kernel bootable again on this old
> machine I got.
> https://marc.info/?l=openbsd-bugs=147293672100677=2
> 
> However the compile fails with errors that seems to relate to something else.
> Details about my machine in the tread:
> https://marc.info/?l=openbsd-bugs=147282970312124=2
> Does anybody have any pointers to succeed in compiling this generic
> kernel? Or, alternatively, can someone compile a i386 generic -current
> kernel for me with the above mentioned patch?
> Hope I can get OpenBSD -current on that old machine again. The errors
> printed when kernel compilation fails below. Thanks!
> 
> (...snip...)
> cc  -Werror -Wall -Wimplicit-function-declaration  -Wno-main
> -Wno-uninitialized  -Wframe-larger-than=2047  -fno-builtin-printf
> -fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-builtin-log
> -fno-builtin-log2 -fno-builtin-malloc -fno-pie -O2 -pipe -nostdinc
> -I../../../.. -I. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE
> -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG
> -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES
> -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660
> -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN
> -DTCP_SIGNATURE -DART -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE
> -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DKVM86
> -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE
> -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
> -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
> -D_KERNEL -MD -MP  -c ../../../../netinet/ip_ecn.c
> cc  -Werror -Wall -Wimplicit-function-declaration  -Wno-main
> -Wno-uninitialized  -Wframe-larger-than=2047  -fno-builtin-printf
> -fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-builtin-log
> -fno-builtin-log2 -fno-builtin-malloc -fno-pie -O2 -pipe -nostdinc
> -I../../../.. -I. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE
> -DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG
> -DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES
> -DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660
> -DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN
> -DTCP_SIGNATURE -DART -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE
> -DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DKVM86
> -DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE
> -DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
> -DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
> -D_KERNEL -MD -MP  -c ../../../../netinet6/in6_pcb.c
> ../../../../netinet6/in6_pcb.c: In function 'in6_pcbaddrisavail':
> ../../../../netinet6/in6_pcb.c:211: error: expected expression before '<<' 
> token
> ../../../../netinet6/in6_pcb.c:268: error: 'IN6_IFF_NOTREADY'
> undeclared (first use in this function)
> ../../../../netinet6/in6_pcb.c:268: error: (Each undeclared identifier
> is reported only once
> ../../../../netinet6/in6_pcb.c:268: error: for each function it appears in.)
> ../../../../netinet6/in6_pcb.c:284: error: 'error' undeclared (first
> use in this function)
> cc1: warnings being treated as errors
> ../../../../netinet6/in6_pcb.c:287: warning: implicit declaration of
> function 'in_pcblookup'
> ../../../../netinet6/in6_pcb.c:287: error: 'head' undeclared (first
> use in this function)
> ../../../../netinet6/in6_pcb.c:291: warning: assignment makes pointer
> from integer without a cast
> ../../../../netinet6/in6_pcb.c:298: error: expected expression before '==' 
> token
> ../../../../netinet6/in6_pcb.c:307: warning: assignment makes pointer
> from integer without a cast
> ../../../../netinet6/in6_pcb.c:307: error: expected ';' before '}' token
> ../../../../netinet6/in6_pcb.c:313: error: expected expression before '>>' 
> token
> ../../../../netinet6/in6_pcb.c:316: error: too few arguments to
> function 'in_pcblookup_local'
> ../../../../netinet6/in6_pcb.c:592: error: expected declaration or
> statement at end of input
> *** Error 1 in /usr/src/sys/arch/i386/compile/GENERIC (Makefile:1021
> 'in6_pcb.o')
> #
> 
> -- 
> 
> 
> 
> Eivind Eide
> 
> "ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
> - Oceania Association of Autonomous Astronauts

Looks like most of your problems are INET6 related. This probably isn't the 
correct way
to go about things, but I would try the following and see where it got me.

# cp /usr/src/sys/conf/GENERIC /usr/src/sys/conf/CUSTOM

--- GENERIC Tue Aug  2 18:23:55 2016
+++ CUSTOM  Mon Sep  5 15:17:00 2016
@@ -51,7 +51,7 @@
 #optionTCP_FACK# Forward Acknowledgements for TCP
 
 option ART # Allotment Routing Table
-option INET6   # IPv6
+#optionINET6   # IPv6
 option IPSEC   # IPsec

i386 generic kernel compile error

2016-09-05 Thread Eivind Eide
I'm trying to compile generic i386 -current kernel to test a patch
which maybe can make -current kernel bootable again on this old
machine I got.
https://marc.info/?l=openbsd-bugs=147293672100677=2

However the compile fails with errors that seems to relate to something else.
Details about my machine in the tread:
https://marc.info/?l=openbsd-bugs=147282970312124=2
Does anybody have any pointers to succeed in compiling this generic
kernel? Or, alternatively, can someone compile a i386 generic -current
kernel for me with the above mentioned patch?
Hope I can get OpenBSD -current on that old machine again. The errors
printed when kernel compilation fails below. Thanks!

(...snip...)
cc  -Werror -Wall -Wimplicit-function-declaration  -Wno-main
-Wno-uninitialized  -Wframe-larger-than=2047  -fno-builtin-printf
-fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-builtin-log
-fno-builtin-log2 -fno-builtin-malloc -fno-pie -O2 -pipe -nostdinc
-I../../../.. -I. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE
-DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG
-DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES
-DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660
-DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN
-DTCP_SIGNATURE -DART -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE
-DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DKVM86
-DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE
-DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
-DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
-D_KERNEL -MD -MP  -c ../../../../netinet/ip_ecn.c
cc  -Werror -Wall -Wimplicit-function-declaration  -Wno-main
-Wno-uninitialized  -Wframe-larger-than=2047  -fno-builtin-printf
-fno-builtin-snprintf  -fno-builtin-vsnprintf -fno-builtin-log
-fno-builtin-log2 -fno-builtin-malloc -fno-pie -O2 -pipe -nostdinc
-I../../../.. -I. -I../../../../arch -DDDB -DDIAGNOSTIC -DKTRACE
-DACCOUNTING -DKMEMSTATS -DPTRACE -DPOOL_DEBUG -DCRYPTO -DSYSVMSG
-DSYSVSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DFFS -DFFS2 -DFFS_SOFTUPDATES
-DUFS_DIRHASH -DQUOTA -DEXT2FS -DMFS -DNFSCLIENT -DNFSSERVER -DCD9660
-DUDF -DMSDOSFS -DFIFO -DFUSE -DSOCKET_SPLICE -DTCP_SACK -DTCP_ECN
-DTCP_SIGNATURE -DART -DINET6 -DIPSEC -DPPP_BSDCOMP -DPPP_DEFLATE
-DPIPEX -DMROUTING -DMPLS -DBOOT_CONFIG -DUSER_PCICONF -DKVM86
-DAPERTURE -DMTRR -DNTFS -DHIBERNATE -DPCIVERBOSE -DEISAVERBOSE
-DUSBVERBOSE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
-DWSDISPLAY_DEFAULTSCREENS="6" -DX86EMU -DONEWIREVERBOSE -DMAXUSERS=80
-D_KERNEL -MD -MP  -c ../../../../netinet6/in6_pcb.c
../../../../netinet6/in6_pcb.c: In function 'in6_pcbaddrisavail':
../../../../netinet6/in6_pcb.c:211: error: expected expression before '<<' token
../../../../netinet6/in6_pcb.c:268: error: 'IN6_IFF_NOTREADY'
undeclared (first use in this function)
../../../../netinet6/in6_pcb.c:268: error: (Each undeclared identifier
is reported only once
../../../../netinet6/in6_pcb.c:268: error: for each function it appears in.)
../../../../netinet6/in6_pcb.c:284: error: 'error' undeclared (first
use in this function)
cc1: warnings being treated as errors
../../../../netinet6/in6_pcb.c:287: warning: implicit declaration of
function 'in_pcblookup'
../../../../netinet6/in6_pcb.c:287: error: 'head' undeclared (first
use in this function)
../../../../netinet6/in6_pcb.c:291: warning: assignment makes pointer
from integer without a cast
../../../../netinet6/in6_pcb.c:298: error: expected expression before '==' token
../../../../netinet6/in6_pcb.c:307: warning: assignment makes pointer
from integer without a cast
../../../../netinet6/in6_pcb.c:307: error: expected ';' before '}' token
../../../../netinet6/in6_pcb.c:313: error: expected expression before '>>' token
../../../../netinet6/in6_pcb.c:316: error: too few arguments to
function 'in_pcblookup_local'
../../../../netinet6/in6_pcb.c:592: error: expected declaration or
statement at end of input
*** Error 1 in /usr/src/sys/arch/i386/compile/GENERIC (Makefile:1021
'in6_pcb.o')
#

-- 



Eivind Eide

"ONLY THOSE WHO ATTEMPT THE IMPOSSIBLE WILL ACHIEVE THE ABSURD"
- Oceania Association of Autonomous Astronauts