centos 安装tripwire
无法下载tw-20030919.patch.gz软件
来下载文件
make提示fconame.h:147: error: ISO C++ forbids declaration of 'cFCOName_i'
> with no type
原因是缺少声明,需修改下面三个文件
1.修改在tripwire-2.3.1.2.0/src/fco/fconame.h
第49行处
class cFCONameTblNode; class cFCONameIter; class cFCOName_i; #增加此行 class cFCOName : public iTypedSerializable {
2.修改在tripwire-2.3.1.2.0/src/fco/fcosetimpl.h
第46行
#include "fconame.h" #endif class cFCOIterImpl; #增加此行class cFCOSetImpl : public iFCOSet {
3.修改在tripwire-2.3.1.2.0/src/tw/fcoreport.h
第85行
class cFileHeaderID; class cErrorQueue; class cFCOReportGenreHeader; class cFCOReportSpecIter; #增加此行 class cFCOReport : public iTypedSerializable {