./autogen.sh后报出
configure.ac:26: error: possibly undefined macro: AC_DISABLE_STATIC
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:27: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:28: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:29: error: possibly undefined macro: AC_PROG_LIBTOOL
重新默认安装libtool后解决,原因是automake,autoconf,libtool安装时所指的安装路径不同所致,
make install时报出:
undefined reference to `rpl_malloc'
上网找到解决办法如下:
在当前目录查找了rpl_malloc,发现configure里有#define malloc rpl_malloc一行。分析configure 脚本相关的代码,原来是ac_cv_func_malloc_0_nonnull引起的,OK我们不让它检查了,产生一个cache文件arm-linux.cache,欺骗configure:
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=arm -linux --cache-file=arm-linux.cache
本文解决了使用autogen.sh时遇到的AC_DISABLE_STATIC等宏未定义错误,并分享了解决make install时报undefined reference to `rpl_malloc'的方法。
1408

被折叠的 条评论
为什么被折叠?



