From: Amos Jeffries Date: Thu, 4 Dec 2008 23:55:38 +0000 (+1300) Subject: Remaining build issues in HEAD tests. X-Git-Tag: SQUID_3_2_0_1~1306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fcdb6b9c9f077ec89ad649228641fb2c1190b3a;p=thirdparty%2Fsquid.git Remaining build issues in HEAD tests. Several missing symbols added to CommIO stub and extra smart storeio checks to prevent duplicate object linkages when both async-io and storeio are enabled. --- diff --git a/configure.in b/configure.in index 405f9911a3..c0eae384ef 100644 --- a/configure.in +++ b/configure.in @@ -468,18 +468,22 @@ AC_ARG_ENABLE(storeio, fi ]) if test -n "$STORE_MODULES"; then - for module in $STORE_MODULES; do - if test -d $srcdir/src/fs/$module; then - : + dnl ensure that all modules a) exist and b) only include once. + STORE_MODULES_FULL=$STORE_MODULES + STORE_MODULES= + STORE_LINKOBJS= + for module in $STORE_MODULES_FULL; do + have_mod=`echo "$STORE_MODULES" | grep "$module"` + if test "$have_mod" != ""; then + echo "Removing duplicate $module from storeio" + elif test -d $srcdir/src/fs/$module; then + STORE_MODULES="$STORE_MODULES $module" + STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o" else AC_MSG_ERROR(storeio $module does not exist) fi done echo "Store modules built: $STORE_MODULES" - STORE_LINKOBJS= - for module in $STORE_MODULES; do - STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o" - done fi dnl remove all but diskd - its the only module that needs to recurse dnl into the sub directory diff --git a/src/Makefile.am b/src/Makefile.am index 5c2308f4f9..3435437454 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1477,8 +1477,7 @@ tests_testDiskIO_SOURCES= \ tests/testDiskIO.cc \ tests/testDiskIO.h \ tests/testMain.cc \ - tests/stub_cache_manager.cc \ - tests/stub_CommIO.cc + tests/stub_cache_manager.cc tests_testDiskIO_LDADD= \ @DISK_LIBS@ \ @@ -2210,8 +2209,9 @@ tests_testString_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \ @SQUID_CPPUNIT_LA@ SWAP_TEST_SOURCES = \ - tests/stub_store_rebuild.cc \ tests/stub_internal.cc \ + tests/stub_CommIO.cc \ + tests/stub_store_rebuild.cc \ fd.cc \ disk.cc \ filemap.cc \ diff --git a/src/tests/stub_CommIO.cc b/src/tests/stub_CommIO.cc index 4eacf7e097..dfb38ec954 100644 --- a/src/tests/stub_CommIO.cc +++ b/src/tests/stub_CommIO.cc @@ -1,6 +1,11 @@ #include "squid.h" #include "CommIO.h" +bool CommIO::Initialised = false; +bool CommIO::DoneSignalled = false; +int CommIO::DoneFD = -1; +int CommIO::DoneReadFD = -1; + void CommIO::ResetNotifications() {