blechschmidt / massdns

A high-performance DNS stub resolver for bulk lookups and reconnaissance (subdomain enumeration)
GNU General Public License v3.0
3.1k stars 459 forks source link

Centos 7 Issue #21

Closed Rhynorater closed 6 years ago

Rhynorater commented 6 years ago
[root@rhynorater massdns]# make
mkdir -p bin
cc  -std=c11 -Wall -fstack-protector-strong *.c -o bin/massdns -lldns -ldl
main.c: In function 'record_from_str':
main.c:129:16: error: 'LDNS_RR_TYPE_CAA' undeclared (first use in this function)
         return LDNS_RR_TYPE_CAA;
                ^
main.c:129:16: note: each undeclared identifier is reported only once for each function it appears in
make: *** [all] Error 1

This is the error I get when I am trying to compile on Centos 7. I have LDNS installed. Any suggestions?

blechschmidt commented 6 years ago

It looks like the ldns-devel package on CentOS is outdated and lacks the LDNS_RR_TYPE_CAA declaration. Instead, remove the ldns-devel package, download ldns from https://www.nlnetlabs.nl/projects/ldns/, extract it and build it from source using ./configure --disable-dane-ta-usage; make install. (This requires openssl-devel to be installed.) Finally, you should be able to build massdns.

Rhynorater commented 6 years ago

I can confirm that this has fixed the issue.