1、按照安装脚本正确安装好VINE需要的软件环境后,在make时,遇到错误
q: /usr/include/libiberty.h:106: error: new declaration ‘char* basename(const char*)
2、原因:vine是基于ubuntu 9.04版本开发的,在高于9.04版本的ubuntu上开发,需要d对libasmir/src/disasm/asm_program.cpp文件头一些小的修改
#include "debug.h"
#include "asm_program.h"
#include "objdump.h"
+/* Some versions of glibc and the binutils libiberty library give
+ conflicting prototypes for basename(). We don't use that function
+ anyway, but to work around the problem, make libliberty.h think
+ that it has already been declared. */
+
#define HAVE_DECL_BASENAME 1
#include "libiberty.h"