Re: error building -stable 6.0/amd64 from source on qemu

2016-09-20 Thread Joel Sing
On Tuesday 20 September 2016 18:26:42 Joel Sing wrote:
> On Tuesday 20 September 2016 09:54:31 soko.tica wrote:
> > Hello,
> > 
> > In trying to build -stable from source, I get an error. I have downloaded
> > and unterred sys.tar.gz and src.tar.gz according to
> > http://www.openbsd.org/faq/faq5.html#Release and updated the sources
> > through cvs, according to the instructions http://man.openbsd.org/release
> > .
> > After I execute (as root, the first time doas produced the same error)
> > 
> > #cd /usr/src && make build
> > 
> > I get the following:
> > 
> > cc
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/i
> > nc lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/i
> > n
> > clude
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/boot
> > -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> > -D_STANDALONE -nostdinc -fno-builtin -Os -Wall -Werror
> > -fno-stack-protector
> > -DMDRANDOM
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/i
> > nc lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/i
> > n
> > clude
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/boot
> > -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> > -D_STANDALONE -nostdinc -fno-builtin -Wno-pointer-sign
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../libsa -I.
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64 -DSMALL -DSLOW -DNOBYFOUR
> > -D__INTERNAL_LIBSA_CREAD -DHEAP_LIMIT=0xc0 -c
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > t
> > raid.c: In function 'sr_crypto_decrypt_keys':
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:155: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:155: error: 'SR_CRYPTOKDFT_PKCS5_PBKDF2' undeclared (first use in
> > this function)
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > t
> > raid.c:155: error: (Each undeclared identifier is reported only once
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:155: error: for each function it appears in.)
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:156: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:156: error: 'SR_CRYPTOKDFT_BCRYPT_PBKDF' undeclared (first use in
> > this function)
> 
> I'm not sure what you've done (since the actual commands you ran are not
> specified), however this is -current source, not -stable. Further more
> you've ended up with a mix - sys/dev/softraidvar.h is older than
> sys/lib/libsa/softraid.c.

Actually, sys/lib/libsa/softraid.c is using your installed headers - so your 
source is possibly all -current.
 
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > t
> > raid.c:157: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:180: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:183: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:183: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:185: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:191: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:191: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:193: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/sof
> > tr aid.c:198: error: dereferencing pointer to incomplete type
> > *** Error 1 in sys/arch/amd64/stand/efiboot/bootx64 (:87
> > 'softraid.o')
> > *** Error 1 in sys/arch/amd64/stand/efiboot (:48 'all')
> > *** Error 1 in sys/arch/amd64/stand (:48 'all')
> > *** Error 1 in sys/arch/amd64 (:48 'all')
> > *** Error 1 in sys (:48 'all')
> > *** Error 1 in . 

Re: error building -stable 6.0/amd64 from source on qemu[SOLVED]

2016-09-20 Thread soko.tica
Many thanks. That was it.

On Tue, Sep 20, 2016 at 10:26 AM, Joel Sing  wrote:

> On Tuesday 20 September 2016 09:54:31 soko.tica wrote:
> > Hello,
> >
> > In trying to build -stable from source, I get an error. I have downloaded
> > and unterred sys.tar.gz and src.tar.gz according to
> > http://www.openbsd.org/faq/faq5.html#Release and updated the sources
> > through cvs, according to the instructions
> http://man.openbsd.org/release .
> > After I execute (as root, the first time doas produced the same error)
> >
> > #cd /usr/src && make build
> >
> > I get the following:
> > 
> > cc
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/efi/inc
> > lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/efi/in
> > clude
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/boot
> > -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> > -D_STANDALONE -nostdinc -fno-builtin -Os -Wall -Werror
> -fno-stack-protector
> > -DMDRANDOM
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/efi/inc
> > lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/efi/in
> > clude
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../..
> /../../stand/boot
> > -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> > -D_STANDALONE -nostdinc -fno-builtin -Wno-pointer-sign
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../libsa -I.
> > -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64 -DSMALL -DSLOW
> -DNOBYFOUR
> > -D__INTERNAL_LIBSA_CREAD -DHEAP_LIMIT=0xc0 -c
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/soft
> > raid.c: In function 'sr_crypto_decrypt_keys':
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:155: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:155: error: 'SR_CRYPTOKDFT_PKCS5_PBKDF2' undeclared (first use in
> this
> > function)
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/soft
> > raid.c:155: error: (Each undeclared identifier is reported only once
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:155: error: for each function it appears in.)
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:156: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:156: error: 'SR_CRYPTOKDFT_BCRYPT_PBKDF' undeclared (first use in
> this
> > function)
>
> I'm not sure what you've done (since the actual commands you ran are not
> specified), however this is -current source, not -stable. Further more
> you've
> ended up with a mix - sys/dev/softraidvar.h is older than
> sys/lib/libsa/softraid.c.
>
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/soft
> > raid.c:157: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:180: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:183: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:183: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:185: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:191: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:191: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:193: error: dereferencing pointer to incomplete type
> > /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> /lib/libsa/softr
> > aid.c:198: error: dereferencing pointer to incomplete type
> > *** Error 1 in sys/arch/amd64/stand/efiboot/bootx64 (:87
> > 'softraid.o')
> > *** Error 1 in sys/arch/amd64/stand/efiboot (:48 'all')
> > *** Error 1 in sys/arch/amd64/stand (:48 'all')
> > *** Error 1 in sys/arch/amd64 (:48 'all')
> > *** Error 1 in sys (:48 'all')
> > *** Error 1 in . (:48 'all')
> > *** Error 1 in /usr/src 

Re: error building -stable 6.0/amd64 from source on qemu

2016-09-20 Thread Joel Sing
On Tuesday 20 September 2016 09:54:31 soko.tica wrote:
> Hello,
> 
> In trying to build -stable from source, I get an error. I have downloaded
> and unterred sys.tar.gz and src.tar.gz according to
> http://www.openbsd.org/faq/faq5.html#Release and updated the sources
> through cvs, according to the instructions http://man.openbsd.org/release .
> After I execute (as root, the first time doas produced the same error)
> 
> #cd /usr/src && make build
> 
> I get the following:
> 
> cc
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/inc
> lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/in
> clude
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/boot
> -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> -D_STANDALONE -nostdinc -fno-builtin -Os -Wall -Werror -fno-stack-protector
> -DMDRANDOM
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/inc
> lude/amd64 -DEFIBOOT -DNEEDS_HEAP_H
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/..
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/efi/in
> clude
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../stand/boot
> -ffreestanding -std=gnu99 -fshort-wchar -fPIC -mno-red-zone -DSOFTRAID
> -D_STANDALONE -nostdinc -fno-builtin -Wno-pointer-sign
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../..
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../libsa -I.
> -I/usr/src/sys/arch/amd64/stand/efiboot/bootx64 -DSMALL -DSLOW -DNOBYFOUR
> -D__INTERNAL_LIBSA_CREAD -DHEAP_LIMIT=0xc0 -c
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/soft
> raid.c: In function 'sr_crypto_decrypt_keys':
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:155: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:155: error: 'SR_CRYPTOKDFT_PKCS5_PBKDF2' undeclared (first use in this
> function)
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/soft
> raid.c:155: error: (Each undeclared identifier is reported only once
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:155: error: for each function it appears in.)
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:156: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:156: error: 'SR_CRYPTOKDFT_BCRYPT_PBKDF' undeclared (first use in this
> function)

I'm not sure what you've done (since the actual commands you ran are not 
specified), however this is -current source, not -stable. Further more you've 
ended up with a mix - sys/dev/softraidvar.h is older than 
sys/lib/libsa/softraid.c.

> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/soft
> raid.c:157: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:180: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:183: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:183: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:185: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:191: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:191: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:193: error: dereferencing pointer to incomplete type
> /usr/src/sys/arch/amd64/stand/efiboot/bootx64/../../../../../lib/libsa/softr
> aid.c:198: error: dereferencing pointer to incomplete type
> *** Error 1 in sys/arch/amd64/stand/efiboot/bootx64 (:87
> 'softraid.o')
> *** Error 1 in sys/arch/amd64/stand/efiboot (:48 'all')
> *** Error 1 in sys/arch/amd64/stand (:48 'all')
> *** Error 1 in sys/arch/amd64 (:48 'all')
> *** Error 1 in sys (:48 'all')
> *** Error 1 in . (:48 'all')
> *** Error 1 in /usr/src (Makefile:82 'build')
> # ^D
> 
> Script done on Tue Sep 20 07:16:08 2016
> ==
> 
> Thanks in advance for your input.