Skip to content

libtool: Version mismatch error #2618

Description

@mcdallas

I am getting the following build error on macOS mojave after following the instructions in https://lightning.readthedocs.io/INSTALL.html#to-build-on-macos

[...]
checking sys/ldr.h usability... no
checking sys/ldr.h presence... no
checking for sys/ldr.h... no
checking for fcntl... yes
checking whether strnlen is declared... yes
checking for lstat... yes
checking for readlink... yes
checking for getexecname... no
checking for clock_gettime... yes
checking whether -pthread is supported... yes
checking for compress in -lz... yes
checking whether --compress-debug-sections is supported... no
checking for objcopy... no
checking whether objcopy supports debuglink... ../libbacktrace/configure: line 11997: --add-gnu-debuglink=x: command not found
no
checking whether tests can run... yes
configure: creating ./config.status
./config.status: command substitution: line 577: unexpected EOF while looking for matching `"'
./config.status: command substitution: line 578: syntax error: unexpected end of file
./config.status: line 576: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 689: -e: command not found
./config.status: line 701: -e: command not found
./config.status: line 701: -e: command not found
./config.status: line 701: -e: command not found
./config.status: line 701: -e: command not found
./config.status: line 701: -e: command not found
config.status: creating Makefile
config.status: creating backtrace-supported.h
config.status: creating config.h
config.status: executing libtool commands
config.status: executing default commands
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I../libbacktrace -DBINTOPKGLIBEXECDIR='"'../libexec/c-lightning'"' -funwind-tables -frandom-seed=atomic.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -O2 -c -o atomic.lo ../libbacktrace/atomic.c
./libtool: line 496: CDPATH: command not found
libtool: Version mismatch error. This is libtool 2.2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4
libtool: and run autoconf again.
make[2]: *** [atomic.lo] Error 63
make[1]: *** [all] Error 2
make: *** [external/libbacktrace.a] Error 2
rm external/libwally-core/src/secp256k1/libsecp256k1.la

any idea how to proceed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions