Undefined references in `dotest`
On Debian stretch 9.6 I get this error in make
:
make all-am
make[1]: Entering directory '/home/sebastianw/DNS-Compliance-Testing'
CC genreport.o
CCLD genreport
genreport.o: In function `dotest':
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1629: undefined reference to `HMAC_CTX_new'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1632: undefined reference to `EVP_sha256'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1632: undefined reference to `HMAC_Init_ex'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1733: undefined reference to `HMAC_CTX_free'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1634: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1640: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1649: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1663: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1677: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1679: undefined reference to `HMAC_Final'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:1687: undefined reference to `HMAC_CTX_free'
genreport.o: In function `process':
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2573: undefined reference to `HMAC_CTX_new'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2577: undefined reference to `EVP_sha256'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2577: undefined reference to `HMAC_Init_ex'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2583: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2586: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2592: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2597: undefined reference to `HMAC_Update'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2602: undefined reference to `HMAC_Update'
genreport.o:/home/sebastianw/DNS-Compliance-Testing/genreport.c:2606: more undefined references to `HMAC_Update' follow
genreport.o: In function `process':
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2620: undefined reference to `HMAC_Final'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2622: undefined reference to `HMAC_CTX_free'
/home/sebastianw/DNS-Compliance-Testing/genreport.c:2846: undefined reference to `HMAC_CTX_free'
collect2: error: ld returned 1 exit status
Makefile:382: recipe for target 'genreport' failed
make[1]: *** [genreport] Error 1
make[1]: Leaving directory '/home/sebastianw/DNS-Compliance-Testing'
Makefile:286: recipe for target 'all' failed
make: *** [all] Error 2
The executables are built fine however. Maybe a missing -lssl
or -lcrypto
somewhere?