您尚未登录。

#1 2022-07-31 17:08:14

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

[已解决]libtool: Version mismatch error.

我想要更新celt,可是无论使用yay还是makepkg都会出现以下错误

❯ makepkg . 
==> 正在创建软件包:celt 0.11.3-5 (Sun 31 Jul 2022 04:57:49 PM CST)
==> 正在检查运行时依赖关系...
==> 正在检查编译时依赖关系
==> 获取源代码...
  -> 找到 celt-v0.11.3.tar.bz2
  -> 找到 010-celt-fix-tandem-test.patch
==> 正在验证 source 文件,使用sha256sums...
    celt-v0.11.3.tar.bz2 ... 通过
    010-celt-fix-tandem-test.patch ... 通过
==> 正在释放源码...
  -> 正在解压缩 celt-v0.11.3.tar.bz2,使用 bsdtar
==> 正在开始 prepare()...
patching file libcelt/celt.c
Hunk #1 succeeded at 2692 (offset -31 lines).
patching file tests/tandem-test.c
checking for autoconf... 
checking for automake 1.6 or later... automake
checking for aclocal 1.6 or later... aclocal
checking for libtool... libtoolize
Generating configuration files for celt, please wait....
  aclocal 
  autoheader
  libtoolize --automake
  automake --add-missing 
configure.ac:29: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:29: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
libcelt/Makefile.am:35: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tests/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
tools/Makefile.am:8: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
  autoconf
configure.ac:5: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:5: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:9958: AM_CONFIG_HEADER is expanded from...
configure.ac:5: the top level
configure.ac:29: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:9606: AM_INIT_AUTOMAKE is expanded from...
configure.ac:29: the top level
configure.ac:33: warning: The macro `AM_PROG_LIBTOOL' is obsolete.
configure.ac:33: You should run autoupdate.
aclocal.m4:123: AM_PROG_LIBTOOL is expanded from...
configure.ac:33: the top level
configure.ac:35: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:35: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:35: the top level
configure.ac:44: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:44: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:44: the top level
configure.ac:56: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:56: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
configure.ac:56: the top level
configure.ac:72: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:72: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
aclocal.m4:9090: XIPH_PATH_OGG is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:72: the top level
configure.ac:72: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:72: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:9090: XIPH_PATH_OGG is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:72: the top level
configure.ac:72: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:72: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
aclocal.m4:9090: XIPH_PATH_OGG is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
configure.ac:72: the top level
configure.ac:135: warning: The macro `AC_WARN' is obsolete.
configure.ac:135: You should run autoupdate.
./lib/autoconf/oldnames.m4:33: AC_WARN is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:1534: AC_ARG_ENABLE is expanded from...
configure.ac:135: the top level
configure.ac:158: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
./lib/autoconf/lang.m4:199: AC_LANG_CONFTEST is expanded from...
./lib/autoconf/general.m4:2823: _AC_COMPILE_IFELSE is expanded from...
./lib/autoconf/general.m4:2839: AC_COMPILE_IFELSE is expanded from...
configure.ac:158: the top level
configure.ac:211: warning: AC_OUTPUT should be used without arguments.
configure.ac:211: You should run autoupdate.
==> 正在删除现存的 $pkgdir/ 目录...
==> 正在开始 build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict__
checking for C99 variable-size arrays... yes
checking for alloca.h... yes
checking for getopt.h... yes
checking for alloca... yes
checking for sys/soundcard.h... yes
checking for sys/audioio.h... no
checking for Ogg... yes
checking for sin in -lm... yes
checking for getopt_long... yes
checking for main in -lwinmm... no
checking if  supports -fvisibility=hidden... yes
checking for lrintf... yes
checking for lrint... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libcelt/Makefile
config.status: creating tests/Makefile
config.status: creating celt.pc
config.status: creating tools/Makefile
config.status: creating libcelt.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

------------------------------------------------------------------------
  celt 0.11.3:  Automatic configuration OK.

    Compiler support:

      C99 var arrays: ................ yes
      C99 lrintf: .................... yes
      Alloca: ........................ yes

    General configuration:

      Fast float approximations: ..... no
      Fixed point support: ........... no
      Fixed point debugging: ......... no
      Custom modes: .................. yes
      Assertion checking: ............ no
------------------------------------------------------------------------

Type "make; make install" to compile and install
Type "make check" to run the test suite
make  all-recursive
make[1]: 进入目录“/home/yuxuan/Downloads/celt/src/celt-v0.11.3”
Making all in libcelt
make[2]: 进入目录“/home/yuxuan/Downloads/celt/src/celt-v0.11.3/libcelt”
/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -fvisibility=hidden -W -Wstrict-prototypes -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wno-parentheses -Wno-unused-parameter -Wno-sign-compare -MT bands.lo -MD -MP -MF .deps/bands.Tpo -c -o bands.lo bands.c
libtool: Version mismatch error.  This is libtool 2.4.6, but the
libtool: definition of this LT_INIT comes from libtool 2.4.7-dirty.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6
libtool: and run autoconf again.
make[2]: *** [Makefile:710:bands.lo] 错误 63
make[2]: 离开目录“/home/yuxuan/Downloads/celt/src/celt-v0.11.3/libcelt”
make[1]: *** [Makefile:470:all-recursive] 错误 1
make[1]: 离开目录“/home/yuxuan/Downloads/celt/src/celt-v0.11.3”
make: *** [Makefile:377:all] 错误 2
==> 错误: 在 build() 中发生一个错误。
    正在放弃...

最近编辑记录 lyxzcx (2022-07-31 18:29:57)

离线

#2 2022-07-31 17:28:04

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,491
个人网站

Re: [已解决]libtool: Version mismatch error.

打包脚本需要更新。试试在 ./configure 前加上 autoreconf -i。

离线

#3 2022-07-31 18:30:40

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

Re: [已解决]libtool: Version mismatch error.

解决了,anaconda下的libtool卸载掉就可以了

离线

#4 2022-08-01 09:47:59

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,491
个人网站

Re: [已解决]libtool: Version mismatch error.

原来又是 anaconda 的锅……

离线

页脚