-
Notifications
You must be signed in to change notification settings - Fork 64
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
Failed building in Termux with shared OpenSSL 3.0, PCRE, and Luv #280
Comments
I forgot, I also had patch for clang not to throw --- luvi/deps/lua-openssl/src/ocsp.c 2023-09-21 20:43:36.658538386 +0800
+++ luvi.1/deps/lua-openssl/src/ocsp.c 2023-09-21 20:59:04.998538309 +0800
@@ -121,8 +121,15 @@
BIO *bio = load_bio_object(L, 1);
int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
+#endif
OCSP_REQUEST *req = pem ? PEM_read_bio_OCSP_REQUEST(bio, NULL, NULL)
: d2i_OCSP_REQUEST_bio(bio, NULL);
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
BIO_free(bio);
if (req)
@@ -303,8 +310,15 @@
BIO *bio = load_bio_object(L, 1);
int pem = lua_gettop(L) > 1 ? auxiliar_checkboolean(L, 2) : 0;
+#if defined(__clang__)
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored"-Wincompatible-function-pointer-types"
+#endif
OCSP_RESPONSE *res = pem ? PEM_read_bio_OCSP_RESPONSE(bio, NULL, NULL)
: d2i_OCSP_RESPONSE_bio(bio, NULL);
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
if (res)
PUSH_OBJECT(res, "openssl.ocsp_response");
else |
upstream is https://github.com/zhaozg/lua-openssl |
I'm building luvi from the |
If you are still interested, version 2.15.0 restores support for some arm platforms and updates dependencies. Does this work for you? |
@SinisterRectus It does work. I'll be closing this issue. |
Hello, I tried building luvi with shared OpenSSL 3.0, PCRE, and Luv. When cmake tried to build
luvi
, it failed with an error.The build flags.
Is there a work around to have
ld
not to result an error?The text was updated successfully, but these errors were encountered: