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

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

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 foundthis

若是直接源文件tar下来,能够直接make经过,比较二者差异,发现代码没有丝毫变化。不得其解。ip

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

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

打开生成的makefile:编译

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

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

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

若是能把Makefile中的1.14改为1.11,问题确定解决;call

看一下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都发生变化。

相关文章
相关标签/搜索