-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
nghttp3_conv: fix call to undeclared functions 'ntohl' and 'htons' #49979
Conversation
Review requested:
|
This should be unnecessary as I believe this was already fixed upstream in v0.12.0. Our copy of nghttp3 just needs to be upgraded. |
That's not a proper fix, it possibly doesn't even produce a functional build. Can you try this patch? diff --git a/deps/ngtcp2/ngtcp2.gyp b/deps/ngtcp2/ngtcp2.gyp
index a47a791610..fd6eaddb01 100644
--- a/deps/ngtcp2/ngtcp2.gyp
+++ b/deps/ngtcp2/ngtcp2.gyp
@@ -112,7 +112,7 @@
},
},
}],
- ['OS=="linux"', {
+ ['OS in "android linux"', {
'defines': [
'HAVE_ARPA_INET_H',
'HAVE_NETINET_IN_H',
@@ -162,7 +162,7 @@
},
},
}],
- ['OS=="linux"', {
+ ['OS in "android linux"', {
'defines': [
'HAVE_ARPA_INET_H',
'HAVE_NETINET_IN_H', |
With this patch those problems no longer occur, but now the problems are:
|
Covered in #46952. |
Ok. I revert the changes and applied the patch. Instead of using 'OS in "android linux"' I used 'OS=="linux" or OS=="android"' but I think it's the same thing. |
This reverts commit 2070ad2. deps: fix call to undeclared functions 'ntohl' and 'htons'
What shall I do to fix failed checks? |
They're flaky tests. Not much you can do. |
Landed in 61411bb |
This reverts commit 2070ad2. deps: fix call to undeclared functions 'ntohl' and 'htons' PR-URL: nodejs#49979 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <rlau@redhat.com>
This reverts commit 2070ad2. deps: fix call to undeclared functions 'ntohl' and 'htons' PR-URL: nodejs#49979 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <rlau@redhat.com>
This reverts commit 2070ad27a5fc674909f4bbd34e7d862c625fc54b. deps: fix call to undeclared functions 'ntohl' and 'htons' PR-URL: nodejs/node#49979 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <rlau@redhat.com>
This reverts commit 2070ad27a5fc674909f4bbd34e7d862c625fc54b. deps: fix call to undeclared functions 'ntohl' and 'htons' PR-URL: nodejs/node#49979 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <rlau@redhat.com>
I don't think it's the right method but this solves these errors when compiling for Android arm64:
I added -Wno-implicit-function-declaration option to cflags