nghttp3_conv: fix call to undeclared functions 'ntohl' and 'htons'#49979
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Oct 2, 2023
MatteoBax:main
Merged
nghttp3_conv: fix call to undeclared functions 'ntohl' and 'htons'#49979nodejs-github-bot merged 1 commit intonodejs:mainfrom MatteoBax:main
nodejs-github-bot merged 1 commit intonodejs:mainfrom
MatteoBax:main
Conversation
Collaborator
|
Review requested:
|
Contributor
|
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. |
Member
|
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', |
Contributor
Author
With this patch those problems no longer occur, but now the problems are: |
Member
|
Covered in #46952. |
Contributor
Author
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'
Collaborator
bnoordhuis
approved these changes
Oct 1, 2023
Contributor
Author
|
What shall I do to fix failed checks? |
Collaborator
Member
|
They're flaky tests. Not much you can do. |
Collaborator
richardlau
approved these changes
Oct 1, 2023
12 tasks
Collaborator
|
Landed in 61411bb |
This was referenced Oct 3, 2023
alexfernandez
pushed a commit
to alexfernandez/node
that referenced
this pull request
Nov 1, 2023
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>
debadree25
pushed a commit
to debadree25/node
that referenced
this pull request
Apr 15, 2024
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>
sercher
added a commit
to sercher/graaljs
that referenced
this pull request
Apr 25, 2024
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>
sercher
added a commit
to sercher/graaljs
that referenced
this pull request
Apr 25, 2024
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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