Hi, I try to build squid3.3.5 with ./configure --disable-internal-dns on Ubuntu Server 12.04 and Fedora 18, it throw the same error:
dns.cc: In function ‘variable_list* snmp_netDnsFn(variable_list*, snint*)’: dns.cc:150:5: error: ‘snmpDebugOid’ was not declared in this scope The snmpDebugOid fucntion is defined in snmp_core.h, but it is not included in src/dns.cc. Zhanpeng Chen === modified file 'src/dns.cc' --- src/dns.cc 2012-11-27 21:19:46 +0000 +++ src/dns.cc 2013-06-04 13:41:22 +0000 @@ -40,6 +40,10 @@ #include "Store.h" #include "wordlist.h" +#if SQUID_SNMP +#include "snmp_core.h" +#endif + /* MS VisualStudio Projects are monolitich, so we need the following #if to include the external DNS code in compile process when using external DNS.