ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

移植strongswan出现missing: line 81: automake-1.14: command not found

2019-03-02 10:51:16  阅读:657  来源: 互联网

标签:__ 1.14 missing am Makefile automake strongswan &&


最近在嵌入式系统需实现ipsec,采用strongswan,发现移植中出现automake版本不一致

make[3]: Entering directory `xxx/strongswan/strongswan-5.3.2'
cd . && xxx/strongswan/strongswan-5.3.2/missing automake-1.14 --gnu
xxx/strongswan/strongswan-5.3.2/missing: line 81: automake-1.14: command not found

如果直接源文件tar下来,可以直接make通过,比较两者差别,发现代码没有丝毫变化。不得其解。

后来原来是时间发生变化,触发重新automake。

主编译系统automake-1.11,肯定找不到automake-1.14 。

打开生成的makefile:

ACLOCAL = ${SHELL} /xxx/strongswan/strongswan-5.3.2/missing aclocal-1.14
ACLOCAL_AMFLAGS = -I m4/config

提示错误的地方应该在这里:

$(ACLOCAL_M4): $(am__aclocal_m4_deps)
$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)

如果能把Makefile中的1.14改成1.11,问题肯定解决;

看一下Makefile的生成部分。

476 am--refresh: Makefile
477 @:
478 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
479 @for dep in $?; do \
480 case '$(am__configure_deps)' in \
481 *$$dep*) \
482 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
483 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
484 && exit 0; \
485 exit 1;; \
486 esac; \
487 done; \
488 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
489 $(am__cd) $(top_srcdir) && \
490 $(AUTOMAKE) --gnu Makefile
491 .PRECIOUS: Makefile
492 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
493 @case '$?' in \
494 *config.status*) \
495 echo ' $(SHELL) ./config.status'; \
496 $(SHELL) ./config.status;; \
497 *) \
498 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
499 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
500 esac;

Makefile的依赖是Makefile.in和config.status。

strongswan/strongswan-5.3.2$ automake
aclocal.m4:17: warning: this file was generated for autoconf 2.69.
You have another version of autoconf. It may work, but is not guaranteed to.
If you have problems, you may need to regenerate the build system entirely.
To do so, use the procedure documented by the package, typically 'autoreconf'.
configure.ac:23: version mismatch. This is Automake 1.11.3,
configure.ac:23: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:23: comes from Automake 1.11.1. You should recreate
configure.ac:23: aclocal.m4 with aclocal and run automake again.

strongswan/strongswan-5.3.2$ aclocal
发现aclocal.m4发生变化了。

再执行automake,所有的目录下的Makefile.in都发生变化。

 

标签:__,1.14,missing,am,Makefile,automake,strongswan,&&
来源: https://www.cnblogs.com/rodin/p/10460066.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有