cofyc / dnscrypt-wrapper

This is dnscrypt wrapper (server-side dnscrypt proxy), which helps to add dnscrypt support to any name resolver.
Other
533 stars 74 forks source link

Support for xchacha20: no #154

Open gitbobo opened 6 years ago

gitbobo commented 6 years ago

My server is centos 6, with xchacha20poly1305. When I run ./configure, got error as below: Configuration summary:

Support for event library: yes
Support for sodium library: yes
Support for xchacha20: no

Then I make install,got error as below: CC dnscrypt.o dnscrypt.c: In function ‘dnscrypt_server_uncurve’: dnscrypt.c:298: warning: implicit declaration of function ‘crypto_box_open_easy_afternm’ dnscrypt.c: In function ‘dnscrypt_server_curve’: dnscrypt.c:377: warning: implicit declaration of function ‘crypto_box_easy_afternm’ CC udp_request.o CC tcp_request.o CC edns.o CC logger.o CC rfc1035.o CC safe_rw.o CC cert.o cert.c: In function ‘cert_build_cert’: cert.c:27: warning: implicit declaration of function ‘sodium_increment’ cert.c: In function ‘cert_sign’: cert.c:50: warning: implicit declaration of function ‘crypto_sign_detached’ CC pidfile.o CC debug.o CC fpst.o CC block.o CC main.o main.c: In function ‘filter_signed_certs’: main.c:234: warning: dereferencing type-punned pointer will break strict-aliasing rules main.c:234: warning: dereferencing type-punned pointer will break strict-aliasing rules make[1]: Entering directory /root/dnscrypt-wrapper/argparse' cc -o argparse.o -c -Wall -fPIC -O3 -g -ggdb argparse.c ar rcs libargparse.a argparse.o make[1]: Leaving directory/root/dnscrypt-wrapper/argparse' LINK dnscrypt-wrapper dnscrypt.o: In function dnscrypt_server_uncurve': /root/dnscrypt-wrapper/dnscrypt.c:297: undefined reference tocrypto_box_open_easy_afternm' dnscrypt.o: In function dnscrypt_server_curve': /root/dnscrypt-wrapper/dnscrypt.c:377: undefined reference tocrypto_box_easy_afternm' cert.o: In function cert_build_cert': /root/dnscrypt-wrapper/cert.c:27: undefined reference tosodium_increment' cert.o: In function cert_sign': /root/dnscrypt-wrapper/cert.c:50: undefined reference tocrypto_sign_detached' collect2: ld returned 1 exit status make: *** [dnscrypt-wrapper] Error 1

jedisct1 commented 6 years ago

Your libsodium version is very old. You should use a more recent version.

pysiak commented 6 years ago

Also, I believe you should not use --enable-minimal on libsodium builds if you're building from source to get xchacha20.

On Sat, Jun 16, 2018 at 12:27 PM, Frank Denis notifications@github.com wrote:

Your libsodium version is very old. You should use a more recent version.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cofyc/dnscrypt-wrapper/issues/154#issuecomment-397803324, or mute the thread https://github.com/notifications/unsubscribe-auth/ACSP6RwKvPvoFQ_Lzx8hE-YkhipvCXW-ks5t9N2UgaJpZM4UqVe6 .

-- Pysiak