Build Fails with AUTOMAKE v1.16.5 on Ubuntu - Solution Provided

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



alsa-project/alsa-utils issue #182 was opened from frkli1965:

I found that the prescribed compilation method in the 'INSTALL' file did not work on Ubuntu with Linux kernel v6.0.9 using 'automake 'and 'aclocal'  v1.16.5!

The following errors were encountered:-

Updating EXTRA_DIST in m4/Makefile.am (backup is in m4/Makefile.am~)
Updating configure.ac (backup is in configure.ac~)
Adding an entry to ChangeLog (backup is in ChangeLog~)

Please run 'aclocal -I m4' to regenerate the aclocal.m4 file.
You need aclocal from GNU automake 1.9 (or newer) to do this.
Then run 'autoconf' to regenerate the configure file.

You might also want to copy the convenience header file gettext.h
from the /usr/share/gettext directory into your package.
It is a wrapper around <libintl.h> that implements the configure --disable-nls
option.

Press Return to acknowledge the previous two paragraphs.

configure.ac:466: error: `po/Makefile.in' is already registered with AC_CONFIG_FILES.
./lib/autoconf/status.m4:289: AC_CONFIG_FILES is expanded from...
configure.ac:466: the top level
autom4te: error: /usr/bin/m4 failed with exit status: 1
autoheader: error: '/usr/bin/autom4te' failed with exit status: 1
configure.ac:466: error: `po/Makefile.in' is already registered with AC_CONFIG_FILES.
./lib/autoconf/status.m4:289: AC_CONFIG_FILES is expanded from...
configure.ac:466: the top level
autom4te: error: /usr/bin/m4 failed with exit status: 1
automake: error: autoconf failed with exit status: 1
configure.ac:466: error: `po/Makefile.in' is already registered with AC_CONFIG_FILES.
./lib/autoconf/status.m4:289: AC_CONFIG_FILES is expanded from...
configure.ac:466: the top level
autom4te: error: /usr/bin/m4 failed with exit status: 1


****************************************** THE FIX ******************************************

git clone https://github.com/alsa-project/alsa-utils.git
cd alsa-utils
wget https://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
wget https://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
aclocal --force -I m4
autoreconf -fiv
gettextize
autoheader
automake --foreign --copy --add-missing
./configure --disable-alsatest --disable-alsaconf --disable-bat --disable-xmlto --with-curses=ncursesw
make

*********************************************************************************************

Despite lots of warnings as follows:-

libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
configure.ac:22: warning: The macro `AM_PROG_LIBTOOL' is obsolete.
configure.ac:26: warning: The macro `AC_ERROR' is obsolete.
configure.ac:223: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:313: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:397: warning: The macro `AC_HEADER_TIME' is obsolete.
configure.ac:466: warning: AC_OUTPUT should be used without arguments.
alsactl/Makefile.am:69: warning: '%'-style pattern rules are a GNU make extension
gettextize: *** po/Makefile.in.in exists: use option -f if you really want to delete it.

and ones regarding the .po files e.g.

fr.po:828: warning: internationalised messages should not contain the '\r' escape sequence
eu.po:849: warning: internationalised messages should not contain the '\r' escape sequence

etc...

The build and installation succeeded nevertheless.

One other issue was that 'alsamixer' refused to run unless a system link was created for 'libasound_module_ctl_pipewire.so' as follows:-

sudo ln -s /usr/local/lib/x86_64-linux-gnu/alsa-lib/libasound_module_ctl_pipewire.so /usr/local/lib/alsa-lib/libasound_module_ctl_pipewire.so

which is most likely an Ubuntu (Debian) specific problem.

The following toolchain was utilised:-

aclocal (GNU automake) 1.16.5
autoreconf (GNU Autoconf) 2.71
gettextize (GNU gettext-tools) 0.21
autoheader (GNU Autoconf) 2.71
automake (GNU automake) 1.16.5
gcc version 12.1.0 (Ubuntu 12.1.0-2ubuntu1~22.04)

You're welcome!!!

Issue URL     : https://github.com/alsa-project/alsa-utils/issues/182
Repository URL: https://github.com/alsa-project/alsa-utils



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux