tcptraceroute icon indicating copy to clipboard operation
tcptraceroute copied to clipboard

configure script needs regenerating for ARM64/Apple Silicon

Open DomT4 opened this issue 3 years ago • 0 comments

The current shipped configure script falls apart when it encounters Apple Silicon, immediately aborting the build:

checking build system type... configure: error: /bin/sh ./config.sub -apple-darwin20.4.0 failed

Running autoreconf -fvi regenerates the configure script successfully and allows building an arm64 binary on Apple Silicon as desired without any further modifications, but it'd be nice if upstream could possibly do that so downstream package managers don't have to do so themselves.

autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoconf --force
configure.ac:10: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:10: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:10: the top level
configure.ac:13: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:13: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:727: AM_CONFIG_HEADER is expanded from...
configure.ac:13: the top level
configure.ac:35: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:35: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:35: the top level
configure.ac:60: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:60: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:60: the top level
configure.ac:113: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:113: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:113: the top level
configure.ac:117: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:117: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
configure.ac:117: the top level
configure.ac:220: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:220: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:220: the top level
configure.ac:240: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:240: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:240: the top level
configure.ac:262: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:262: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:262: the top level
configure.ac:280: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:280: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
configure.ac:280: the top level
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.71/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:16: installing './compile'
Makefile.am: installing './depcomp'
autoreconf: './config.sub' is updated
autoreconf: './config.guess' is updated
autoreconf: Leaving directory '.'

~> ./configure --with-libnet=/opt/homebrew --prefix=/tmp/tcptraceroute/built
checking build system type... aarch64-apple-darwin20.4.0
checking host system type... aarch64-apple-darwin20.4.0
checking target system type... aarch64-apple-darwin20.4.0
[snip]

~> file /tmp/tcptraceroute/built/bin/tcptraceroute
/tmp/tcptraceroute/built/bin/tcptraceroute: Mach-O 64-bit executable arm64

Ref: https://github.com/Homebrew/homebrew-core/pull/75212

DomT4 avatar Apr 15 '21 08:04 DomT4