红联Linux门户
Linux帮助

编译squid4

发布时间:2016-12-31 14:42:54来源:红联作者:jszj1983
In file included from old_api.cc:12:
../../src/base/PackableStream.h:30: 错误:expected ‘;’ before ‘override’
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/functional:56,
from ../../src/sbuf/forward.h:12,
from ../../src/sbuf/SBuf.h:18,
from ../../src/format/Format.h:14,
from ../../src/HttpHeaderTools.h:13,
from ../../src/SquidConfig.h:18,
from old_api.cc:24:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo:36: 错误:expected ‘;’ before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo:36: 错误:expected ‘}’ before end of line
In file included from old_api.cc:12:
../../src/base/PackableStream.h: In constructor ‘PackableStreamBuf::PackableStreamBuf(Packable&)’:
../../src/base/PackableStream.h:23: 错误:类‘PackableStreamBuf’没有名为‘buf_’的字段
../../src/base/PackableStream.h:23: 错误:‘buf_’在此作用域中尚未声明
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/functional:56,
from ../../src/sbuf/forward.h:12,
from ../../src/sbuf/SBuf.h:18,
from ../../src/format/Format.h:14,
from ../../src/HttpHeaderTools.h:13,
from ../../src/SquidConfig.h:18,
from old_api.cc:24:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo: At global scope:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo:36: 错误:expected unqualified-id before end of line
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/typeinfo:36: 错误:expected declaration before end of line
cc1plus: warnings being treated as errors
cc1plus: 错误:无法识别的命令行选项“-Wno-deprecated-register”
make[3]: *** [old_api.lo] 错误 1
make[3]: Leaving directory `/root/squid-4.0.17/src/mem'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/squid-4.0.17/src'
make[1]: *** [all] 错误 2
make[1]: Leaving directory `/root/squid-4.0.17/src'


编译安装出现上面错误,不懂请各位帮忙看一下
文章评论

共有 0 条评论