Monday, January 31, 2022

Re: Failing to compile custom 6.6 based on git commit id

I tried with 6.4 to compile this and failed:

error log:

cc -O2 -pipe  -Wall -Wformat -Wformat-security -Wimplicit -Wreturn-type
-Wtrigraphs -Wuninitialized -Wunused -Werror -DLIBRESS
L_INTERNAL -Werror-implicit-function-declaration -MD -MP  -c
/usr/src/usr.bin/openssl/verify.c
cc -O2 -pipe  -Wall -Wformat -Wformat-security -Wimplicit -Wreturn-type
-Wtrigraphs -Wuninitialized -Wunused -Werror -DLIBRESS
L_INTERNAL -Werror-implicit-function-declaration -MD -MP  -c
/usr/src/usr.bin/openssl/version.c
cc -O2 -pipe  -Wall -Wformat -Wformat-security -Wimplicit -Wreturn-type
-Wtrigraphs -Wuninitialized -Wunused -Werror -DLIBRESS
L_INTERNAL -Werror-implicit-function-declaration -MD -MP  -c
/usr/src/usr.bin/openssl/x509.c
cc   -o openssl apps.o apps_posix.o asn1pars.o ca.o certhash.o ciphers.o
crl.o crl2p7.o dgst.o dh.o dhparam.o dsa.o dsaparam.o
 ec.o ecparam.o enc.o errstr.o gendh.o gendsa.o genpkey.o genrsa.o
nseq.o ocsp.o openssl.o passwd.o pkcs12.o pkcs7.o pkcs8.o p
key.o pkeyparam.o pkeyutl.o prime.o rand.o req.o rsa.o rsautl.o s_cb.o
s_client.o s_server.o s_socket.o s_time.o sess_id.o smi
me.o speed.o spkac.o ts.o verify.o version.o x509.o -lssl -lcrypto
pkcs8.o: In function `pkcs8_main':
pkcs8.c:(.text+0x2f6): undefined reference to `EVP_PKEY2PKCS8_broken'
cc: error: linker command failed with exit code 1 (use -v to see
invocation)
*** Error 1 in usr.bin/openssl (<bsd.prog.mk>:121 'openssl')
*** Error 1 in usr.bin (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (<bsd.subdir.mk>:48 'all')
*** Error 1 in . (Makefile:95 'do-build')
*** Error 1 in /usr/src (Makefile:74 'build')

if anyone got any idea, let me know

On 30/01/2022 18:07, flipchan wrote:
> Hey Everyone,
>
> I'm trying to build an openbsd iso based on this commit:
> https://github.com/openbsd/src/tree/a8e222352f
>
> For a lab exercise.
>
> So far It keeps failing when I'm trying to manually build it from
> source, right now I have installed a fresh version of openbsd 6.6 and
> i'm trying to build it with:
>
> git clonehttps://github.com/openbsd/src
> cd  src/
> git checkout a8e222352f
> cd ../ && zip -r src.zip src/
> then copy to the 6.6 mv and unzip in the /usr/src dir
> then I run
> make obj, this works
> make build, this fails with the message:
> ===> libexec/getty
> install -c -S -s  -o root -g bin  -m 555 getty /usr/libexec/getty
> install -c -o root -g bin -m 444  /usr/src/libexec/getty/getty.8
> /usr/share/man/
> man8/getty.8
> install -c -o root -g bin -m 444 /usr/src/libexec/getty/gettytab.5
> /usr/share/m
> an/man5/gettytab.5
> install -c -o root -g bin -m 444  /usr/src/libexec/getty/ttys.5
> /usr/share/man/m
> an5/ttys.5
> ===> libexec/ld.so
> install -c -S   -o root -g bin  -m 444 ld.so /usr/libexec/ld.so
> install: ld.so: No such file or directory
> *** Error 1 in libexec/ld.so (<bsd.prog.mk>:152 'realinstall')
> *** Error 1 in libexec (<bsd.subdir.mk>:48 'realinstall')
> *** Error 1 in /usr/src (<bsd.subdir.mk>:48 'realinstall')
> 6.6vm#
>
>
> Does anyone have any good idea on how I can compile openbsd from this
> commit?
>
> Thanks!

No comments:

Post a Comment