安装鱿鱼时出错

时间:2017-08-10 08:19:59

标签: debian squid

我试图从官方网站http://www.squid-cache.org/Versions/安装squid,我在那里下载了squid-3.4.5.tat.gz。 我想在Debian Jesssie上安装它。 首先我更新了build-essential和libssl-dev。

#apt-get install build-essential
#apt-get install libssl-dev
#tar -xzf example.tar.gz
#cd example-name
#./configure –prefix=/usr/local /squid –enable-icap-client –enable-ssl –enable-ssl-crtd –with-default-user=squid
#make all

但在make all之后我收到错误:

In file included from ../include/MemPool.h:26:0,
                 from ../include/MemPoolChunked.h:4,
                 from MemPoolChunked.cc:87:
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::splay(const FindValue&, int (*)(const FindValue&, const Value&)) const [with FindValue = MemChunk*; V = MemChunk*]':
../include/splay.h:212:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
     if (this == NULL) {
     ^~
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::remove(SplayNode<V>::Value, int (*)(const Value&, const Value&)) [with V = MemChunk*]':
../include/splay.h:151:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
     if (this == NULL)
     ^~
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::insert(SplayNode<V>::Value, int (*)(const Value&, const Value&)) [with V = MemChunk*]':
../include/splay.h:182:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
     if (this == NULL) {
     ^~
../include/splay.h: In member function 'SplayNode<V>* SplayNode<V>::splay(const FindValue&, int (*)(const FindValue&, const Value&)) const [with FindValue = void*; V = MemChunk*]':
../include/splay.h:212:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
     if (this == NULL) {
     ^~
MemPoolChunked.cc: In member function 'virtual void MemPoolChunked::clean(time_t)':
MemPoolChunked.cc:394:5: error: nonnull argument 'this' compared to NULL [-Werror=nonnull-compare]
     if (!this)

我试图谷歌这个问题,但我找不到解决方案。

0 个答案:

没有答案