]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix all build errors non-ZPH builds
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 9 Jan 2009 13:12:24 +0000 (02:12 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 9 Jan 2009 13:12:24 +0000 (02:12 +1300)
13 files changed:
Makefile.am
src/ACLIP.cc
src/ACLIP.h
src/Makefile.am
src/SquidTime.h
src/cf.data.depend
src/cf.data.pre
src/cf_gen.cc
src/ip/IpAddress.cc
src/ip/IpIntercept.cc
src/ip/IpIntercept.h
src/ip/Makefile.am
tools/Makefile.am

index ff3a26b9368f916575d1ad7cfe61ffe726a40ed5..f90fc200bbff643ec678dd73a7df5e6604b8504f 100644 (file)
@@ -1,11 +1,9 @@
 ## Process this file with automake to produce Makefile.in
 #
-# $Id: Makefile.am,v 1.27 2006/05/11 01:36:57 hno Exp $
-#
 
 AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign
 DIST_SUBDIRS   = lib snmplib scripts src icons errors contrib doc helpers test-suite tools
-SUBDIRS                = lib @makesnmplib@ scripts src icons errors doc helpers test-suite tools
+SUBDIRS                = lib @makesnmplib@ scripts src/ip src icons errors doc helpers test-suite tools
 
 DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
 DEFAULT_PINGER         = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
index 6ce3f27c087e945e31d6f532af06bd2efe36906e..0e44e903cbe3df2bf071bdf121eeda2e17e39ab5 100644 (file)
@@ -462,4 +462,4 @@ ACLIP::match(IpAddress &clientip)
 
 acl_ip_data::acl_ip_data () :addr1(), addr2(), mask(), next (NULL) {}
 
-acl_ip_data::acl_ip_data (IpAddress const &anAddress1, IpAddress const &anAddress2, IPAddress const &aMask, acl_ip_data *aNext) : addr1(anAddress1), addr2(anAddress2), mask(aMask), next(aNext) {}
+acl_ip_data::acl_ip_data (IpAddress const &anAddress1, IpAddress const &anAddress2, IpAddress const &aMask, acl_ip_data *aNext) : addr1(anAddress1), addr2(anAddress2), mask(aMask), next(aNext) {}
index a0fc76260f13094edaf20e3e3b177498520c685e..74f89757570ae40890845c410f099493acdc8054 100644 (file)
@@ -47,7 +47,7 @@ public:
 
     acl_ip_data ();
 
-    acl_ip_data (IpAddress const &, IpAddress const &, IPAddress const &, acl_ip_data *);
+    acl_ip_data (IpAddress const &, IpAddress const &, IpAddress const &, acl_ip_data *);
     void toStr(char *buf, int len) const;
 
     IpAddress addr1;
index 1bc4044d2969d0594d7885ac918a216dd29d1f1c..9e16c4ebb2884e471806e6e9a626a336aa277d30 100644 (file)
@@ -1,8 +1,6 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.am,v 1.201 2008/02/26 00:19:29 rousskov Exp $
-#
 #  Uncomment and customize the following to suit your needs:
 #
 
@@ -247,11 +245,18 @@ cf_gen_SOURCES = \
        cf_gen.cc \
        defines.h \
        debug.cc \
-       ip/stubQosConfig.cc \
        time.cc
 
 nodist_cf_gen_SOURCES = globals.cc
 nodist_cf_gen_HEADER = cf_gen_defines.h
+cf_gen_LDADD= \
+       libsquid.la \
+       libauth.la \
+       ip/libip.la \
+       -L../lib -lmiscutil \
+       @XTRA_LIBS@ \
+       @EPOLL_LIBS@ \
+       @MINGW_LIBS@
 cf_gen.$(OBJEXT): cf_gen_defines.h
 
 all_FSMODULES = \
@@ -747,8 +752,8 @@ recv_announce_SOURCES = recv-announce.cc SquidNew.cc
 ## client_db wants SNMP_SOURCE
 ## snmp_core wants ACLStringData
 ## SwapDir wants ConfigOption
-## tools.cc wants libip.la
-## client_side.cc wants libip.la
+## tools.cc wants ip/libip.la
+## client_side.cc wants ip/libip.la
 ufsdump_SOURCES = \
        debug.cc \
        int.cc \
@@ -958,7 +963,7 @@ sysconf_DATA = \
 data_DATA = \
        mib.txt
 
-LDADD = libsquid.la libauth.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
+LDADD = libsquid.la libauth.la ip/libip.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
 
 EXTRA_DIST = \
        cf_gen_defines \
@@ -1217,7 +1222,6 @@ tests_testAuth_SOURCES = \
        tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc mem.cc \
        MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
        HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
-       ip/stubQosConfig.cc \
        StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
        tests/stub_MemObject.cc mem_node.cc \
@@ -1243,6 +1247,7 @@ nodist_tests_testAuth_SOURCES = \
 tests_testAuth_LDADD= \
        libsquid.la \
        libauth.la \
+       ip/libip.la \
        @AUTH_LINKOBJS@ @AUTH_OBJS@ \
        -L../lib -lmiscutil \
        @REGEXLIB@ \
@@ -1294,7 +1299,6 @@ tests_testACLMaxUserIP_SOURCES= \
        mem_node.cc \
        Packer.cc \
        Parsing.cc \
-       ip/stubQosConfig.cc \
        StatHist.cc \
        stmem.cc \
        String.cc \
@@ -1317,6 +1321,7 @@ nodist_tests_testACLMaxUserIP_SOURCES= \
 tests_testACLMaxUserIP_LDADD= \
        libsquid.la \
        libauth.la \
+       ip/libip.la \
        -L../lib -lmiscutil \
        @REGEXLIB@ \
        @SQUID_CPPUNIT_LIBS@ \
@@ -1506,6 +1511,7 @@ tests_testDiskIO_SOURCES = \
 nodist_tests_testDiskIO_SOURCES= \
        $(SWAP_TEST_GEN_SOURCES)
 tests_testDiskIO_LDADD = \
+       ip/libip.la \
        @DISK_LIBS@ \
        $(SWAP_TEST_LDADD) \
        SquidConfig.o
@@ -2215,6 +2221,7 @@ nodist_tests_testStore_SOURCES= \
 tests_testStore_LDADD= \
        libsquid.la \
        libauth.la \
+       ip/libip.la \
        -L../lib -lmiscutil \
        @REGEXLIB@ \
        @SQUID_CPPUNIT_LIBS@ \
@@ -2227,7 +2234,6 @@ tests_testStore_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
 # libsquid pulls in SquidConfig and children. stub them.
 tests_testString_SOURCES = \
        mem.cc \
-       ip/stubQosConfig.cc \
        String.cc \
        tests/testMain.cc \
        tests/testString.cc \
@@ -2238,6 +2244,7 @@ nodist_tests_testString_SOURCES = \
        $(TESTSOURCES)
 tests_testString_LDADD = \
        libsquid.la \
+       ip/libip.la \
        -L../lib -lmiscutil \
        @REGEXLIB@ \
        @SQUID_CPPUNIT_LIBS@ \
@@ -2309,6 +2316,7 @@ nodist_tests_testUfs_SOURCES = \
        $(SWAP_TEST_GEN_SOURCES)
 tests_testUfs_LDADD = \
        libsquid.la \
+       ip/libip.la \
        $(SWAP_TEST_LDADD) \
        @SSLLIB@
 tests_testUfs_LDFLAGS = $(LIBADD_DL)
index 21dbe11c4b09c3c0fc6439d4c319712cd081e05e..b9a3d43f40dd742b427a5b7037e8e2a49955b5e3 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id: SquidTime.h,v 1.4 2007/12/14 23:11:45 amosjeffries Exp $
- *
  * DEBUG: section 21    Time Functions
  * AUTHOR: Harvest Derived
  *
 #ifndef   SQUID_TIME_H
 #define   SQUID_TIME_H
 
-#include "squid.h"
+#include "config.h"
+
+#if HAVE_TIME_H
+#include <time.h>
+#endif
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
 
 /* globals for accessing time */
 extern struct timeval current_time;
index 6a459ccb772da7c8162996598ef742902a67a2c5..bb2754d77e451d427c1de9daa42e4b18e5c09172 100644 (file)
@@ -42,7 +42,7 @@ QosConfig
 refreshpattern
 removalpolicy
 size_t
-IPAddress_list
+IpAddress_list
 string
 string
 time_t
index 9777ca777b22b1171d813d962c846e77d99f2ea9..16ecdf8014ff9011d01f4948bec0452cbce7191f 100644 (file)
@@ -4024,7 +4024,7 @@ DOC_START
 DOC_END
 
 NAME: wccp2_router
-TYPE: IPAddress_list
+TYPE: IpAddress_list
 LOC: Config.Wccp2.router
 DEFAULT: none
 IFDEF: USE_WCCPv2
index 587f7c74a7c7a98f8ade3c0a7e56e3ec4e0c0fcd..d3a991321ce0345ac1c39cbca966325f62f84c3f 100644 (file)
@@ -1,7 +1,4 @@
-
 /*
- * $Id: cf_gen.cc,v 1.62 2007/09/17 20:21:23 hno Exp $
- *
  * DEBUG: none          Generate squid.conf.default and cf_parser.h
  * AUTHOR: Max Okumoto
  *
  *                      administrator.
  *****************************************************************************/
 
-#include "squid.h"
-#include "SquidTime.h"
+//#include "squid.h"
+#include "config.h"
+#include "assert.h"
+//#include "SquidTime.h"
 #include "cf_gen_defines.h"
+#include "util.h"
+
+#if HAVE_STRING_H
+#include <string.h>
+#endif
+#if HAVE_STRING_H
+#include <ctype.h>
+#endif
 
 #define MAX_LINE       1024    /* longest configuration line */
 #define _PATH_PARSER           "cf_parser.h"
index 5477e6a58da30baf701b34c773b41d742487d954..f9f3a174499412486e1a79bc6672da359a80652f 100644 (file)
@@ -466,7 +466,7 @@ bool IpAddress::GetReverseString(char buf[MAX_IPSTRLEN], int show_type) const
     return false;
 }
 
-IpAddress& IpAddress::operator =(const IPAddress &s)
+IpAddress& IpAddress::operator =(const IpAddress &s)
 {
     memcpy(this, &s, sizeof(IpAddress));
     return *this;
@@ -642,19 +642,19 @@ IpAddress& IpAddress::operator =(struct in6_addr const &s)
 
 #endif
 
-IpAddress::IpAddress(const IPAddress &s)
+IpAddress::IpAddress(const IpAddress &s)
 {
     SetEmpty();
     operator=(s);
 }
 
-IpAddress::IpAddress(IPAddress *s)
+IpAddress::IpAddress(IpAddress *s)
 {
     SetEmpty();
     operator=(s);
 }
 
-IpAddress& IpAddress::operator =(IPAddress *s)
+IpAddress& IpAddress::operator =(IpAddress *s)
 {
     IpAddress *tmp = NULL;
     if (!s) return *this;
index c37f74491aba5baab17a175fe955df3e9679b032..8120c4ff1165ea78cb267d4f972db712e386ed77 100644 (file)
@@ -196,7 +196,7 @@ IpIntercept::IpfwInterception(int fd, const IpAddress &me, IpAddress &dst, int s
 }
 
 int
-IpIntercept::NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IPAddress &client, IPAddress &dst)
+IpIntercept::NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IpAddress &client, IpAddress &dst)
 {
 #if IPF_TRANSPARENT  /* --enable-ipf-transparent */
     client = me;
index fe38eeb65041daa0a8942195f894ba1c2a6d2d3a..8e459a27ec98d74d269197338bbcdaf804268dbc 100644 (file)
@@ -27,7 +27,7 @@ public:
     ~IpIntercept() {};
 
     /** Perform NAT lookups */
-    int NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IPAddress &client, IPAddress &dst);
+    int NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IpAddress &client, IpAddress &dst);
 
 #if LINUX_TPROXY2
     // only relevant to TPROXY v2 connections.
index 2acb99912fb3a921974e22cabb8a86daf9184492..e36db69f4b9897d9598344359add5546e7559b4f 100644 (file)
@@ -47,6 +47,7 @@ nodist_testIpAddress_SOURCES= \
        ../tests/testMain.cc
 testIpAddress_LDADD= \
        libip.la \
+       -L$(top_builddir)/lib -lmiscutil \
        @SQUID_CPPUNIT_LA@ \
        @SQUID_CPPUNIT_LIBS@
 testIpAddress_LDFLAGS= $(LIBADD_DL)
index 2fde95afc947c28bb1ee401327c2396ffcf6afcf..e898cc11c670ffc6d9625ae559ea691efabb738c 100644 (file)
@@ -1,15 +1,13 @@
 #
 #  Makefile for the Squid Object Cache server
 #
-#  $Id: Makefile.am,v 1.2 2006/05/11 12:25:39 hno Exp $
-#
 #  Uncomment and customize the following to suit your needs:
 #
 
 
 AUTOMAKE_OPTIONS = subdir-objects
 
-INCLUDES        = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
+INCLUDES        = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include -I$(top_srcdir)/src
 INCLUDES       += @SQUID_CPPUNIT_INC@
 
 TESTS=$(check_PROGRAMS)
@@ -38,7 +36,7 @@ squidclient_SOURCES = squidclient.cc
 cachemgr__CGIEXT__SOURCES = cachemgr.cc
 cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
 
-LDADD = -L../lib -lmiscutil $(XTRA_LIBS)
+LDADD = ../src/ip/libip.la -L../lib -lmiscutil $(XTRA_LIBS)
 
 EXTRA_DIST = \
        cachemgr.conf