最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】cygwin下编译buildroot在alsa-lib时出错:libtool: Version mismatch error. This is libtool 2.4, but the definition of this LT_INIT comes from libtool 2.2.10.

Buildroot crifan 4377浏览 0评论

【问题】

折腾:

【记录】在Cygwin上用Buildroot为xscale建立交叉工具链

期间,在编译alsa-lib期间,出现错误:

make[3]: Entering directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src/control'
  CC     cards.lo
  CC     tlv.lo
  CC     namehint.lo
  CC     hcontrol.lo
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.10.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[3]: *** [tlv.lo] Error 63
make[3]: *** Waiting for unfinished jobs....
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.10.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[3]: *** [namehint.lo] Error 63
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.10.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[3]: *** [cards.lo] Error 63
libtool: Version mismatch error.  This is libtool 2.4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.10.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4
libtool: and run autoconf again.
make[3]: *** [hcontrol.lo] Error 63
make[3]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src/control'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26'
make: *** [/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/.stamp_built] Error 2

CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05
$

如图:

alsa lib libtool Version mismatch error This is libtool 2.4, but the

即:

libtool: Version mismatch error

【解决过程】

1.这个问题之前就遇到并解决了:

【已解决】cygwin下编译buildroot期间编译mpc时出错:libtool: Version mismatch error

此处,继续参考之前的办法,去试试:

CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05
$ cd output/build/alsa-lib-1.0.26/

CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26
$ autoreconf -fiv
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.in: not using Gettext
autoreconf-2.69: running: aclocal --force -I m4
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: configure.in: tracing
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: running: /usr/bin/autoconf-2.69 --force
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: running: /usr/bin/autoheader-2.69 --force
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: running: automake --add-missing --copy --force-missing
configure.in:52: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
/usr/src/packages/autoconf/26/32/autoconf2.5-2.69-2/src/autoconf-2.69/lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
m4/attributes.m4:87: CC_CHECK_LDFLAGS is expanded from...
m4/attributes.m4:104: CC_NOUNDEFINED is expanded from...
configure.in:52: the top level
autoreconf-2.69: Leaving directory `.'

CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26
$

然后继续make,看看是否可行。

结果就可以了:

make[2]: Entering directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src'
Making all in control
make[3]: Entering directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src/control'
  CC     cards.lo
  CC     tlv.lo
  CC     namehint.lo
  CC     hcontrol.lo
  CC     control.lo
  CC     control_hw.lo
  CC     setup.lo
  CC     ctlparse.lo
  CC     control_symbols.lo
  CC     control_shm.lo
  CC     control_ext.lo
  CCLD   libcontrol.la
make[3]: Leaving directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src/control'
Making all in mixer
make[3]: Entering directory `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/alsa-lib-1.0.26/src/mixer'
  CC     bag.lo
  CC     mixer.lo
  CC     simple.lo
  CC     simple_none.lo

如图:

alsa lib continue build

 

【总结】

当出现:

libtool: Version mismatch error

时,还是去:

autoreconf -fiv

即可。

转载请注明:在路上 » 【已解决】cygwin下编译buildroot在alsa-lib时出错:libtool: Version mismatch error. This is libtool 2.4, but the definition of this LT_INIT comes from libtool 2.2.10.

与本文相关的文章

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.164 seconds, using 22.27MB memory