Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teltonika OpenWRT SDK build error: unknown type name 'RSA' #3279

Open
conalllaverty opened this issue Nov 15, 2024 · 2 comments
Open

Teltonika OpenWRT SDK build error: unknown type name 'RSA' #3279

conalllaverty opened this issue Nov 15, 2024 · 2 comments

Comments

@conalllaverty
Copy link

Hey,
Trying to build the library on the Teltonika SDK (RUT906 version, files here https://wiki.teltonika-networks.com/view/Software_Development_Kit).

Getting the error below for all versions of libwebsockets from 3.1.0 to 4.3.3.

Happening with full and openssl versions, mbedtls version is building.

[ 1%] Building C object lib/CMakeFiles/websockets.dir/plat/unix/unix-caps.c.o
In file included from /home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3/include/libwebsockets.h:665,
from /home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3/lib/core/./private-lib-core.h:144,
from /home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3/lib/plat/unix/unix-caps.c:28:
/home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3/include/libwebsockets/lws-genrsa.h:51:2: error: unknown type name 'RSA'
RSA *rsa;
^~~
make[5]: *** [lib/CMakeFiles/websockets.dir/build.make:76: lib/CMakeFiles/websockets.dir/plat/unix/unix-caps.c.o] Error 1
make[5]: Leaving directory '/home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3'
make[4]: *** [CMakeFiles/Makefile2:1330: lib/CMakeFiles/websockets.dir/all] Error 2
make[4]: Leaving directory '/home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3'
make[3]: *** [Makefile:166: all] Error 2
make[3]: Leaving directory '/home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3'
make[2]: *** [Makefile:116: /home/ubuntu/rutos-ramips-rut9m-sdk/build_dir/target-mipsel_24kc_musl/libwebsockets-full/libwebsockets-4.3.3/.built] Error 2
make[2]: Leaving directory '/home/ubuntu/rutos-ramips-rut9m-sdk/feeds/packages/libs/libwebsockets'
time: package/feeds/packages/libwebsockets/full/compile#0.40#0.21#0.58
ERROR: package/feeds/packages/libwebsockets failed to build (build variant: full).
make[1]: *** [package/Makefile:131: package/feeds/packages/libwebsockets/compile] Error 1
make[1]: Leaving directory '/home/ubuntu/rutos-ramips-rut9m-sdk'
make: *** [/home/ubuntu/rutos-ramips-rut9m-sdk/include/toplevel.mk:249: package/feeds/bacnet/bacnet-stack/compile] Error 2

@conalllaverty
Copy link
Author

Tried with openssl 3.0.14 and 3.0.15.

@lws-team
Copy link
Member

Hm... your Openssl is v3 which is a lot more recent than lws v3, it will not know how to work with it.

Do you need LWS_WITH_GENCRYPTO enabled at cmake? It's not enabled by default on current lws. If not, turn it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants