AuthReg.o: In function `__static_initialization_and_destruction_0':
/data/software/squid-3.1.18/src/AuthReg.cc:21: undefined reference to `basicScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:25: undefined reference to `ntlmScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:29: undefined reference to `digestScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:33: undefined reference to `negotiateScheme::GetInstance()'
fs/.libs/libfs.a(Module.o): In function `StoreFSufs<UFSSwapDir>::createSwapDir()':
/data/software/squid-3.1.18/src/fs/../../src/fs/ufs/StoreFSufs.h:92: undefined reference to `UFSSwapDir::UFSSwapDir(char const*, char const*)'
../libltdl/.libs/libltdlc.a(libltdlcS.o):(.data.rel.ro+0x28): undefined reference to `dlopen_LTX_get_vtable'
collect2: ld returned 1 exit status
libtool: link: rm -f ".libs/squidS.o"
make[3]: *** [squid] 错误 1
make[3]: Leaving directory `/data/software/squid-3.1.18/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/data/software/squid-3.1.18/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/data/software/squid-3.1.18/src'
make: *** [all-recursive] 错误 1
===========================================
[root@cnc2 squid-3.1.18]# ./configure --prefix=/usr/local/squid --enable-arp-acl --enable-ssl --with-aufs-threads=32 > myconfigstatus
configure: WARNING: cppunit does not appear to be installed. squid does not require this, but code testing with 'make check' will fail.
[root@cnc2 squid-3.1.18]# make check
Making check in compat
make[1]: Entering directory `/data/software/squid-3.1.18/compat'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c -o assert.lo assert.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -fPIC -DPIC -o .libs/assert.o
libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -o assert.o >/dev/null 2>&1
mv -f .deps/assert.Tpo .deps/assert.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c -o GnuRegex.lo GnuRegex.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c GnuRegex.c -fPIC -DPIC -o .libs/GnuRegex.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c GnuRegex.c -o GnuRegex.o >/dev/null 2>&1
mv -f .deps/GnuRegex.Tpo .deps/GnuRegex.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -g -o libcompat.la assert.lo compat.lo GnuRegex.lo
libtool: link: rm -fr .libs/libcompat.a .libs/libcompat.la
libtool: link: ar cru .libs/libcompat.a .libs/assert.o .libs/compat.o .libs/GnuRegex.o
libtool: link: ranlib .libs/libcompat.a
libtool: link: ( cd ".libs" && rm -f "libcompat.la" && ln -s "../libcompat.la" "libcompat.la" )
make testPreCompiler
make[2]: Entering directory `/data/software/squid-3.1.18/compat'
g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT testPreCompiler.o -MD -MP -MF .deps/testPreCompiler.Tpo -c -o testPreCompiler.o testPreCompiler.cc
在包含自 testPreCompiler.cc:7 的文件中:
testPreCompiler.h:4:45: 错误:cppunit/extensions/HelperMacros.h:没有那个文件或目录
testPreCompiler.h:10: 错误:‘CPPUNIT_NS’ 未声明
testPreCompiler.h:10: 错误:expected `{' before ‘TestFixture’
testPreCompiler.h:10: 错误:无效的函数声明
testPreCompiler.cc:9: 错误:expected constructor, destructor, or type conversion before ‘;’ token
testPreCompiler.cc:17: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDef()’:
testPreCompiler.cc:31: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
testPreCompiler.cc: At global scope:
testPreCompiler.cc:74: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDefAnd()’:
testPreCompiler.cc:90: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
testPreCompiler.cc: At global scope:
testPreCompiler.cc:114: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDefOr()’:
testPreCompiler.cc:130: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
make[2]: *** [testPreCompiler.o] 错误 1
=============================
install cppunit
wget http://sourceforge.net/projects/cppunit/files/cppunit/1.12.1/cppunit-1.12.1.tar.gz/download
./configure
make && make install
[root@cnc2 squid-3.1.18]# ./configure --prefix=/usr/local/squid --enable-arp-acl --enable-ssl --with-aufs-threads=32 > myconfigstatus
make check
make && make install
如果还不行就装 squid-2.7.STABLE9
/data/software/squid-3.1.18/src/AuthReg.cc:21: undefined reference to `basicScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:25: undefined reference to `ntlmScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:29: undefined reference to `digestScheme::GetInstance()'
/data/software/squid-3.1.18/src/AuthReg.cc:33: undefined reference to `negotiateScheme::GetInstance()'
fs/.libs/libfs.a(Module.o): In function `StoreFSufs<UFSSwapDir>::createSwapDir()':
/data/software/squid-3.1.18/src/fs/../../src/fs/ufs/StoreFSufs.h:92: undefined reference to `UFSSwapDir::UFSSwapDir(char const*, char const*)'
../libltdl/.libs/libltdlc.a(libltdlcS.o):(.data.rel.ro+0x28): undefined reference to `dlopen_LTX_get_vtable'
collect2: ld returned 1 exit status
libtool: link: rm -f ".libs/squidS.o"
make[3]: *** [squid] 错误 1
make[3]: Leaving directory `/data/software/squid-3.1.18/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/data/software/squid-3.1.18/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/data/software/squid-3.1.18/src'
make: *** [all-recursive] 错误 1
===========================================
[root@cnc2 squid-3.1.18]# ./configure --prefix=/usr/local/squid --enable-arp-acl --enable-ssl --with-aufs-threads=32 > myconfigstatus
configure: WARNING: cppunit does not appear to be installed. squid does not require this, but code testing with 'make check' will fail.
[root@cnc2 squid-3.1.18]# make check
Making check in compat
make[1]: Entering directory `/data/software/squid-3.1.18/compat'
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c -o assert.lo assert.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -fPIC -DPIC -o .libs/assert.o
libtool: compile: g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT assert.lo -MD -MP -MF .deps/assert.Tpo -c assert.cc -o assert.o >/dev/null 2>&1
mv -f .deps/assert.Tpo .deps/assert.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c -o GnuRegex.lo GnuRegex.c
libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c GnuRegex.c -fPIC -DPIC -o .libs/GnuRegex.o
libtool: compile: gcc -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments -Werror -D_REENTRANT -Wall -g -O2 -MT GnuRegex.lo -MD -MP -MF .deps/GnuRegex.Tpo -c GnuRegex.c -o GnuRegex.o >/dev/null 2>&1
mv -f .deps/GnuRegex.Tpo .deps/GnuRegex.Plo
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -g -o libcompat.la assert.lo compat.lo GnuRegex.lo
libtool: link: rm -fr .libs/libcompat.a .libs/libcompat.la
libtool: link: ar cru .libs/libcompat.a .libs/assert.o .libs/compat.o .libs/GnuRegex.o
libtool: link: ranlib .libs/libcompat.a
libtool: link: ( cd ".libs" && rm -f "libcompat.la" && ln -s "../libcompat.la" "libcompat.la" )
make testPreCompiler
make[2]: Entering directory `/data/software/squid-3.1.18/compat'
g++ -DHAVE_CONFIG_H -I.. -I../include -I../src -I../include -Wall -Wpointer-arith -Wwrite-strings -Wcomments -Werror -D_REENTRANT -g -O2 -MT testPreCompiler.o -MD -MP -MF .deps/testPreCompiler.Tpo -c -o testPreCompiler.o testPreCompiler.cc
在包含自 testPreCompiler.cc:7 的文件中:
testPreCompiler.h:4:45: 错误:cppunit/extensions/HelperMacros.h:没有那个文件或目录
testPreCompiler.h:10: 错误:‘CPPUNIT_NS’ 未声明
testPreCompiler.h:10: 错误:expected `{' before ‘TestFixture’
testPreCompiler.h:10: 错误:无效的函数声明
testPreCompiler.cc:9: 错误:expected constructor, destructor, or type conversion before ‘;’ token
testPreCompiler.cc:17: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDef()’:
testPreCompiler.cc:31: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
testPreCompiler.cc: At global scope:
testPreCompiler.cc:74: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDefAnd()’:
testPreCompiler.cc:90: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
testPreCompiler.cc: At global scope:
testPreCompiler.cc:114: 错误:invalid use of undefined type ‘class testPreCompiler’
testPreCompiler.h:10: 错误:forward declaration of ‘class testPreCompiler’
testPreCompiler.cc: In member function ‘void testPreCompiler::testIfDefOr()’:
testPreCompiler.cc:130: 错误:‘CPPUNIT_ASSERT’ 在此作用域中尚未声明
make[2]: *** [testPreCompiler.o] 错误 1
=============================
install cppunit
wget http://sourceforge.net/projects/cppunit/files/cppunit/1.12.1/cppunit-1.12.1.tar.gz/download
./configure
make && make install
[root@cnc2 squid-3.1.18]# ./configure --prefix=/usr/local/squid --enable-arp-acl --enable-ssl --with-aufs-threads=32 > myconfigstatus
make check
make && make install
如果还不行就装 squid-2.7.STABLE9