Closed Whissi closed 7 years ago
You must add 'EVP_chacha20_poly1305' (and 'EVP_chacha20_poly1305_draft' if you are using the latest patch) to openssl.ld file. I've also had to disable tests. Just remove changes to test/Makefile from the patch.
I believe CloudFlare links their servers statically with OpenSSL, so it works for them without those changes :)
Thanks, adding the mentioned methods to the ld file solved the problem.
I can confirm problems with the test suite:
chapolytest.o: In function `main':
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:394: undefined reference to `CRYPTO_chacha_20'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:439: undefined reference to `poly1305_init_x64'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:440: undefined reference to `poly1305_update_avx2'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:441: undefined reference to `poly1305_finish_avx2'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:443: undefined reference to `poly1305_init_x64'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:444: undefined reference to `poly1305_update_x64'
/usr/local/src/openssl-1.0.2g/test/chapolytest.c:445: undefined reference to `poly1305_finish_x64'
collect2: error: ld returned 1 exit status
I am trying to integrate the patch in a custom Debian openssl package. Works fine until linking:
(Ignore the soname)