Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

10.0_BETA w/MKNSD=yes build fails after OpenSSL update



The recent mega-pull-up of heimdal, bind, and OpenSSL 3.0 to
NetBSD-10.0_BETA:

  https://mail-index.netbsd.org/source-changes/2023/08/11/msg146890.html

breaks builds which set MKNSD=YES.

Example target sparc (i386 shows same failure):

[...]
#   compile  libnsd/iterated_hash.o
/r0/build/netbsd-10/tools/amd64/bin/sparc--netbsdelf-gcc -O2   -std=gnu99   -Werror   -g    --sysroot=/r0/build/netbsd-10/DEST/sparc -D_OPENBSD_SOURCE -D_NETBSD_SOURCE -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/../include -DINET6 -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/../include  -c    /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c -o iterated_hash.o
/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c: In function 'iterated_hash':
/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:47:3: error: 'SHA1_Init' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   47 |   SHA1_Init(&ctx);
      |   ^~~~~~~~~
In file included from /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:13:
/r0/build/netbsd-10/DEST/sparc/usr/include/openssl/sha.h:53:27: note: declared here
   53 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
      |                           ^~~~~~~~~
/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:48:3: error: 'SHA1_Update' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   48 |   SHA1_Update(&ctx, in, inlength);
      |   ^~~~~~~~~~~
In file included from /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:13:
/r0/build/netbsd-10/DEST/sparc/usr/include/openssl/sha.h:54:27: note: declared here
   54 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~~
/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:50:4: error: 'SHA1_Update' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   50 |    SHA1_Update(&ctx, salt, saltlength);
      |    ^~~~~~~~~~~
In file included from /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:13:
/r0/build/netbsd-10/DEST/sparc/usr/include/openssl/sha.h:54:27: note: declared here
   54 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
      |                           ^~~~~~~~~~~
/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:51:3: error: 'SHA1_Final' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
   51 |   SHA1_Final(out, &ctx);
      |   ^~~~~~~~~~
In file included from /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c:13:
/r0/build/netbsd-10/DEST/sparc/usr/include/openssl/sha.h:55:27: note: declared here
   55 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
      |                           ^~~~~~~~~~
cc1: all warnings being treated as errors
*** Failed target: iterated_hash.o
*** Failed commands:
        ${_MKTARGET_COMPILE}
        => @echo '#  ' "compile " libnsd/iterated_hash.o
        ${COMPILE.c} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} ${OBJECT_TARGET}
        => /r0/build/netbsd-10/tools/amd64/bin/sparc--netbsdelf-gcc -O2   -std=gnu99   -Werror   -g    --sysroot=/r0/build/netbsd-10/DEST/sparc -D_OPENBSD_SOURCE -D_NETBSD_SOURCE -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/../include -DINET6 -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist -I/x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/../include  -c    /x/netbsd-10/src/external/bsd/nsd/lib/libnsd/../../dist/iterated_hash.c -o iterated_hash.o
        ${CTFCONVERT_RUN}
        => 
*** [iterated_hash.o] Error code 1
nbmake[10]: stopped in /x/netbsd-10/src/external/bsd/nsd/lib/libnsd
1 error
nbmake[10]: stopped in /x/netbsd-10/src/external/bsd/nsd/lib/libnsd
nbmake[9]: stopped in /x/netbsd-10/src/external/bsd/nsd/lib/libnsd
nbmake[8]: stopped in /x/netbsd-10/src/external/bsd/nsd/lib
nbmake[7]: stopped in /x/netbsd-10/src/external/bsd/nsd
nbmake[6]: stopped in /x/netbsd-10/src/external/bsd
nbmake[5]: stopped in /x/netbsd-10/src/external
nbmake[4]: stopped in /x/netbsd-10/src
nbmake[3]: stopped in /x/netbsd-10/src
nbmake[2]: stopped in /x/netbsd-10/src
nbmake[1]: stopped in /x/netbsd-10/src

nbmake: stopped in /x/netbsd-10/src

ERROR: Failed to make release

*** BUILD ABORTED ***

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]consolidated[flyspeck]net  OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index