Applying ./patches/001-fix_find_lua.patch using plaintext: patching file cmake/Modules/FindLua.cmake Applying ./patches/010-gcc11.patch using plaintext: patching file src/lua/uwsc_lua.c CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 2.8.12 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 11.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Libev: /builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc+24kf_musl/usr/lib/libev.so (found version "4.33") CMake Warning (dev) at /builder/shared-workdir/build/sdk/staging_dir/host/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (WOLFSSL) does not match the name of the calling package (WolfSSL). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): cmake/Modules/FindWolfSSL.cmake:49 (find_package_handle_standard_args) src/CMakeLists.txt:44 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Found WOLFSSL: /builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc+24kf_musl/usr/lib/libwolfssl.so (found version "5.3.0") -- Found MbedTLS: /builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc+24kf_musl/usr/lib/libmbedtls.so (found version "2.28.0") -- Select WolfSSL(CyaSSL) as the SSL backend -- Found Lua: /builder/shared-workdir/build/sdk/staging_dir/target-mipsel_24kc+24kf_musl/usr/lib/liblua.so -- UWSC_VERSION: 3.3.5 -- UWSC_SSL_SUPPORT: WolfSSL(CyaSSL) -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project: CMAKE_ASM_COMPILER CMAKE_ASM_COMPILER_LAUNCHER CMAKE_CXX_COMPILER CMAKE_CXX_FLAGS_RELEASE CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_EXPORT_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY DL_LIBRARY -- Build files have been written to: /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5 ninja: Entering directory `/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5' [1/19] Building C object src/CMakeFiles/uwsc.dir/uwsc.c.o [2/19] Building C object src/CMakeFiles/uwsc.dir/log.c.o [3/19] Building C object src/CMakeFiles/uwsc.dir/utils.c.o [4/19] Building C object src/CMakeFiles/uwsc.dir/buffer/buffer.c.o [5/19] Building C object src/CMakeFiles/uwsc.dir/sha1.c.o [6/19] Building C object src/CMakeFiles/uwsc.dir/ssl.c.o FAILED: src/CMakeFiles/uwsc.dir/ssl.c.o /builder/shared-workdir/build/sdk/staging_dir/toolchain-mipsel_24kc+24kf_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-gcc -D_GNU_SOURCE -Duwsc_EXPORTS -I/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src -I/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/buffer -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mips16 -minterlink-mips16 -ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5=libuwsc-3.3.5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DNDEBUG -fPIC -O -Wall -Werror --std=gnu99 -MD -MT src/CMakeFiles/uwsc.dir/ssl.c.o -MF src/CMakeFiles/uwsc.dir/ssl.c.o.d -o src/CMakeFiles/uwsc.dir/ssl.c.o -c /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:62:5: error: unknown type name 'SSL_CTX' 62 | SSL_CTX *ctx; | ^~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:63:5: error: unknown type name 'SSL' 63 | SSL *ssl; | ^~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c: In function 'uwsc_ssl_init': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:105:14: error: implicit declaration of function 'SSL_CTX_new'; did you mean 'wolfSSL_CTX_new'? [-Werror=implicit-function-declaration] 105 | c->ctx = SSL_CTX_new(TLSv1_2_client_method()); | ^~~~~~~~~~~ | wolfSSL_CTX_new /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:105:26: error: implicit declaration of function 'TLSv1_2_client_method'; did you mean 'wolfTLSv1_2_client_method'? [-Werror=implicit-function-declaration] 105 | c->ctx = SSL_CTX_new(TLSv1_2_client_method()); | ^~~~~~~~~~~~~~~~~~~~~ | wolfTLSv1_2_client_method /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:105:12: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 105 | c->ctx = SSL_CTX_new(TLSv1_2_client_method()); | ^ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:114:5: error: implicit declaration of function 'SSL_CTX_set_verify'; did you mean 'wolfSSL_CTX_set_verify'? [-Werror=implicit-function-declaration] 114 | SSL_CTX_set_verify(c->ctx, SSL_VERIFY_NONE, NULL); | ^~~~~~~~~~~~~~~~~~ | wolfSSL_CTX_set_verify /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:115:14: error: implicit declaration of function 'SSL_new'; did you mean 'wolfSSL_new'? [-Werror=implicit-function-declaration] 115 | c->ssl = SSL_new(c->ctx); | ^~~~~~~ | wolfSSL_new /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:115:12: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 115 | c->ssl = SSL_new(c->ctx); | ^ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:119:5: error: implicit declaration of function 'SSL_set_fd'; did you mean 'wolfSSL_set_fd'? [-Werror=implicit-function-declaration] 119 | SSL_set_fd(c->ssl, sock); | ^~~~~~~~~~ | wolfSSL_set_fd /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c: In function 'uwsc_ssl_handshake': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:136:15: error: implicit declaration of function 'SSL_connect'; did you mean 'wolfSSL_connect'? [-Werror=implicit-function-declaration] 136 | int ret = SSL_connect(ctx->ssl); | ^~~~~~~~~~~ | wolfSSL_connect /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:140:19: error: implicit declaration of function 'SSL_get_error'; did you mean 'wolfSSL_get_error'? [-Werror=implicit-function-declaration] 140 | int err = SSL_get_error(ctx->ssl, ret); | ^~~~~~~~~~~~~ | wolfSSL_get_error In file included from /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:28: /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:143:30: error: implicit declaration of function 'ERR_reason_error_string'; did you mean 'wolfSSL_ERR_reason_error_string'? [-Werror=implicit-function-declaration] 143 | uwsc_log_err("%s\n", ERR_reason_error_string(err)); | ^~~~~~~~~~~~~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/log.h:36:81: note: in definition of macro 'uwsc_log' 36 | #define uwsc_log(priority, fmt...) __uwsc_log(__FILENAME__, __LINE__, priority, fmt) | ^~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:143:9: note: in expansion of macro 'uwsc_log_err' 143 | uwsc_log_err("%s\n", ERR_reason_error_string(err)); | ^~~~~~~~~~~~ /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c: In function 'uwsc_ssl_free': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:158:5: error: implicit declaration of function 'SSL_shutdown'; did you mean 'wolfSSL_shutdown'? [-Werror=implicit-function-declaration] 158 | SSL_shutdown(ctx->ssl); | ^~~~~~~~~~~~ | wolfSSL_shutdown /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:159:5: error: implicit declaration of function 'SSL_CTX_free'; did you mean 'wolfSSL_CTX_free'? [-Werror=implicit-function-declaration] 159 | SSL_CTX_free(ctx->ctx); | ^~~~~~~~~~~~ | wolfSSL_CTX_free /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c: In function 'uwsc_ssl_read': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:185:15: error: implicit declaration of function 'SSL_read'; did you mean 'SSLeay'? [-Werror=implicit-function-declaration] 185 | int ret = SSL_read(ctx->ssl, buf, count); | ^~~~~~~~ | SSLeay /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c: In function 'uwsc_ssl_write': /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c:209:15: error: implicit declaration of function 'SSL_write'; did you mean 'wolfSSL_write'? [-Werror=implicit-function-declaration] 209 | int ret = SSL_write(ctx->ssl, buf, count); | ^~~~~~~~~ | wolfSSL_write cc1: all warnings being treated as errors ninja: build stopped: subcommand failed. make[3]: *** [Makefile:91: /builder/shared-workdir/build/sdk/build_dir/target-mipsel_24kc+24kf_musl/libuwsc-wolfssl/libuwsc-3.3.5/.built] Error 1 time: package/feeds/packages/libuwsc/wolfssl/compile#2.33#0.69#3.63