autotools-mirror / libtool Goto Github PK
View Code? Open in Web Editor NEWGNU Libtool. Mirror of git://git.savannah.gnu.org/libtool.git
Home Page: https://www.gnu.org/software/libtool/
GNU Libtool. Mirror of git://git.savannah.gnu.org/libtool.git
Home Page: https://www.gnu.org/software/libtool/
We use some internal tools to detect problematic language(master, slave, black-list, white-list, etc...) inside the project. We identified the use of "master" inside the libtool generic library support script.
Would it be possible to remove harmful language from the m4/libtool.m4 file?
The mentioned code block is located at: https://github.com/autotools-mirror/libtool/blob/master/m4/libtool.m4#L1130 and it's connected with Darwin linker features.
I have been trying to build the repository linked right here below, but libtool is giving me problems.
https://github.com/ElementsProject/lightning
The full sequence to build on Ubuntu ( Linux angmar 5.11.0-46-generic #51~20.04.1-Ubuntu SMP Fri Jan 7 06:51:40 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
) is the following:
sudo apt-get update
sudo apt-get install -y \
autoconf automake build-essential git libtool libgmp-dev libsqlite3-dev \
python3 python3-mako python3-pip net-tools zlib1g-dev libsodium-dev \
gettext
pip3 install --user mrkd mistune==0.8.4
git clone https://github.com/ElementsProject/lightning.git
cd lightning
./configure
make
Make eventually crashes with the error below:
CC: cc -DBINTOPKGLIBEXECDIR="../libexec/c-lightning" -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-maybe-uninitialized -std=gnu11 -g -fstack-protector-strong -Og -I ccan -I external/libwally-core/include/ -I external/libwally-core/src/secp256k1/include/ -I external/jsmn/ -I external/libbacktrace/ -I external/gheap/ -I external/x86_64-linux-gnu/libbacktrace-build -I . -I/usr/local/include -I/usr/include/postgresql -DSHACHAIN_BITS=48 -DJSMN_PARENT_LINKS -DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1 -DCOMPAT_V062=1 -DCOMPAT_V070=1 -DCOMPAT_V072=1 -DCOMPAT_V073=1 -DCOMPAT_V080=1 -DCOMPAT_V081=1 -DCOMPAT_V082=1 -DCOMPAT_V090=1 -DCOMPAT_V0100=1 -DBUILD_ELEMENTS=1 -c -o
LD: cc -Og config.vars -Lexternal/x86_64-linux-gnu -lwallycore -lsecp256k1 -ljsmn -lbacktrace -L/usr/local/lib -lm -lgmp -lsqlite3 -lz -L/usr/lib/x86_64-linux-gnu -lpq -lsodium -o
cd external/libwally-core && ./tools/autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:15: installing 'build-aux/compile'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'tools/build-aux'.
libtoolize: copying file 'tools/build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'tools/build-aux/m4'.
libtoolize: copying file 'tools/build-aux/m4/libtool.m4'
libtoolize: copying file 'tools/build-aux/m4/ltoptions.m4'
libtoolize: copying file 'tools/build-aux/m4/ltsugar.m4'
libtoolize: copying file 'tools/build-aux/m4/ltversion.m4'
libtoolize: copying file 'tools/build-aux/m4/lt~obsolete.m4'
configure.ac:25: installing 'tools/build-aux/compile'
configure.ac:23: installing 'tools/build-aux/missing'
src/Makefile.am: installing 'tools/build-aux/depcomp'
mkdir -p external/x86_64-linux-gnu/libwally-core-build
cd external/x86_64-linux-gnu/libwally-core-build \
&& PYTHON_VERSION=3 CFLAGS=-std=c99 ../../libwally-core/configure CC="cc" \
--enable-static=yes \
\
--enable-module-recovery \
--enable-module-extrakeys \
--enable-module-schnorrsig \
--enable-elements \
--enable-shared=no \
--prefix=/ \
--libdir=/ \
--enable-debug \
&& make
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... cc
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 we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... 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 cc... /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 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 cc 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... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... ../../libwally-core/configure: line 11101: warning: command substitution: ignored null byte in input
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... no
checking whether to build static libraries... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for ar... /usr/bin/ar
checking for ranlib... /usr/bin/ranlib
checking for gsed... no
checking whether byte ordering is bigendian... no
checking for inline... inline
checking for size_t... yes
checking for uint64_t... yes
checking for uint32_t... yes
checking for uint16_t... yes
checking for uint8_t... yes
checking whether C compiler accepts -O0... yes
checking whether C compiler accepts -ggdb... yes
checking whether the linker accepts -O0... yes
checking whether the linker accepts -ggdb... yes
checking whether C compiler accepts -DBUILD_ELEMENTS=1... yes
checking whether C compiler accepts -flax-vector-conversions... yes
checking whether C compiler accepts -fno-strict-aliasing... yes
checking whether C compiler accepts -fno-builtin... yes
checking whether C compiler accepts -Wformat-nonliteral... yes
checking whether C compiler accepts -Wformat-security... yes
checking whether C compiler accepts -Wformat... yes
checking whether C compiler accepts -Wstrict-prototypes... yes
checking whether C compiler accepts -Wshadow... yes
checking whether C compiler accepts -Wnested-externs... yes
checking whether C compiler accepts -Wcast-align... yes
checking whether C compiler accepts -Wpedantic... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -D_DEFAULT_SOURCE=1... yes
checking whether C compiler accepts -Wno-unused-function... yes
checking whether C compiler accepts -Wno-long-long... yes
checking whether C compiler accepts -Wno-overlength-strings... yes
checking whether C compiler accepts -Wno-variadic-macros... yes
checking whether C compiler accepts -Wl,--whole-archive... yes
checking whether C compiler accepts -Wno-shadow... yes
checking whether C compiler accepts -Wno-self-assign... yes
checking whether C compiler accepts -Wno-missing-field-initializers... yes
checking whether C compiler accepts -fvisibility=hidden... yes
checking for memset_s... no
checking for explicit_bzero... yes
checking for explicit_memset... no
checking whether we can use inline asm code... yes
checking byteswap.h, usability... no
checking byteswap.h, presence... no
checking for byteswap.h,... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking whether cc is Clang... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking asm/page.h usability... no
checking asm/page.h presence... no
checking for asm/page.h... no
checking for python3... /usr/bin/python3
checking for a version of Python >= '2.1.0'... yes
checking for a version of Python >= '2.7.0'... yes
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python3.8
checking for Python library path... -L/usr/lib -lpython3.8
checking for Python site-packages path... /usr/lib/python3/dist-packages
checking python extra libraries... -lcrypt -lpthread -ldl -lutil -lm -lm
checking python extra linking flags... -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions
checking consistency of all components of python development environment... yes
checking for swig... no
configure: WARNING: cannot find 'swig' program. You should look at http://www.swig.org
checking for java... no
checking for javac... no
checking for jar... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/wallycore.pc
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in src/secp256k1 (/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src/secp256k1)
configure: running /bin/bash ../../../../libwally-core/src/secp256k1/configure --disable-option-checking '--prefix=/' 'CC=cc' '--enable-static=yes' '--enable-module-recovery' '--enable-module-extrakeys' '--enable-module-schnorrsig' '--enable-elements' '--enable-shared=no' '--libdir=/' '--enable-debug' 'CFLAGS=-std=c99' 'PYTHON_VERSION=3' '--disable-shared' '--with-pic' '--with-bignum=no' '--enable-experimental' '--enable-module-ecdh' '--enable-module-recovery' '--enable-module-ecdsa-s2c' '--enable-module-rangeproof' '--enable-module-surjectionproof' '--enable-module-whitelist' '--enable-module-generator' '--enable-openssl-tests=no' '--enable-tests=no' '--enable-exhaustive-tests=no' '--enable-benchmark=no' '--disable-dependency-tracking' '--with-asm=no' --cache-file=/dev/null --srcdir=../../../../libwally-core/src/secp256k1
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... cc
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 we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... none
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 cc... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) 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 -m elf_x86_64 option to reload object files... -r
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 archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from cc 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... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64 -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... ../../../../libwally-core/src/secp256k1/configure: line 11044: warning: command substitution: ignored null byte in input
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... no
checking whether to build static libraries... yes
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ar... /usr/bin/ar
checking for ranlib... /usr/bin/ranlib
checking for strip... /usr/bin/strip
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) none
checking how to run the C preprocessor... gcc -E
checking for cc option to accept ISO C89... (cached) none needed
checking dependency style of cc... none
checking if cc supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes
checking if cc supports -fvisibility=hidden... yes
checking valgrind/memcheck.h usability... yes
checking valgrind/memcheck.h presence... yes
checking for valgrind/memcheck.h... yes
checking for __builtin_popcount... yes
checking if native gcc supports -Wall -Wextra -Wno-unused-function... yes
checking for working native compiler: gcc... yes
checking for __builtin_clzll... yes
configure: ******
configure: WARNING: experimental build
configure: Experimental features do not have stable APIs or properties, and may not be safe for production use.
configure: Building NUMS generator module: yes
configure: Building range proof module: yes
configure: Building key whitelisting module: yes
configure: Building surjection proof module: yes
configure: Building MuSig module: no
configure: Building extrakeys module: yes
configure: Building schnorrsig module: yes
configure: Building ECDSA sign-to-contract module: yes
configure: ******
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libsecp256k1.pc
config.status: creating src/libsecp256k1-config.h
config.status: src/libsecp256k1-config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
Build Options:
with ecmult precomp = yes
with external callbacks = no
with benchmarks = no
with tests = no
with openssl tests = no
with coverage = no
module ecdh = yes
module recovery = yes
module extrakeys = yes
module schnorrsig = yes
module ecdsa-s2c = yes
asm = no
bignum = no
ecmult window size = 15
ecmult gen prec. bits = 4
valgrind = yes
CC = cc
CFLAGS = -O2 -fvisibility=hidden -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wundef -Wno-unused-function -Wno-long-long -Wno-overlength-strings -W -std=c99
CPPFLAGS =
LDFLAGS = -O0 -ggdb
make[1]: Entering directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build'
Making all in src
make[2]: Entering directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src'
make all-recursive
make[3]: Entering directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src'
Making all in secp256k1
make[4]: Entering directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src/secp256k1'
CCLD libsecp256k1.la
./libtool: eval: line 8058: unexpected EOF while looking for matching `"'
./libtool: eval: line 8059: syntax error: unexpected end of file
make[4]: *** [Makefile:1077: libsecp256k1.la] Error 2
make[4]: Leaving directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src/secp256k1'
make[3]: *** [Makefile:1748: all-recursive] Error 1
make[3]: Leaving directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src'
make[2]: *** [Makefile:939: all] Error 2
make[2]: Leaving directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build/src'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/home/angmar/lightning/external/x86_64-linux-gnu/libwally-core-build'
make: *** [external/Makefile:75: external/x86_64-linux-gnu/libwally-core-build/src/libwallycore.la] Error 2
The reason behind this error is that in the file lightning/external/x86_64-linux-gnu/libwally-core-build/libtool
at line 287, where sys_lib_dlsearch_path_spec
is defined, a big binary blob seems to be placed before the matching " character.
It seems that the same binary blob is also placed in the file ./config.status
, line 682.
Please see the issue opened in that repo for further background, and a temporary fix to this issue. I would be grateful for any help in finding a more permanent fix.
ElementsProject/lightning#5008
Thanks!
SHA256 of libtool-2.4.7 source tar bundle is different compared to the one in https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.gz
SHA https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.gz
(base) โ test shasum -a 256 ~/Downloads/libtool-2.4.7_ftp.tar.gz
04e96c2404ea70c590c546eba4202a4e12722c640016c12b9b2f1ce3d481e9a8 ~/Downloads/libtool-2.4.7_ftp.tar.gz
SHA From github mirror
(base) โ test shasum -a 256 ~/Downloads/libtool-2.4.7_github_mirror.tar.gz
f977d211a525d68ad276a67dca8a72628d684bdf6817f73de9f8302c43fa0d19 ~/Downloads/libtool-2.4.7_github_mirror.tar.gz
Hello,
The README.md mention an INSTALL file with a link which I suppose was valid at some point but isn't anymore.
Best Regards,
Camille
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.