移植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都發生變化。

相關文章
相關標籤/搜索