xlslib安装, aclocal-1.13: command not found, 安装升级autoconf-2.65.tar.gz, automake-1.13.tar.gz两个文件

时间:2021-04-19 14:33:16
问题1:
$ make
CDPATH="${ZSH_VERSION+.}:" && cd . && aclocal-1.13 -I m4
/bin/sh: aclocal-1.13: command not found
make: *** [aclocal.m4] Error 
需要安装升级到autoconf-2.65.tar.gz, automake-1.13.tar.gz两个文件

问题2:再编译xlslib时出现:
In file included ::
./common/systype.h::: error: missing binary operator before token "("
 #if __has_feature(attribute_analyzer_noreturn)
                  ^
make[]: *** [assert_assist.lo] Error
make[]: Leaving directory `/home/op/xlslib/github_xlslib/xlslib/xlslib/src'
make: *** [all-recursive] Error 
此时需要在此处的上方,
#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)
#endif

参考: http://clang-analyzer.llvm.org/annotations.html

https://github.com/gcc-mirror/gcc/blob/master/libsanitizer/include/sanitizer/common_interface_defs.h