From: Amos Jeffries Date: Thu, 9 Oct 2008 14:28:01 +0000 (+1300) Subject: Fix link errors X-Git-Tag: SQUID_3_2_0_1~1398^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=663ff9aa2af80c82bbd8ceae0cb98bb1c12a9f27;p=thirdparty%2Fsquid.git Fix link errors --- diff --git a/configure.in b/configure.in index 45bfd2af05..e3665a96f7 100755 --- a/configure.in +++ b/configure.in @@ -3715,6 +3715,7 @@ AC_CONFIG_FILES([\ src/auth/Makefile \ src/adaptation/Makefile \ src/ICAP/Makefile \ + src/icmp/Makefile \ src/eCAP/Makefile \ contrib/Makefile \ snmplib/Makefile \ diff --git a/src/Debug.h b/src/Debug.h index 9d0aa7f7a5..9d0293ba6e 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -78,6 +78,8 @@ private: static int TheDepth; // level of nested debugging calls }; +extern FILE *debug_log; + /* Debug stream */ #define debugs(SECTION, LEVEL, CONTENT) \ do { \ diff --git a/src/Makefile.am b/src/Makefile.am index 15b5fa298d..2472d4581e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -566,7 +566,6 @@ squid_SOURCES = \ mime.cc \ multicast.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Packer.h \ Parsing.cc \ @@ -853,7 +852,6 @@ ufsdump_SOURCES = \ mime.cc \ multicast.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ $(XPROF_STATS_SOURCE) \ @@ -1393,7 +1391,6 @@ tests_testCacheManager_SOURCES = \ MemObject.cc \ mime.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ pconn.cc \ @@ -1568,7 +1565,6 @@ tests_testEvent_SOURCES = \ MemObject.cc \ mime.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ pconn.cc \ @@ -1725,7 +1721,6 @@ tests_testEventLoop_SOURCES = \ MemObject.cc \ mime.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ pconn.cc \ @@ -1873,7 +1868,6 @@ tests_test_http_range_SOURCES = \ mime.cc \ multicast.cc \ neighbors.cc \ - net_db.cc \ Parsing.cc \ peer_digest.cc \ peer_select.cc \ @@ -2033,7 +2027,6 @@ tests_testHttpRequest_SOURCES = \ MemObject.cc \ mime.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ pconn.cc \ @@ -2381,7 +2374,6 @@ tests_testURL_SOURCES = \ MemObject.cc \ mime.cc \ neighbors.cc \ - net_db.cc \ Packer.cc \ Parsing.cc \ pconn.cc \ diff --git a/src/comm.cc b/src/comm.cc index 3652667ac4..d1257cfd87 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1515,6 +1515,7 @@ void comm_close_start(int fd, void *data) { #if USE_SSL + fde *F = &fd_table[fd]; if (F->ssl) ssl_shutdown_method(fd); diff --git a/src/debug.cc b/src/debug.cc index 25d15ee06b..0a7fdb20cf 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -40,7 +40,7 @@ int Debug::Levels[MAX_DEBUG_SECTIONS]; int Debug::level; - +FILE *debug_log = NULL; static char *debug_log_file = NULL; static int Ctx_Lock = 0; static const char *debugLogTime(void); diff --git a/src/globals.h b/src/globals.h index 3af974ff11..aaeacb8955 100644 --- a/src/globals.h +++ b/src/globals.h @@ -50,7 +50,7 @@ extern "C" { #endif - extern FILE *debug_log; /* NULL */ +//MOVED:Debug.h extern FILE *debug_log; /* NULL */ //MOVED:structs.h extern SquidConfig Config; //MOVED:structs.h extern SquidConfig2 Config2; extern char *ConfigFile; /* NULL */ diff --git a/src/pinger.cc b/src/icmp/pinger.cc similarity index 98% rename from src/pinger.cc rename to src/icmp/pinger.cc index 5aa9a78622..8be6bb3369 100644 --- a/src/pinger.cc +++ b/src/icmp/pinger.cc @@ -68,9 +68,9 @@ #if USE_ICMP -#include "ICMPv4.h" -#include "ICMPv6.h" -#include "ICMPPinger.h" +#include "Icmp4.h" +#include "Icmp6.h" +#include "IcmpPinger.h" #ifdef _SQUID_MSWIN_ @@ -107,10 +107,10 @@ Win32__WSAFDIsSet(int fd, fd_set FAR * set) #endif /* _SQUID_MSWIN_ */ // ICMP Engines are declared global here so they can call each other easily. -ICMPPinger control; -ICMPv4 icmp4; +IcmpPinger control; +Icmp4 icmp4; #if USE_IPV6 -ICMPv6 icmp6; +Icmp6 icmp6; #endif int icmp_pkts_sent = 0; diff --git a/src/structs.h b/src/structs.h index ba763e7ed1..cdb36706cd 100644 --- a/src/structs.h +++ b/src/structs.h @@ -130,7 +130,7 @@ struct relist #endif #if USE_ICMP -#include "ICMPConfig.h" +#include "icmp/IcmpConfig.h" #endif /* forward decl for SquidConfig, see RemovalPolicy.h */ @@ -259,7 +259,7 @@ struct SquidConfig #endif #if USE_ICMP - ICMPConfig pinger; + IcmpConfig pinger; #endif char *as_whois_server;