Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 42BFFC4332F for ; Fri, 9 Dec 2022 00:30:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 685B91899; Fri, 9 Dec 2022 01:29:46 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 685B91899 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1670545836; bh=h4HjZbi2mBL60a/3QsQm6WeUWyU9VIVA3kGmPQB0UPQ=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=fdzI/+SlpUeXH5zFTs2ioJRxBDKKcMQBlRalRNHAgohNo6d0qaGIjqqbA5r/aiIA0 hgm4/TNVMfjgEMSNUGbrpLRwMnmjFDdwcd7kNJp+iNcfqLl59+AbEGDMXMRUB+U+fh DZgd10l2ASRET0YDA77BySsToIrA7PIR4h24HwUM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 1C39AF8010D; Fri, 9 Dec 2022 01:29:46 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6E1D4F80124; Fri, 9 Dec 2022 01:29:45 +0100 (CET) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id EFA54F80007 for ; Fri, 9 Dec 2022 01:29:43 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EFA54F80007 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - edited To: alsa-devel@alsa-project.org In-Reply-To: <1670545783642249107-webhooks-bot@alsa-project.org> References: <1670545783642249107-webhooks-bot@alsa-project.org> Subject: Build Fails with AUTOMAKE v1.16.5 on Ubuntu - Solution Provided Message-Id: <20221209002945.6E1D4F80124@alsa1.perex.cz> Date: Fri, 9 Dec 2022 01:29:45 +0100 (CET) X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" alsa-project/alsa-utils issue #182 was edited from frkli1965: I found that the prescribed compilation method in the 'INSTALL' file:- aclocal gettextize autoheader automake --foreign --copy --add-missing autoconf ./configure make 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 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