Uh oh!
There was an error while loading. Please reload this page.
nghttp3_conv: fix call to undeclared functions 'ntohl' and 'htons' - #49979
Conversation
nodejs-github-bot
commented
Sep 30, 2023
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. |
bnoordhuis
commented
Sep 30, 2023
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', |
MatteoBax
commented
Sep 30, 2023
With this patch those problems no longer occur, but now the problems are: |
bnoordhuis
commented
Sep 30, 2023
Covered in #46952. |
MatteoBax
commented
Sep 30, 2023
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 2070ad27a5fc674909f4bbd34e7d862c625fc54b. deps: fix call to undeclared functions 'ntohl' and 'htons'
nodejs-github-bot
commented
Oct 1, 2023
MatteoBax
commented
Oct 1, 2023
What shall I do to fix failed checks? |
nodejs-github-bot
commented
Oct 1, 2023
bnoordhuis
commented
Oct 1, 2023
They're flaky tests. Not much you can do. |
nodejs-github-bot
commented
Oct 1, 2023
nodejs-github-bot
commented
Oct 2, 2023
Landed in 61411bb |
This reverts commit 2070ad27a5fc674909f4bbd34e7d862c625fc54b. deps: fix call to undeclared functions 'ntohl' and 'htons' PR-URL: #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: #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#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