I kept coming across this error when trying to follow a guide for configuring bind with geodns.
The following from pingbin.com/2011/01/bind-with-geoip-error solved the issue with cc!
The fix for my system was open the following file:
Add the following line, which defines where to find "libGeoIP.so*"
Finally run this command to refresh:
Then you should be all set to go, using something like the following:
CFLAGS="-I/usr/local/geoip/include" LDFLAGS="-L/usr/local/geoip/lib -lGeoIP" ./configure --prefix=/usr/local/bind
Hopefully this helps some people. Please view the full content on