zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.45k stars 2.34k forks source link

build fail on Ubuntu 24.04 LTS: autogen.sh stopped with error #4683

Closed knst closed 2 months ago

knst commented 2 months ago

Issue description

The build fails on Ubuntu 24.04 LTS: autogen.sh stopped with error:

Makefile.am: installing 'config/depcomp'
autoreconf: error: automake terminated by signal: 11
autogen.sh: error: autoreconf exited with status 1

Environment

$ autoconf --version
autoconf (GNU Autoconf) 2.71
$ automake --version
automake (GNU automake) 1.16.5

Minimal test code / Steps to reproduce the issue

  1. run ./autogen.sh after git checkout

What's the actual result? (include assertion message & call stack if applicable)

Full log:

$ ./autogen.sh 
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal -I config --force -I config
autoreconf: running: /usr/bin/autoconf --include=config --force
configure.ac:478: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:478: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:645: LIBZMQ_CHECK_EVENTFD_CLOEXEC is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/headers.m4:89: _AC_CHECK_HEADER_COMPILE is expanded from...
./lib/autoconf/headers.m4:56: AC_CHECK_HEADER is expanded from...
lib/m4sugar/m4sh.m4:651: AS_FOR is expanded from...
./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from...
configure.ac:478: the top level
configure.ac:532: warning: Update your code to rely only on HAVE_SYS_TIME_H,
configure.ac:532: then remove this warning and the obsolete code below it.
configure.ac:532: All current systems provide time.h; it need not be checked for.
configure.ac:532: Not all systems provide sys/time.h, but those that do, all allow
configure.ac:532: you to include it and time.h simultaneously.
configure.ac:828: warning: your code may safely assume C89 semantics that RETSIGTYPE is void.
configure.ac:828: Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.
configure.ac:995: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:995: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:596: LIBZMQ_CHECK_SOCK_CLOEXEC is expanded from...
configure.ac:995: the top level
configure.ac:1001: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1001: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:620: LIBZMQ_CHECK_O_CLOEXEC is expanded from...
configure.ac:1001: the top level
configure.ac:1007: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1007: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:702: LIBZMQ_CHECK_SO_BINDTODEVICE is expanded from...
configure.ac:1007: the top level
configure.ac:1014: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1014: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:729: LIBZMQ_CHECK_SO_KEEPALIVE is expanded from...
configure.ac:1014: the top level
configure.ac:1020: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1020: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:756: LIBZMQ_CHECK_TCP_KEEPCNT is expanded from...
configure.ac:1020: the top level
configure.ac:1026: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1026: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:786: LIBZMQ_CHECK_TCP_KEEPIDLE is expanded from...
configure.ac:1026: the top level
configure.ac:1032: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1032: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:816: LIBZMQ_CHECK_TCP_KEEPINTVL is expanded from...
configure.ac:1032: the top level
configure.ac:1038: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1038: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:846: LIBZMQ_CHECK_TCP_KEEPALIVE is expanded from...
configure.ac:1038: the top level
configure.ac:1044: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1044: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:876: LIBZMQ_CHECK_SO_PRIORITY is expanded from...
configure.ac:1044: the top level
configure.ac:1050: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:1050: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:903: LIBZMQ_CHECK_GETRANDOM is expanded from...
configure.ac:1050: the top level
autoreconf: running: /usr/bin/autoheader --include=config --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:69: installing 'config/compile'
configure.ac:14: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
autoreconf: error: automake terminated by signal: 11
autogen.sh: error: autoreconf exited with status 1

What's the expected result?

Expected result to exit with code 0 (success) without automake terminated by signal:

knst commented 2 months ago

fixed - seems as broken locale after ubuntu upgrade.

$ export LC_CTYPE=en_US.UTF-8
$ export LC_ALL=en_US.UTF-8

these 2 variables fixes autoconf running.