Open nak3 opened 1 month ago
When buidling LibreSSL + picotls with -Wundef option, the build fails due to the following error.
-Wundef
2024-06-16T05:50:37.9131759Z In file included from /home/runner/work/ngtcp2/ngtcp2/ngtcp2-1.6.0-DEV/crypto/picotls/picotls.c:36: 2024-06-16T05:50:37.9134332Z /home/runner/work/ngtcp2/ngtcp2/picotls-libressl/include/picotls/openssl.h:91:5: error: 'PTLS_OPENSSL_HAVE_CHACHA20_POLY1305' is not defined, evaluates to 0 [-Werror,-Wundef] 2024-06-16T05:50:37.9136125Z #if PTLS_OPENSSL_HAVE_CHACHA20_POLY1305 2024-06-16T05:50:37.9136719Z ^ 2024-06-16T05:50:37.9138515Z /home/runner/work/ngtcp2/ngtcp2/picotls-libressl/include/picotls/openssl.h:108:5: error: 'PTLS_OPENSSL_HAVE_CHACHA20_POLY1305' is not defined, evaluates to 0 [-Werror,-Wundef] 2024-06-16T05:50:37.9140294Z #if PTLS_OPENSSL_HAVE_CHACHA20_POLY1305 2024-06-16T05:50:37.9141272Z ^ 2024-06-16T05:50:37.9143043Z /home/runner/work/ngtcp2/ngtcp2/picotls-libressl/include/picotls/openssl.h:119:5: error: 'PTLS_OPENSSL_HAVE_X25519' is not defined, evaluates to 0 [-Werror,-Wundef] 2024-06-16T05:50:37.9144740Z #if PTLS_OPENSSL_HAVE_X25519 2024-06-16T05:50:37.9145253Z ^ 2024-06-16T05:50:37.9147028Z /home/runner/work/ngtcp2/ngtcp2/picotls-libressl/include/picotls/openssl.h:127:5: error: 'PTLS_OPENSSL_HAVE_CHACHA20_POLY1305' is not defined, evaluates to 0 [-Werror,-Wundef] 2024-06-16T05:50:37.9148787Z #if PTLS_OPENSSL_HAVE_CHACHA20_POLY1305 2024-06-16T05:50:37.9149365Z ^ 2024-06-16T05:50:37.9221836Z 4 errors generated. 2024-06-16T05:50:37.9278275Z make[2]: *** [crypto/picotls/CMakeFiles/ngtcp2_crypto_picotls_static.dir/build.make:76: crypto/picotls/CMakeFiles/ngtcp2_crypto_picotls_static.dir/picotls.c.o] Error 1 2024-06-16T05:50:37.9280880Z make[1]: *** [CMakeFiles/Makefile2:553: crypto/picotls/CMakeFiles/ngtcp2_crypto_picotls_static.dir/all] Error 2
This patch fixes them.
When buidling LibreSSL + picotls with
-Wundef
option, the build fails due to the following error.This patch fixes them.