问题1:
$ make CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I m4 /bin/sh: aclocal-1.13: command not found make: *** [aclocal.m4] Error 127
需要安装升级到autoconf-2.65.tar.gz, automake-1.13.tar.gz两个文件
问题2:
再编译xlslib时出现:
In file included from xlslib/assert_assist.cpp:31:0: ./common/systype.h:253:18: error: missing binary operator before token "(" #if __has_feature(attribute_analyzer_noreturn) ^ make[1]: *** [assert_assist.lo] Error 1 make[1]: Leaving directory `/home/op/xlslib/github_xlslib/xlslib/xlslib/src' make: *** [all-recursive] Error 1
此时需要在此处的上方,
#ifndef CLANG_ANALYZER_NORETURN #if __has_feature(attribute_analyzer_noreturn) #define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn)) #else #define CLANG_ANALYZER_NORETURN #endif #endif
添加如下定义:
// GCC does not understand __has_feature. #if !defined(__has_feature) # define __has_feature(x) 0 #endif
参考: http://clang-analyzer.llvm.org/annotations.html
https://github.com/gcc-mirror/gcc/blob/master/libsanitizer/include/sanitizer/common_interface_defs.h