>>> libks 2.0.5 Extracting gzip -d -c /home/buildroot/instance-0/dl/libks/libks-2.0.5.tar.gz | /home/buildroot/instance-0/output-1/host/bin/tar --strip-components=1 -C /home/buildroot/instance-0/output-1/build/libks-2.0.5 -xf - >>> libks 2.0.5 Patching Applying 0001-CMakeLists.txt-honour-BUILD_TESTING.patch using patch: patching file CMakeLists.txt >>> libks 2.0.5 Configuring (mkdir -p /home/buildroot/instance-0/output-1/build/libks-2.0.5/ && cd /home/buildroot/instance-0/output-1/build/libks-2.0.5/ && rm -f CMakeCache.txt && PATH="/home/buildroot/instance-0/output-1/host/bin:/home/buildroot/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /home/buildroot/instance-0/output-1/host/bin/cmake /home/buildroot/instance-0/output-1/build/libks-2.0.5/ -G"Unix Makefiles" -DCMAKE_MAKE_PROGRAM="/usr/bin/make" -DCMAKE_TOOLCHAIN_FILE="/home/buildroot/instance-0/output-1/host/share/buildroot/toolchainfile.cmake" -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_RUNSTATEDIR="/run" -DCMAKE_COLOR_MAKEFILE=OFF -DBUILD_DOC=OFF -DBUILD_DOCS=OFF -DBUILD_EXAMPLE=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TEST=OFF -DBUILD_TESTS=OFF -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON ) Platform is linux Build type: Debug CXX Flags: Install prefix: /usr -- Found Git: /usr/bin/git (found version "2.30.2") -- The C compiler identification is GNU 14.2.0 -- The CXX compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /home/buildroot/instance-0/output-1/host/bin/s390x-linux-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /home/buildroot/instance-0/output-1/host/bin/s390x-linux-g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done LibKS2 Version 2.0 -- Looking for clock_gettime in rt -- Looking for clock_gettime in rt - found -- Looking for clock_getres in rt -- Looking for clock_getres in rt - found -- Looking for clock_nanosleep in rt -- Looking for clock_nanosleep in rt - found -- Looking for strftime in rt -- Looking for strftime in rt - found -- Looking for sched_setscheduler in c -- Looking for sched_setscheduler in c - found -- Looking for malloc in c -- Looking for malloc in c - found -- Looking for usleep in c -- Looking for usleep in c - found -- Looking for pthread_attr_setschedparam -- Looking for pthread_attr_setschedparam - found -- Looking for memmem -- Looking for memmem - found -- Looking for stdlib.h -- Looking for stdlib.h - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for sys/stat.h -- Looking for sys/stat.h - found -- Looking for string.h -- Looking for string.h - found -- Looking for unistd.h -- Looking for unistd.h - found -- Looking for memory.h -- Looking for memory.h - found -- Looking for strings.h -- Looking for strings.h - found -- Looking for inttypes.h -- Looking for inttypes.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for dlfcn.h -- Looking for dlfcn.h - found -- Looking for sched.h -- Looking for sched.h - found -- Looking for byteswap.h -- Looking for byteswap.h - found -- Looking for dirent.h -- Looking for dirent.h - found -- Found LibM: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/lib/libm.so -- Found PkgConfig: /home/buildroot/instance-0/output-1/host/bin/pkg-config (found version "2.3.0") -- Checking for module 'uuid' -- Found uuid, version 2.40.2 Found UUID setup target at imported location: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/lib/libuuid.so -- Found OpenSSL: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/lib64/libcrypto.so (found version "3.4.0") -- Found OpenSSL: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/lib64/libcrypto.so (found version "3.4.0") found components: Crypto SSL -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success Compiler supports visibility -- Configuring done (1.9s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: BUILD_DOC BUILD_DOCS BUILD_EXAMPLE BUILD_EXAMPLES BUILD_TEST BUILD_TESTS CMAKE_INSTALL_RUNSTATEDIR -- Build files have been written to: /home/buildroot/instance-0/output-1/build/libks-2.0.5 >>> libks 2.0.5 Building GIT_DIR=. PATH="/home/buildroot/instance-0/output-1/host/bin:/home/buildroot/instance-0/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" /home/buildroot/instance-0/output-1/host/bin/cmake --build /home/buildroot/instance-0/output-1/build/libks-2.0.5/ -j17 -- make[1]: Entering directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[2]: Entering directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[3]: Entering directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[3]: Leaving directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[3]: Entering directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' [ 3%] Building C object CMakeFiles/ks2.dir/src/include/cJSON/cJSON.c.o [ 6%] Building C object CMakeFiles/ks2.dir/src/include/cJSON/cJSON_Utils.c.o [ 9%] Building C object CMakeFiles/ks2.dir/src/ks.c.o [ 12%] Building C object CMakeFiles/ks2.dir/src/ks_acl.c.o [ 16%] Building C object CMakeFiles/ks2.dir/src/ks_base64.c.o [ 22%] Building C object CMakeFiles/ks2.dir/src/ks_buffer.c.o [ 22%] Building C object CMakeFiles/ks2.dir/src/ks_config.c.o [ 25%] Building C object CMakeFiles/ks2.dir/src/ks_debug.c.o [ 29%] Building C object CMakeFiles/ks2.dir/src/ks_dso.c.o [ 32%] Building C object CMakeFiles/ks2.dir/src/ks_env.c.o [ 35%] Building C object CMakeFiles/ks2.dir/src/ks_hash.c.o [ 38%] Building C object CMakeFiles/ks2.dir/src/ks_json.c.o [ 41%] Building C object CMakeFiles/ks2.dir/src/ks_json_check.c.o [ 45%] Building C object CMakeFiles/ks2.dir/src/ks_log.c.o [ 48%] Building C object CMakeFiles/ks2.dir/src/ks_mutex.c.o [ 51%] Building C object CMakeFiles/ks2.dir/src/ks_metrics.c.o [ 54%] Building C object CMakeFiles/ks2.dir/src/ks_pool.c.o [ 58%] Building C object CMakeFiles/ks2.dir/src/ks_printf.c.o [ 61%] Building C object CMakeFiles/ks2.dir/src/ks_q.c.o [ 64%] Building C object CMakeFiles/ks2.dir/src/ks_sb.c.o [ 67%] Building C object CMakeFiles/ks2.dir/src/ks_socket.c.o [ 70%] Building C object CMakeFiles/ks2.dir/src/ks_ssl.c.o [ 74%] Building C object CMakeFiles/ks2.dir/src/ks_string.c.o [ 77%] Building C object CMakeFiles/ks2.dir/src/ks_thread.c.o [ 80%] Building C object CMakeFiles/ks2.dir/src/ks_thread_pool.c.o [ 83%] Building C object CMakeFiles/ks2.dir/src/ks_time.c.o [ 87%] Building C object CMakeFiles/ks2.dir/src/ks_utf8.c.o [ 90%] Building C object CMakeFiles/ks2.dir/src/ks_uuid.c.o [ 93%] Building C object CMakeFiles/ks2.dir/src/kws.c.o [ 96%] Building C object CMakeFiles/ks2.dir/src/simclist.c.o /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c: In function 'sha1_digest': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:181:9: warning: 'SHA1_Init' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 181 | SHA1_Init(&sha); | ^~~~~~~~~ In file included from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/x509.h:41, from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/ssl.h:32, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks_ssl.h:25, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks.h:80, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:23: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/sha.h:49:27: note: declared here 49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c); | ^~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:182:9: warning: 'SHA1_Update' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 182 | SHA1_Update(&sha, in, strlen(in)); | ^~~~~~~~~~~ /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/sha.h:50:27: note: declared here 50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len); | ^~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:183:9: warning: 'SHA1_Final' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 183 | SHA1_Final(digest, &sha); | ^~~~~~~~~~ /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/sha.h:51:27: note: declared here 51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c); | ^~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c: In function 'ks_ssl_destroy_ssl_locks': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c:111:17: error: implicit declaration of function 'ERR_free_strings'; did you mean 'ERR_load_EC_strings'? [-Wimplicit-function-declaration] 111 | ERR_free_strings(); | ^~~~~~~~~~~~~~~~ | ERR_load_EC_strings /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c: In function 'mkcert': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c:211:5: warning: 'RSA_new' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 211 | rsa = RSA_new(); | ^~~ In file included from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/x509.h:36, from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/ssl.h:32, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks_ssl.h:25, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks.h:80, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c:23: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/rsa.h:212:28: note: declared here 212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void); | ^~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c:220:9: warning: 'RSA_generate_key_ex' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 220 | RSA_generate_key_ex(rsa, bits, BN_value_RSA_F4, NULL); | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/rsa.h:271:27: note: declared here 271 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e, | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/ks_ssl.c:227:9: warning: 'EVP_PKEY_assign' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 227 | if (!EVP_PKEY_assign_RSA(pk, rsa)) { | ^~ In file included from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/x509.h:29: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/openssl/evp.h:1345:5: note: declared here 1345 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key); | ^~~~~~~~~~~~~~~ make[3]: *** [CMakeFiles/ks2.dir/build.make:370: CMakeFiles/ks2.dir/src/ks_ssl.c.o] Error 1 make[3]: *** Waiting for unfinished jobs.... /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c: In function 'kws_raw_read': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:431:25: error: implicit declaration of function 'ERR_clear_error' [-Wimplicit-function-declaration] 431 | ERR_clear_error(); | ^~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c: In function 'ks_list_dump_filedescriptor': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:95:57: warning: 'write' reading 8 bytes from a region of size 4 [-Wstringop-overread] 95 | if (write(fd, msgbuf, msglen) < 0) return -1; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:1357:41: note: in expansion of macro 'WRITE_ERRCHECK' 1357 | WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t)); | ^~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:1269:18: note: source object 'bufsize' of size 4 1269 | uint32_t bufsize; | ^~~~~~~ In file included from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/bits/sigstksz.h:24, from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/signal.h:328, from /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/sys/signal.h:1, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks_platform.h:96, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/include/libks/ks.h:41, from /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:23: /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/unistd.h:378:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)' 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:95:57: warning: 'write' reading 8 bytes from a region of size 4 [-Wstringop-overread] 95 | if (write(fd, msgbuf, msglen) < 0) return -1; \ | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:1382:41: note: in expansion of macro 'WRITE_ERRCHECK' 1382 | WRITE_ERRCHECK(fd, &bufsize, sizeof(ks_size_t)); | ^~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/simclist.c:1269:18: note: source object 'bufsize' of size 4 1269 | uint32_t bufsize; | ^~~~~~~ /home/buildroot/instance-0/output-1/host/s390x-buildroot-linux-gnu/sysroot/usr/include/unistd.h:378:16: note: in a call to function 'write' declared with attribute 'access (read_only, 2, 3)' 378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur | ^~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c: In function 'establish_client_logical_layer': /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:697:63: error: implicit declaration of function 'ERR_peek_error' [-Wimplicit-function-declaration] 697 | unsigned long ssl_new_error = ERR_peek_error(); | ^~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:726:140: error: implicit declaration of function 'ERR_error_string' [-Wimplicit-function-declaration] 726 | ks_log(KS_LOG_ERROR, "Failed to negotiate ssl connection with ssl error code: %d (%s)\n", ssl_err, ERR_error_string(ssl_err, NULL)); | ^~~~~~~~~~~~~~~~ /home/buildroot/instance-0/output-1/build/libks-2.0.5/src/kws.c:727:41: error: implicit declaration of function 'ERR_print_errors_cb' [-Wimplicit-function-declaration] 727 | ERR_print_errors_cb(__log_ssl_errors, NULL); | ^~~~~~~~~~~~~~~~~~~ make[3]: *** [CMakeFiles/ks2.dir/build.make:468: CMakeFiles/ks2.dir/src/kws.c.o] Error 1 make[3]: Leaving directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[2]: *** [CMakeFiles/Makefile2:84: CMakeFiles/ks2.dir/all] Error 2 make[2]: Leaving directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make[1]: *** [Makefile:156: all] Error 2 make[1]: Leaving directory '/home/buildroot/instance-0/output-1/build/libks-2.0.5' make: *** [package/pkg-generic.mk:289: /home/buildroot/instance-0/output-1/build/libks-2.0.5/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/instance-0/buildroot'