-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
libwebsocket: fix compile with mbedtls and update to 4.3.3 #24071
Conversation
Signed-off-by: Seo Suchan <[email protected]>
c4a722b
to
eabb202
Compare
@orangepizza, besides that the -DDISABLE_WERROR=ON option is broken in the openwrt Makefile. `@@ -29,7 +29,7 @@ include $(INCLUDE_DIR)/package.mk CMAKE_OPTIONS += -DLWS_IPV6=$(if $(CONFIG_IPV6),ON,OFF) |
It'd needed patch anyway because it has silent dependent on mbedtls_version_c but I think I can patch it to use mecro string instead, removing that |
-DDISABLE_WERROR would just be short term compile fix anyway.
Looks like 4.3.3 is broken with recent mbedtls, and so is 4.3.2. Must be fixed upstream. |
3e70a68
to
3fdc664
Compare
@orangepizza, This is working for me: master...dddaniel:packages:master |
this commit already fixed reason it caused error: not really needed to disable werror |
Do programs that link against libwebsockets compile successfully with your commit ? /usr/bin/ld: /usr/local/lib/libwebsockets.so: undefined reference to `private_mbedtls_x509_get_name' |
they moved mbedtls_x509_get_name into interal zone. Signed-off-by: Seo Suchan <[email protected]>
reverted to my original fix, this surely works with something linked with it complied |
Squash these commits. Also, don't use .diff files. |
dbb108b
to
4040362
Compare
did that, but doesn't make refresh strips any patch headers, making it a diff? |
quilt does not strip patch headers. |
4040362
to
8eb0d2d
Compare
Run ‘’’ |
8eb0d2d
to
4a081ad
Compare
3.6 removed mbedtls_x509_get_cert into private header, redefined it in resonable place to temperatly fix it, and make it not depend on mbedtls_version_C. everything is upstreamed so won't need when upstrea release 4.3.4 Signed-off-by: Seo Suchan <[email protected]>
4a081ad
to
be18b37
Compare
libs/libwebsockets/Makefile
Outdated
@@ -61,7 +61,7 @@ endef | |||
define Package/libwebsockets-mbedtls | |||
$(call Package/$(PKG_NAME)/Default) | |||
TITLE += (mbedTLS) | |||
DEPENDS += +libmbedtls | |||
DEPENDS += +libmbedtls @MBEDTLS_VERSION_C |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably activate this option in the main repository by default. Could you create a PR for that too please.
upstreamed patches was removed in process, and add dependency for MBEDTLS_VERSION_C as this package needs that to compile when used mbedtls as backend. (not sure how it worked before?)
mbedtls 3.6 moved one of function used in this into private header, patch redefined it to be able to compiled. a more detailed fix will be needed form upstream, but it should be enough for us.