~/src/unbound/unbound-1.6.7$ make ./libtool --tag=CC --mode=compile gcc -I. -I/usr/include/nettle -g -O2 -flto -pthread -o cachedump.lo -c daemon/cachedump.c libtool: compile: gcc -I. -I/usr/include/nettle -g -O2 -flto -pthread -c daemon/cachedump.c -fPIC -DPIC -o .libs/cachedump.o In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from daemon/cachedump.c:43: /usr/include/openssl/sha.h:191:3: error: conflicting types for ‘SHA512_CTX’ } SHA512_CTX; ^ In file included from daemon/cachedump.c:42:0: ./config.h:1164:3: note: previous declaration of ‘SHA512_CTX’ was here } SHA512_CTX; ^ In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from daemon/cachedump.c:43: /usr/include/openssl/sha.h:203:5: error: conflicting types for ‘SHA512_Init’ int SHA512_Init(SHA512_CTX *c); ^ In file included from daemon/cachedump.c:42:0: ./config.h:1166:6: note: previous declaration of ‘SHA512_Init’ was here void SHA512_Init(SHA512_CTX*); ^ In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from daemon/cachedump.c:43: /usr/include/openssl/sha.h:204:5: error: conflicting types for ‘SHA512_Update’ int SHA512_Update(SHA512_CTX *c, const void *data, size_t len); ^ In file included from daemon/cachedump.c:42:0: ./config.h:1167:6: note: previous declaration of ‘SHA512_Update’ was here void SHA512_Update(SHA512_CTX*, void*, size_t); ^ In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from daemon/cachedump.c:43: /usr/include/openssl/sha.h:205:5: error: conflicting types for ‘SHA512_Final’ int SHA512_Final(unsigned char *md, SHA512_CTX *c); ^ In file included from daemon/cachedump.c:42:0: ./config.h:1168:6: note: previous declaration of ‘SHA512_Final’ was here void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*); ^ In file included from /usr/include/openssl/x509.h:107:0, from /usr/include/openssl/ssl.h:156, from daemon/cachedump.c:43: /usr/include/openssl/sha.h:206:16: error: conflicting types for ‘SHA512’ unsigned char *SHA512(const unsigned char *d, size_t n, unsigned char *md); ^ In file included from daemon/cachedump.c:42:0: ./config.h:1169:16: note: previous declaration of ‘SHA512’ was here unsigned char *SHA512(void* data, unsigned int data_len, unsigned char *digest); ^ daemon/cachedump.c: In function ‘dump_rrset_line’: daemon/cachedump.c:69:10: warning: implicit declaration of function ‘ssl_printf’ [-Wimplicit-function-declaration] return ssl_printf(ssl, "BADRR\n"); ^ daemon/cachedump.c: In function ‘ssl_read_buf’: daemon/cachedump.c:306:9: warning: implicit declaration of function ‘ssl_read_line’ [-Wimplicit-function-declaration] return ssl_read_line(ssl, (char*)sldns_buffer_begin(buf), ^ Makefile:282: recipe for target 'cachedump.lo' failed make: *** [cachedump.lo] Error 1