>>> libcoap 4.2.1 Extracting gzip -d -c /tmp/instance-0/dl/libcoap/libcoap-4.2.1.tar.gz | tar --strip-components=1 -C /tmp/instance-0/output-1/build/libcoap-4.2.1 -xf - >>> libcoap 4.2.1 Patching >>> libcoap 4.2.1 Updating config.sub and config.guess for file in config.guess config.sub; do for i in $(find /tmp/instance-0/output-1/build/libcoap-4.2.1 -name $file); do cp support/gnuconfig/$file $i; done; done >>> libcoap 4.2.1 Configuring >>> libcoap 4.2.1 Autoreconfiguring libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' configure.ac:38: installing './ar-lib' configure.ac:33: installing './compile' configure.ac:43: installing './config.guess' configure.ac:43: installing './config.sub' configure.ac:23: installing './install-sh' configure.ac:23: installing './missing' Makefile.am: installing './INSTALL' Makefile.am: installing './depcomp' >>> libcoap 4.2.1 Patching libtool patching file /tmp/instance-0/output-1/build/libcoap-4.2.1/ltmain.sh Hunk #1 succeeded at 2694 (offset 7 lines). Hunk #2 succeeded at 4284 (offset 7 lines). Hunk #3 succeeded at 6579 (offset 25 lines). Hunk #4 succeeded at 6589 (offset 25 lines). Hunk #5 succeeded at 6882 (offset 25 lines). Hunk #6 succeeded at 7174 (offset 25 lines). Hunk #7 succeeded at 8140 (offset 28 lines). Hunk #8 succeeded at 10769 (offset 59 lines). (cd /tmp/instance-0/output-1/build/libcoap-4.2.1/ && rm -rf config.cache && PATH="/tmp/instance-0/output-1/host/bin:/tmp/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" AR="/tmp/instance-0/output-1/host/bin/riscv32-linux-ar" AS="/tmp/instance-0/output-1/host/bin/riscv32-linux-as" LD="/tmp/instance-0/output-1/host/bin/riscv32-linux-ld" NM="/tmp/instance-0/output-1/host/bin/riscv32-linux-nm" CC="/tmp/instance-0/output-1/host/bin/riscv32-linux-gcc" GCC="/tmp/instance-0/output-1/host/bin/riscv32-linux-gcc" CPP="/tmp/instance-0/output-1/host/bin/riscv32-linux-cpp" CXX="/tmp/instance-0/output-1/host/bin/riscv32-linux-g++" FC="/tmp/instance-0/output-1/host/bin/riscv32-linux-gfortran" F77="/tmp/instance-0/output-1/host/bin/riscv32-linux-gfortran" RANLIB="/tmp/instance-0/output-1/host/bin/riscv32-linux-ranlib" READELF="/tmp/instance-0/output-1/host/bin/riscv32-linux-readelf" STRIP="/tmp/instance-0/output-1/host/bin/riscv32-linux-strip" OBJCOPY="/tmp/instance-0/output-1/host/bin/riscv32-linux-objcopy" OBJDUMP="/tmp/instance-0/output-1/host/bin/riscv32-linux-objdump" AR_FOR_BUILD="/usr/bin/ar" AS_FOR_BUILD="/usr/bin/as" CC_FOR_BUILD="/usr/bin/gcc" GCC_FOR_BUILD="/usr/bin/gcc" CXX_FOR_BUILD="/usr/bin/g++" LD_FOR_BUILD="/usr/bin/ld" CPPFLAGS_FOR_BUILD="-I/tmp/instance-0/output-1/host/include" CFLAGS_FOR_BUILD="-O2 -I/tmp/instance-0/output-1/host/include" CXXFLAGS_FOR_BUILD="-O2 -I/tmp/instance-0/output-1/host/include" LDFLAGS_FOR_BUILD="-L/tmp/instance-0/output-1/host/lib -Wl,-rpath,/tmp/instance-0/output-1/host/lib" FCFLAGS_FOR_BUILD="" DEFAULT_ASSEMBLER="/tmp/instance-0/output-1/host/bin/riscv32-linux-as" DEFAULT_LINKER="/tmp/instance-0/output-1/host/bin/riscv32-linux-ld" CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=2" CXXFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -D_FORTIFY_SOURCE=2" LDFLAGS="" FCFLAGS=" -Os " FFLAGS=" -Os " PKG_CONFIG="/tmp/instance-0/output-1/host/bin/pkg-config" STAGING_DIR="/tmp/instance-0/output-1/host/riscv32-buildroot-linux-gnu/sysroot" INTLTOOL_PERL=/usr/bin/perl ac_cv_lbl_unaligned_fail=yes ac_cv_func_mmap_fixed_mapped=yes ac_cv_func_memcmp_working=yes ac_cv_have_decl_malloc=yes gl_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes ac_cv_func_calloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes lt_cv_sys_lib_search_path_spec="" ac_cv_c_bigendian=no CONFIG_SITE=/dev/null ./configure --target=riscv32-buildroot-linux-gnu --host=riscv32-buildroot-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix="" --disable-gtk-doc --disable-gtk-doc-html --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no --disable-dependency-tracking --enable-ipv6 --disable-nls --disable-static --enable-shared --disable-examples --without-tinydtls --enable-dtls --without-gnutls --with-openssl ) checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for riscv32-buildroot-linux-gnu-strip... /tmp/instance-0/output-1/host/bin/riscv32-linux-strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking pkg-config is at least version 0.20... yes checking whether make supports nested variables... (cached) yes checking whether to enable assertions... yes checking for riscv32-buildroot-linux-gnu-gcc... /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc accepts -g... yes checking for /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc option to accept ISO C89... none needed checking whether /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc... none checking for a sed that does not truncate output... /usr/bin/sed checking for riscv32-buildroot-linux-gnu-ar... /tmp/instance-0/output-1/host/bin/riscv32-linux-ar checking the archiver (/tmp/instance-0/output-1/host/bin/riscv32-linux-ar) interface... ar checking how to run the C preprocessor... /tmp/instance-0/output-1/host/bin/riscv32-linux-cpp checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking whether byte ordering is bigendian... (cached) no checking build system type... x86_64-pc-linux-gnu checking host system type... riscv32-buildroot-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... (cached) /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc... /tmp/instance-0/output-1/host/bin/riscv32-linux-ld checking if the linker (/tmp/instance-0/output-1/host/bin/riscv32-linux-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /tmp/instance-0/output-1/host/bin/riscv32-linux-nm checking the name lister (/tmp/instance-0/output-1/host/bin/riscv32-linux-nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to riscv32-buildroot-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /tmp/instance-0/output-1/host/bin/riscv32-linux-ld option to reload object files... -r checking for riscv32-buildroot-linux-gnu-objdump... /tmp/instance-0/output-1/host/bin/riscv32-linux-objdump checking how to recognize dependent libraries... pass_all checking for riscv32-buildroot-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv32-buildroot-linux-gnu-ar... (cached) /tmp/instance-0/output-1/host/bin/riscv32-linux-ar checking for archiver @FILE support... @ checking for riscv32-buildroot-linux-gnu-strip... (cached) /tmp/instance-0/output-1/host/bin/riscv32-linux-strip checking for riscv32-buildroot-linux-gnu-ranlib... /tmp/instance-0/output-1/host/bin/riscv32-linux-ranlib checking command to parse /tmp/instance-0/output-1/host/bin/riscv32-linux-nm output from /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv32-buildroot-linux-gnu-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc supports -fno-rtti -fno-exceptions... no checking for /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc option to produce PIC... -fPIC -DPIC checking if /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc PIC flag -fPIC -DPIC works... yes checking if /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc static flag -static works... yes checking if /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc supports -c -o file.o... yes checking if /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc supports -c -o file.o... (cached) yes checking whether the /tmp/instance-0/output-1/host/bin/riscv32-linux-gcc linker (/tmp/instance-0/output-1/host/bin/riscv32-linux-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether C compiler accepts -Wlogical-op... yes checking whether C compiler accepts -fdiagnostics-color... yes checking whether C compiler accepts -Wunused-result... yes checking whether the linker accepts -Wl,--version-script=./libcoap-2.map... yes checking for GnuTLS... no checking for OpenSSL... yes configure: The use of OpenSSL was explicit requested due configure option '--with-openssl'! checking for compatible OpenSSL version (>= 1.1.0)... yes 3.2.5 configure: WARNING: gcov is disabled checking for ctags... no configure: ==> Note: '(ex)ctags' command not found! configure: WARNING: ==> Without ctags you will be unable to run the target 'update-map-file'! configure: WARNING: ==> This is no problem if you just want to build the library libcoap. checking assert.h usability... yes checking assert.h presence... yes checking for assert.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking sys/unistd.h usability... yes checking sys/unistd.h presence... yes checking for sys/unistd.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/epoll.h usability... yes checking sys/epoll.h presence... yes checking for sys/epoll.h... yes checking sys/timerfd.h usability... yes checking sys/timerfd.h presence... yes checking for sys/timerfd.h... yes checking for size_t... yes checking for ssize_t... yes checking for memset... yes checking for select... yes checking for socket... yes checking for strcasecmp... yes checking for strrchr... yes checking for getaddrinfo... yes checking for strnlen... yes checking for malloc... yes checking for pthread_mutex_lock... yes checking for library containing socket... none required checking for library containing inet_ntop... none required checking for library containing clock_gettime... none required checking for struct cmsghdr... yes checking operating system... Linux checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating doc/Makefile config.status: creating examples/Makefile config.status: creating include/coap2/coap.h config.status: creating man/coap.txt config.status: creating man/coap_attribute.txt config.status: creating man/coap_context.txt config.status: creating man/coap_encryption.txt config.status: creating man/coap_handler.txt config.status: creating man/coap_io.txt config.status: creating man/coap_keepalive.txt config.status: creating man/coap_logging.txt config.status: creating man/coap_observe.txt config.status: creating man/coap_pdu_setup.txt config.status: creating man/coap_recovery.txt config.status: creating man/coap_resource.txt config.status: creating man/coap_session.txt config.status: creating man/coap_tls_library.txt config.status: creating man/coap-client.txt config.status: creating man/coap-server.txt config.status: creating man/coap-rd.txt config.status: creating man/Makefile config.status: creating tests/Makefile config.status: creating tests/oss-fuzz/Makefile.ci config.status: creating libcoap-2-openssl.pc config.status: creating coap_config.h config.status: executing depfiles commands config.status: executing libtool commands libcoap configuration summary: libcoap package version : "4.2.1" libcoap library version : "2.1.0" libcoap API version : "2" libcoap DTLS lib extn : "-openssl" host system : "riscv32-buildroot-linux-gnu" build DTLS support : "yes" --> OpenSSL around : "yes" (found OpenSSL 3.2.5) OPENSSL_CFLAGS : "" OPENSSL_LIBS : "-L/tmp/instance-0/output-1/host/bin/../riscv32-buildroot-linux-gnu/sysroot/usr/lib -lssl -lcrypto " build using epoll : "yes" enable small stack size : "no" build doxygen pages : "no" build man pages : "no" build unit test binary : "no" build examples : "no" build with gcov support : "no" >>> libcoap 4.2.1 Building PATH="/tmp/instance-0/output-1/host/bin:/tmp/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" /usr/bin/make -j1 -C /tmp/instance-0/output-1/build/libcoap-4.2.1/ make[1]: Entering directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' /usr/bin/make all-recursive make[2]: Entering directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' Making all in . make[3]: Entering directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' CC src/libcoap_2-openssl_la-address.lo CC src/libcoap_2-openssl_la-async.lo CC src/libcoap_2-openssl_la-block.lo CC src/libcoap_2-openssl_la-coap_debug.lo CC src/libcoap_2-openssl_la-coap_event.lo CC src/libcoap_2-openssl_la-coap_hashkey.lo CC src/libcoap_2-openssl_la-coap_gnutls.lo CC src/libcoap_2-openssl_la-coap_io.lo In file included from ./include/coap2/coap.h:36, from ./include/coap2/coap_internal.h:36, from src/coap_io.c:9: src/coap_io.c: In function 'coap_socket_connect_tcp1': ./include/coap2/address.h:108:1: warning: inlining failed in call to 'coap_address_copy': call is unlikely and code size would grow [-Winline] 108 | coap_address_copy( coap_address_t *dst, const coap_address_t *src ) { | ^~~~~~~~~~~~~~~~~ src/coap_io.c:275:3: note: called from here 275 | coap_address_copy( &connect_addr, server ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/coap2/coap.h:36, from ./include/coap2/coap_internal.h:36, from src/coap_io.c:9: ./include/coap2/address.h:108:1: warning: inlining failed in call to 'coap_address_copy': call is unlikely and code size would grow [-Winline] 108 | coap_address_copy( coap_address_t *dst, const coap_address_t *src ) { | ^~~~~~~~~~~~~~~~~ src/coap_io.c:317:5: note: called from here 317 | coap_address_copy(local_addr, local_if); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/coap2/coap.h:36, from ./include/coap2/coap_internal.h:36, from src/coap_io.c:9: src/coap_io.c: In function 'coap_socket_connect_udp': ./include/coap2/address.h:108:1: warning: inlining failed in call to 'coap_address_copy': call is unlikely and code size would grow [-Winline] 108 | coap_address_copy( coap_address_t *dst, const coap_address_t *src ) { | ^~~~~~~~~~~~~~~~~ src/coap_io.c:541:3: note: called from here 541 | coap_address_copy(&connect_addr, server); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./include/coap2/coap.h:36, from ./include/coap2/coap_internal.h:36, from src/coap_io.c:9: ./include/coap2/address.h:108:1: warning: inlining failed in call to 'coap_address_copy': call is unlikely and code size would grow [-Winline] 108 | coap_address_copy( coap_address_t *dst, const coap_address_t *src ) { | ^~~~~~~~~~~~~~~~~ src/coap_io.c:602:5: note: called from here 602 | coap_address_copy(remote_addr, &connect_addr); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC src/libcoap_2-openssl_la-coap_notls.lo CC src/libcoap_2-openssl_la-coap_openssl.lo src/coap_openssl.c:89:3: error: unknown type name 'BIO_ADDR' 89 | BIO_ADDR *bio_addr; | ^~~~~~~~ src/coap_openssl.c: In function 'coap_dgram_ctrl': src/coap_openssl.c:272:8: error: 'BIO_CTRL_DGRAM_SET_PEEK_MODE' undeclared (first use in this function); did you mean 'BIO_CTRL_DGRAM_SET_PEER'? 272 | case BIO_CTRL_DGRAM_SET_PEEK_MODE: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | BIO_CTRL_DGRAM_SET_PEER src/coap_openssl.c:272:8: note: each undeclared identifier is reported only once for each function it appears in src/coap_openssl.c:278:8: error: 'BIO_CTRL_DGRAM_SET_DONT_FRAG' undeclared (first use in this function); did you mean 'BIO_CTRL_DGRAM_SET_CONNECTED'? 278 | case BIO_CTRL_DGRAM_SET_DONT_FRAG: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | BIO_CTRL_DGRAM_SET_CONNECTED src/coap_openssl.c:310:8: error: 'BIO_CTRL_DGRAM_GET_MTU_OVERHEAD' undeclared (first use in this function); did you mean 'BIO_CTRL_DGRAM_GET_MTU'? 310 | case BIO_CTRL_DGRAM_GET_MTU_OVERHEAD: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | BIO_CTRL_DGRAM_GET_MTU src/coap_openssl.c: In function 'coap_dtls_info_callback': src/coap_openssl.c:432:64: error: 'TLS_ST_OK' undeclared (first use in this function); did you mean 'SSL_ST_OK'? 432 | if (where == SSL_CB_HANDSHAKE_START && SSL_get_state(ssl) == TLS_ST_OK) | ^~~~~~~~~ | SSL_ST_OK src/coap_openssl.c: In function 'coap_dtls_new_context': src/coap_openssl.c:519:54: error: 'DTLS1_2_VERSION' undeclared (first use in this function); did you mean 'TLS1_2_VERSION'? 519 | SSL_CTX_set_min_proto_version(context->dtls.ctx, DTLS1_2_VERSION); | ^~~~~~~~~~~~~~~ | TLS1_2_VERSION src/coap_openssl.c:540:30: warning: implicit declaration of function 'BIO_ADDR_new'; did you mean 'BIO_meth_new'? [-Wimplicit-function-declaration] 540 | context->dtls.bio_addr = BIO_ADDR_new(); | ^~~~~~~~~~~~ | BIO_meth_new src/coap_openssl.c:540:30: warning: nested extern declaration of 'BIO_ADDR_new' [-Wnested-externs] src/coap_openssl.c:540:28: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 540 | context->dtls.bio_addr = BIO_ADDR_new(); | ^ src/coap_openssl.c: In function 'coap_dtls_context_set_psk': src/coap_openssl.c:585:5: warning: implicit declaration of function 'SSL_CTX_set_psk_server_callback'; did you mean 'SSL_CTX_set_tmp_ecdh_callback'? [-Wimplicit-function-declaration] 585 | SSL_CTX_set_psk_server_callback(context->dtls.ctx, coap_dtls_psk_server_callback); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | SSL_CTX_set_tmp_ecdh_callback src/coap_openssl.c:585:5: warning: nested extern declaration of 'SSL_CTX_set_psk_server_callback' [-Wnested-externs] src/coap_openssl.c:587:5: warning: implicit declaration of function 'SSL_CTX_use_psk_identity_hint' [-Wimplicit-function-declaration] 587 | SSL_CTX_use_psk_identity_hint(context->dtls.ctx, identity_hint ? identity_hint : ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:587:5: warning: nested extern declaration of 'SSL_CTX_use_psk_identity_hint' [-Wnested-externs] src/coap_openssl.c: In function 'map_key_type': src/coap_openssl.c:623:35: error: 'EVP_PKEY_DHX' undeclared (first use in this function); did you mean 'EVP_PKEY_DH'? 623 | case COAP_ASN1_PKEY_DHX: return EVP_PKEY_DHX; | ^~~~~~~~~~~~ | EVP_PKEY_DH src/coap_openssl.c:627:40: error: 'EVP_PKEY_TLS1_PRF' undeclared (first use in this function); did you mean 'EVP_PBE_TYPE_PRF'? 627 | case COAP_ASN1_PKEY_TLS1_PRF: return EVP_PKEY_TLS1_PRF; | ^~~~~~~~~~~~~~~~~ | EVP_PBE_TYPE_PRF src/coap_openssl.c:628:36: error: 'EVP_PKEY_HKDF' undeclared (first use in this function); did you mean 'EVP_PKEY_HMAC'? 628 | case COAP_ASN1_PKEY_HKDF: return EVP_PKEY_HKDF; | ^~~~~~~~~~~~~ | EVP_PKEY_HMAC src/coap_openssl.c: In function 'get_san_or_cn_from_cert': src/coap_openssl.c:1047:16: warning: implicit declaration of function 'OPENSSL_strndup'; did you mean 'OPENSSL_strdup'? [-Wimplicit-function-declaration] 1047 | return OPENSSL_strndup(cn, ecn-cn); | ^~~~~~~~~~~~~~~ | OPENSSL_strdup src/coap_openssl.c:1047:16: warning: nested extern declaration of 'OPENSSL_strndup' [-Wnested-externs] src/coap_openssl.c:1047:16: warning: returning 'int' from a function with return type 'char *' makes pointer from integer without a cast [-Wint-conversion] 1047 | return OPENSSL_strndup(cn, ecn-cn); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c: In function 'tls_client_hello_call_back': src/coap_openssl.c:1353:12: error: 'SSL_CLIENT_HELLO_ERROR' undeclared (first use in this function); did you mean 'SSL_F_CLIENT_HELLO'? 1353 | return SSL_CLIENT_HELLO_ERROR; | ^~~~~~~~~~~~~~~~~~~~~~ | SSL_F_CLIENT_HELLO src/coap_openssl.c:1366:15: warning: implicit declaration of function 'SSL_client_hello_get0_ciphers' [-Wimplicit-function-declaration] 1366 | int len = SSL_client_hello_get0_ciphers(ssl, &out); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:1366:15: warning: nested extern declaration of 'SSL_client_hello_get0_ciphers' [-Wnested-externs] src/coap_openssl.c:1370:16: warning: implicit declaration of function 'SSL_bytes_to_cipher_list'; did you mean 'SSL_set_cipher_list'? [-Wimplicit-function-declaration] 1370 | if (len && SSL_bytes_to_cipher_list(ssl, out, len, | ^~~~~~~~~~~~~~~~~~~~~~~~ | SSL_set_cipher_list src/coap_openssl.c:1370:16: warning: nested extern declaration of 'SSL_bytes_to_cipher_list' [-Wnested-externs] src/coap_openssl.c:1371:41: warning: implicit declaration of function 'SSL_client_hello_isv2' [-Wimplicit-function-declaration] 1371 | SSL_client_hello_isv2(ssl), | ^~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:1371:41: warning: nested extern declaration of 'SSL_client_hello_isv2' [-Wnested-externs] In file included from ./include/coap2/coap.h:44, from ./include/coap2/coap_internal.h:36, from src/coap_openssl.c:11: src/coap_openssl.c:1379:32: warning: implicit declaration of function 'SSL_CIPHER_get_protocol_id'; did you mean 'SSL_CIPHER_get_auth_nid'? [-Wimplicit-function-declaration] 1379 | SSL_CIPHER_get_protocol_id(peer_cipher)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/coap2/coap_debug.h:131:29: note: in definition of macro 'coap_log' 131 | coap_log_impl((level), __VA_ARGS__); \ | ^~~~~~~~~~~ src/coap_openssl.c:1379:32: warning: nested extern declaration of 'SSL_CIPHER_get_protocol_id' [-Wnested-externs] 1379 | SSL_CIPHER_get_protocol_id(peer_cipher)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ ./include/coap2/coap_debug.h:131:29: note: in definition of macro 'coap_log' 131 | coap_log_impl((level), __VA_ARGS__); \ | ^~~~~~~~~~~ src/coap_openssl.c:1401:5: warning: implicit declaration of function 'SSL_set_psk_server_callback'; did you mean 'coap_dtls_psk_server_callback'? [-Wimplicit-function-declaration] 1401 | SSL_set_psk_server_callback(ssl, coap_dtls_psk_server_callback); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | coap_dtls_psk_server_callback src/coap_openssl.c:1401:5: warning: nested extern declaration of 'SSL_set_psk_server_callback' [-Wnested-externs] src/coap_openssl.c:1407:12: error: 'SSL_CLIENT_HELLO_SUCCESS' undeclared (first use in this function) 1407 | return SSL_CLIENT_HELLO_SUCCESS; | ^~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:1417:7: warning: implicit declaration of function 'SSL_client_hello_get0_ext' [-Wimplicit-function-declaration] 1417 | if (SSL_client_hello_get0_ext(ssl, TLSEXT_TYPE_client_certificate_type, | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:1417:7: warning: nested extern declaration of 'SSL_client_hello_get0_ext' [-Wnested-externs] src/coap_openssl.c: In function 'coap_dtls_context_set_pki': src/coap_openssl.c:1583:7: warning: implicit declaration of function 'SSL_CTX_set_client_hello_cb'; did you mean 'SSL_CTX_set_client_cert_cb'? [-Wimplicit-function-declaration] 1583 | SSL_CTX_set_client_hello_cb(context->dtls.ctx, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | SSL_CTX_set_client_cert_cb src/coap_openssl.c:1583:7: warning: nested extern declaration of 'SSL_CTX_set_client_hello_cb' [-Wnested-externs] src/coap_openssl.c: In function 'coap_dtls_free_context': src/coap_openssl.c:1686:5: warning: implicit declaration of function 'BIO_ADDR_free'; did you mean 'BIO_meth_free'? [-Wimplicit-function-declaration] 1686 | BIO_ADDR_free(context->dtls.bio_addr); | ^~~~~~~~~~~~~ | BIO_meth_free src/coap_openssl.c:1686:5: warning: nested extern declaration of 'BIO_ADDR_free' [-Wnested-externs] src/coap_openssl.c: In function 'coap_dtls_new_server_session': src/coap_openssl.c:1732:7: warning: implicit declaration of function 'SSL_use_psk_identity_hint' [-Wimplicit-function-declaration] 1732 | SSL_use_psk_identity_hint(ssl, hint); | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/coap_openssl.c:1732:7: warning: nested extern declaration of 'SSL_use_psk_identity_hint' [-Wnested-externs] src/coap_openssl.c: In function 'setup_client_ssl_session': src/coap_openssl.c:1762:5: warning: implicit declaration of function 'SSL_set_psk_client_callback'; did you mean 'coap_dtls_psk_client_callback'? [-Wimplicit-function-declaration] 1762 | SSL_set_psk_client_callback(ssl, coap_dtls_psk_client_callback); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | coap_dtls_psk_client_callback src/coap_openssl.c:1762:5: warning: nested extern declaration of 'SSL_set_psk_client_callback' [-Wnested-externs] src/coap_openssl.c: In function 'coap_dtls_get_overhead': src/coap_openssl.c:2033:15: error: 'EVP_CCM_TLS_EXPLICIT_IV_LEN' undeclared (first use in this function); did you mean 'EVP_GCM_TLS_EXPLICIT_IV_LEN'? 2033 | ivlen = EVP_CCM_TLS_EXPLICIT_IV_LEN; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | EVP_GCM_TLS_EXPLICIT_IV_LEN src/coap_openssl.c: In function 'tls_client_hello_call_back': src/coap_openssl.c:1545:1: warning: control reaches end of non-void function [-Wreturn-type] 1545 | } | ^ make[3]: *** [Makefile:889: src/libcoap_2-openssl_la-coap_openssl.lo] Error 1 make[3]: Leaving directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' make[2]: *** [Makefile:1034: all-recursive] Error 1 make[2]: Leaving directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' make[1]: *** [Makefile:621: all] Error 2 make[1]: Leaving directory '/tmp/instance-0/output-1/build/libcoap-4.2.1' make: *** [package/pkg-generic.mk:250: /tmp/instance-0/output-1/build/libcoap-4.2.1/.stamp_built] Error 2 make: Leaving directory '/tmp/instance-0/buildroot'