Open orbea opened 3 months ago
This was also reported for the Gentoo issue tracker.
The proposed patch would be:
--- a/deps/ngtcp2/ngtcp2.gyp
+++ b/deps/ngtcp2/ngtcp2.gyp
@@ -81,7 +81,7 @@
'nghttp3/lib/nghttp3_vec.c',
'nghttp3/lib/nghttp3_version.c',
# sfparse is also used by nghttp2 and is included by nghttp2.gyp
- # 'nghttp3/lib/sfparse.c'
+ 'nghttp3/lib/sfparse.c'
]
},
'targets': [
CC @nodejs/quic
Version
https://github.com/nodejs/node/commit/d172da8d0197a71d473ee879eacd1061b316bdf2
Platform
Subsystem
ngtcp2
What steps will reproduce the bug?
Compile node, some configurations may avoid this issue somehow?
How often does it reproduce? Is there a required condition?
Always on affected systems.
What is the expected behavior? Why is that the expected behavior?
The compile should succeed without undefined references.
What do you see instead?
The build fails with an undefined reference to
sf_parser_dict
when compilingnode_mksnapshot
.Additional information
The missing function is in
deps/ngtcp2/nghttp3/lib/sfparse.c
https://github.com/nodejs/node/blob/d172da8d0197a71d473ee879eacd1061b316bdf2/deps/ngtcp2/nghttp3/lib/sfparse.c#L1023-L1032
This file is commented in
deps/ngtcp2/ngtcp2.gyp
.https://github.com/nodejs/node/blob/d172da8d0197a71d473ee879eacd1061b316bdf2/deps/ngtcp2/ngtcp2.gyp#L83-L84
The simple solution would be to uncomment it.