Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ngtcp2/ngtcp2_crypto.h: No such file or directory[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Fri Jan 03, 2025 11:45 am    Post subject: ngtcp2/ngtcp2_crypto.h: No such file or directory[solved] Reply with quote

I'm trying to emerge konqueror which relies on nodejs, nodejs package fails with:
Code:
ninja: job failed: x86_64-pc-linux-gnu-g++ -MMD -MF obj/src/quic/libnode.sessionticket.o.d -D_GLIBCXX_USE_CXX11_ABI=1 -DNODE_OPENSSL_CONF_NAME=nodejs_conf -DNODE_OPENSSL_HAS_QUIC -DICU_NO_USER_DATA_OVERRIDE -D__STDC_FORMAT_MACROS -DOPENSSL_NO_PINSHARED -DOPENSSL_THREADS '-DNODE_ARCH="x64"' '-DNODE_PLATFORM="linux"' -DNODE_WANT_INTERNALS=1 -DV8_DEPRECATION_WARNINGS=1 '-DNODE_OPENSSL_SYSTEM_CERT_PATH=""' -DSQLITE_ENABLE_SESSION -DHAVE_INSPECTOR=0 -DNODE_ENABLE_LARGE_CODE_PAGES=1 -D__POSIX__ -DNODE_USE_V8_PLATFORM=1 -DNODE_V8_SHARED_RO_HEAP -DHAVE_OPENSSL=1 -DOPENSSL_API_COMPAT=0x10100000L -DHAVE_AMARO=1 -DNDEBUG -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_BUILDING_OPENSSL -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPADLOCK_ASM -DPOLY1305_ASM -DRC4_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -DOPENSSL_PIC -DNGHTTP3_STATICLIB -I../../src -I../../deps/postject -Igen -I../../deps/googletest/include -I../../deps/histogram/src -I../../deps/histogram/include -I../../deps/simdjson -I../../deps/simdutf -I../../deps/ada -I../../deps/nbytes/include -I../../deps/ncrypto -I../../deps/v8/include -I../../deps/llhttp/include -I../../deps/uvwasi/include -I../../deps/openssl/openssl/include -I../../deps/openssl/openssl/crypto/include -I../../deps/openssl/config/archs/linux-x86_64/asm/include -I../../deps/openssl/config/archs/linux-x86_64/asm -I../../deps/ngtcp2/nghttp3/lib/includes -Wall -Wextra -Wno-unused-parameter -Wno-restrict -pthread -Wall -Wextra -Wno-unused-parameter -Werror=unused-result -m64 -fno-omit-frame-pointer -fomit-frame-pointer -O2 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=18432 -fno-tree-vectorize -fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20  -c ../../src/quic/sessionticket.cc -o obj/src/quic/libnode.sessionticket.o
../../src/quic/sessionticket.cc:6:10: fatal error: ngtcp2/ngtcp2_crypto.h: No such file or directory
    6 | #include <ngtcp2/ngtcp2_crypto.h>


build log:
https://p.defau.lt/?_qACKJlriuFkR4VA9QAQ8g
emerge pqv:
https://p.defau.lt/?OylGdxbvb3fCzszQ519XZA
emerge info:
https://p.defau.lt/?uRocK20wrM5sRGJkxV00Cg
I understand this file belongs to ngtcp2 package but it's not there, I tried to enable the ssl use flag on that package thinking it might be the issue but konqueror requires i emerge this package without the gnutls useflag(which is required by the ssl use flag) :
Code:
The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by net-libs/nodejs-22.12.0::gentoo[-system-ssl]
# required by dev-qt/qtwebengine-6.8.1::gentoo
# required by kde-apps/konqueror-24.12.0::gentoo
# required by konqueror (argument)
>=net-libs/ngtcp2-1.10.0 -gnutls


Code:
t14 ~ # equery f        net-libs/ngtcp2
 * Searching for ngtcp2 in net-libs ...
 * Contents of net-libs/ngtcp2-1.10.0:
/usr
/usr/include
/usr/include/ngtcp2
/usr/include/ngtcp2/ngtcp2.h
/usr/include/ngtcp2/version.h
/usr/lib
/usr/lib/cmake
/usr/lib/cmake/ngtcp2
/usr/lib/cmake/ngtcp2/ngtcp2Config.cmake
/usr/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake
/usr/lib/cmake/ngtcp2/ngtcp2Targets-relwithdebinfo.cmake
/usr/lib/cmake/ngtcp2/ngtcp2Targets.cmake
/usr/lib/libngtcp2.a
/usr/lib/libngtcp2.so -> libngtcp2.so.16
/usr/lib/libngtcp2.so.16 -> libngtcp2.so.16.2.8
/usr/lib/libngtcp2.so.16.2.8
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libngtcp2.pc
/usr/lib64
/usr/lib64/libngtcp2.a
/usr/lib64/libngtcp2.so -> libngtcp2.so.16
/usr/lib64/libngtcp2.so.16 -> libngtcp2.so.16.2.8
/usr/lib64/libngtcp2.so.16.2.8
/usr/lib64/pkgconfig
/usr/lib64/pkgconfig/libngtcp2.pc


Last edited by Adel Ahmed on Fri Jan 03, 2025 2:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2067

PostPosted: Fri Jan 03, 2025 11:51 am    Post subject: Reply with quote

ngtcp2 requires either openssl or gnutls be set for USE=ssl.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Fri Jan 03, 2025 12:06 pm    Post subject: Reply with quote

gnutls cannot be used as that's the requirement of konqueror
openssl seems to be masked:
Code:
[ebuild   R    ] net-libs/ngtcp2-1.10.0::gentoo  USE="gnutls* ssl* static-libs (-openssl) -test" ABI_X86="32 (64) (-x32)" 0 KiB
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2067

PostPosted: Fri Jan 03, 2025 12:08 pm    Post subject: Reply with quote

The requirement comes from nodejs with USE=-system-ssl.
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1584

PostPosted: Fri Jan 03, 2025 2:35 pm    Post subject: Reply with quote

oh, completely missed that, thanks sam
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum