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 8.4.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /mnt/immortalwrt-18.06/staging_dir/toolchain-mipsel_74kc_gcc-8.4.0_musl/bin/mipsel-openwrt-linux-musl-gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found Libev: /mnt/immortalwrt-18.06/staging_dir/target-mipsel_74kc_musl/usr/lib/libev.so (found version "4.33") CMake Warning (dev) at /mnt/immortalwrt-18.06/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: /mnt/immortalwrt-18.06/staging_dir/target-mipsel_74kc_musl/usr/lib/libwolfssl.so (found version "5.3.0") -- Found MbedTLS: /mnt/immortalwrt-18.06/staging_dir/target-mipsel_74kc_musl/usr/lib/libmbedtls.so (found version "2.28.0") -- Select WolfSSL(CyaSSL) as the SSL backend -- Found Lua: /mnt/immortalwrt-18.06/staging_dir/target-mipsel_74kc_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: /mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_musl/libuwsc-wolfssl/libuwsc-3.3.5 ninja: Entering directory `/mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_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 /mnt/immortalwrt-18.06/staging_dir/host/bin/ccache /mnt/immortalwrt-18.06/staging_dir/toolchain-mipsel_74kc_gcc-8.4.0_musl/bin/mipsel-openwrt-linux-musl-gcc -D_GNU_SOURCE -Duwsc_EXPORTS -I/mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_musl/libuwsc-wolfssl/libuwsc-3.3.5/src -I/mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/buffer -Os -pipe -mno-branch-likely -mips32r2 -mtune=74kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_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 /mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_musl/libuwsc-wolfssl/libuwsc-3.3.5/src/ssl.c src/ssl.c:62:5: error: unknown type name 'SSL_CTX' SSL_CTX *ctx; ^~~~~~~ src/ssl.c:63:5: error: unknown type name 'SSL' SSL *ssl; ^~~ src/ssl.c: In function 'uwsc_ssl_init': src/ssl.c:105:14: error: implicit declaration of function 'SSL_CTX_new'; did you mean 'wolfSSL_CTX_new'? [-Werror=implicit-function-declaration] c->ctx = SSL_CTX_new(TLSv1_2_client_method()); ^~~~~~~~~~~ wolfSSL_CTX_new 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] c->ctx = SSL_CTX_new(TLSv1_2_client_method()); ^~~~~~~~~~~~~~~~~~~~~ wolfTLSv1_2_client_method src/ssl.c:105:12: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] c->ctx = SSL_CTX_new(TLSv1_2_client_method()); ^ 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] SSL_CTX_set_verify(c->ctx, SSL_VERIFY_NONE, NULL); ^~~~~~~~~~~~~~~~~~ wolfSSL_CTX_set_verify src/ssl.c:115:14: error: implicit declaration of function 'SSL_new'; did you mean 'wolfSSL_new'? [-Werror=implicit-function-declaration] c->ssl = SSL_new(c->ctx); ^~~~~~~ wolfSSL_new src/ssl.c:115:12: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] c->ssl = SSL_new(c->ctx); ^ src/ssl.c:119:5: error: implicit declaration of function 'SSL_set_fd'; did you mean 'wolfSSL_set_fd'? [-Werror=implicit-function-declaration] SSL_set_fd(c->ssl, sock); ^~~~~~~~~~ wolfSSL_set_fd src/ssl.c: In function 'uwsc_ssl_handshake': src/ssl.c:136:15: error: implicit declaration of function 'SSL_connect'; did you mean 'wolfSSL_connect'? [-Werror=implicit-function-declaration] int ret = SSL_connect(ctx->ssl); ^~~~~~~~~~~ wolfSSL_connect src/ssl.c:140:19: error: implicit declaration of function 'SSL_get_error'; did you mean 'wolfSSL_get_error'? [-Werror=implicit-function-declaration] int err = SSL_get_error(ctx->ssl, ret); ^~~~~~~~~~~~~ wolfSSL_get_error In file included from src/ssl.c:28: 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] uwsc_log_err("%s\n", ERR_reason_error_string(err)); ^~~~~~~~~~~~~~~~~~~~~~~ src/log.h:36:81: note: in definition of macro 'uwsc_log' #define uwsc_log(priority, fmt...) __uwsc_log(__FILENAME__, __LINE__, priority, fmt) ^~~ src/ssl.c:143:9: note: in expansion of macro 'uwsc_log_err' uwsc_log_err("%s\n", ERR_reason_error_string(err)); ^~~~~~~~~~~~ src/ssl.c: In function 'uwsc_ssl_free': src/ssl.c:158:5: error: implicit declaration of function 'SSL_shutdown'; did you mean 'wolfSSL_shutdown'? [-Werror=implicit-function-declaration] SSL_shutdown(ctx->ssl); ^~~~~~~~~~~~ wolfSSL_shutdown src/ssl.c:159:5: error: implicit declaration of function 'SSL_CTX_free'; did you mean 'wolfSSL_CTX_free'? [-Werror=implicit-function-declaration] SSL_CTX_free(ctx->ctx); ^~~~~~~~~~~~ wolfSSL_CTX_free src/ssl.c: In function 'uwsc_ssl_read': src/ssl.c:185:15: error: implicit declaration of function 'SSL_read'; did you mean 'SSLeay'? [-Werror=implicit-function-declaration] int ret = SSL_read(ctx->ssl, buf, count); ^~~~~~~~ SSLeay src/ssl.c: In function 'uwsc_ssl_write': src/ssl.c:209:15: error: implicit declaration of function 'SSL_write'; did you mean 'wolfSSL_write'? [-Werror=implicit-function-declaration] int ret = SSL_write(ctx->ssl, buf, count); ^~~~~~~~~ wolfSSL_write cc1: all warnings being treated as errors ninja: build stopped: subcommand failed. make[2]: *** [Makefile:91: /mnt/immortalwrt-18.06/build_dir/target-mipsel_74kc_musl/libuwsc-wolfssl/libuwsc-3.3.5/.built] Error 1 time: package/feeds/packages/libuwsc/wolfssl/compile#0.40#0.08#0.66