BIND 9.16.10 build fails with libmaxminddb-1.4.3
Having compile problems when building BIND 9.16.10 on CentOS 7 with support for GeoIP using MaxMindDB 1.4.3:
./configure --with-openssl=/opt/bind916/openssl --with-maxminddb=/opt/bind916/maxminddb
make
<...snip...>
gcc -std=gnu99 -g -O2 -pthread -fPIC -Wl,--export-dynamic -o resolve \
resolve.o ../irs/libirs.a ../dns/libdns.a -L/opt/bind916/maxminddb/lib ../isccfg/libisccfg.a ../isc/libisc.a -L/opt/bind916/openssl/lib -lcrypto -lxml2 -lz -L/opt/bind916/libuv/lib -luv -ldl -ldl
../dns/libdns.a(geoip2.o): In function `get_entry_for':
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:96: undefined reference to `MMDB_lookup_sockaddr'
../dns/libdns.a(geoip2.o): In function `dns_geoip_match':
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:368: undefined reference to `MMDB_get_value'
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:345: undefined reference to `MMDB_get_value'
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:328: undefined reference to `MMDB_get_value'
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:304: undefined reference to `MMDB_get_value'
/opt/work3/bind-9.16.10/lib/dns/geoip2.c:296: undefined reference to `MMDB_get_value'
collect2: error: ld returned 1 exit status
make[2]: *** [resolve] Error 1
make[2]: Leaving directory `/opt/work3/bind-9.16.10/lib/samples'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/opt/work3/bind-9.16.10/lib'
make: *** [subdirs] Error 1
Edited by Greg Rabil