[PATCH] Fix configure with --disable-internal-dns compile error

From: lowstz <lowstz_at_gmail.com>
Date: Thu, 6 Jun 2013 12:24:39 +0800

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.
Received on Thu Jun 06 2013 - 04:25:08 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 07 2013 - 12:00:13 MDT