Closed amitgeron closed 5 years ago
You could try commenting out this line: https://github.com/NTAP/quant/blob/master/CMakeLists.txt#L110
If you felt like it, send me a PR that does this programmatically, e.g., based on https://stackoverflow.com/questions/26919334/detect-underlying-platform-flavour-in-cmake? I don't have easy access to a CentOS system.
Thanks for your response!
I suspect that the issue was with GCC, being an old version (4.8.5) on CentOS 7. I built a new GCC from sources (9.1.0), but now I get a different error: /home/amit/quant/lib/src/tls.c:1305:35: error: ‘ptls_openssl_x25519’ undeclared (first use in this function); did you mean ‘ptls_openssl_bfecb’?
Meanwhile, I'm installing Ubuntu 18.04.
Attaching the full build log: build.log
You need a modern openssl with x25519 support. 1.1+ I think.
True. I built and installed version 1.1.0k, and now all is good.
My cmake command:
cmake -DOPENSSL_INCLUDE_DIR=/usr/local/include -DOPENSSL_SSL_LIBRARY=/usr/local/lib64/libssl.so -DOPENSSL_CRYPTO_LIBRARY=/usr/local/lib64/libcrypto.so ..
Do you think that version checks for GCC and OpenSSL should be added? (Actually there's a test for OpenSSL version at https://github.com/h2o/picotls/blob/c3f6afd481a748f3de876dc86bc03dc0dbe5cb5d/CMakeLists.txt#L49)
I think that would be useful - feel free to submit a PR?
For OpenSSL I know the exact version (1.1.0), but for GCC I don't. I will submit a patch for OpenSSL.
Hi,
Trying to build on my machine (CentOS Linux release 7.6.1810 (Core)) fails:
Any suggestions? Thanks