From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6C7BE1F885 for ; Sat, 11 Jan 2020 01:33:04 +0000 (UTC) Received: from localhost ([::1]:53430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq5eA-0004dP-TL for normalperson@yhbt.net; Fri, 10 Jan 2020 20:33:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47162) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq5e6-0004d7-Br for bug-gnulib@gnu.org; Fri, 10 Jan 2020 20:32:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq5e4-00079O-Sx for bug-gnulib@gnu.org; Fri, 10 Jan 2020 20:32:58 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53178) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iq5e4-0006y3-Lf for bug-gnulib@gnu.org; Fri, 10 Jan 2020 20:32:56 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B39711600E0; Fri, 10 Jan 2020 17:32:54 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1NCb9hrY_F-Q; Fri, 10 Jan 2020 17:32:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 98E4C1600E9; Fri, 10 Jan 2020 17:32:52 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id CIDebdWaPCCr; Fri, 10 Jan 2020 17:32:52 -0800 (PST) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7ED811600E0; Fri, 10 Jan 2020 17:32:52 -0800 (PST) Subject: Re: Messed up gl_COMPILER_PREPARE_CHECK_DECL To: Bruno Haible References: <20200110151102.GA6823@aun.utmark.mea> <1224659061.1063125.1578687268126@strato-communicator.net> <7bbc3318-feb4-4510-fd5f-696867c82c31@cs.ucla.edu> <14916853.LUQoWjy5sj@omega> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Fri, 10 Jan 2020 17:32:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <14916853.LUQoWjy5sj@omega> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 1/10/20 2:47 PM, Bruno Haible wrote: > Thanks for the simple-to-reproduce recipe. I've pushed this fix: Unfortunately even with that fix I still have trouble building Emacs.=20 That is, with this recipe: mkdir d cd d git clone https://git.savannah.gnu.org/git/emacs.git cd emacs admin/merge-gnulib ./autogen.sh ./configure make (same recipe as before, but now with "configure; make" at the end) the=20 build now fails this way: CC strtoimax.o strtoimax.c:44:15: error: redundant redeclaration of =E2=80=98strtoll=E2=80= =99=20 [-Werror=3Dredundant-decls] 44 | long long int strtoll (char const *, char **, int); | ^~~~~~~ In file included from ./stdlib.h:36, from strtoimax.c:26: /usr/include/stdlib.h:200:22: note: previous declaration of =E2=80=98strt= oll=E2=80=99=20 was here 200 | extern long long int strtoll (const char *__restrict __nptr, | ^~~~~~~ make[1]: *** [Makefile:95: strtoimax.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/home/eggert/src/gnu/emacs/static-checking/li= b' make: *** [Makefile:411: lib] Error 2 The above diagnostic comes because src/config.h contains the line=20 "#define HAVE_DECL_STRTOLL 0" which is incorrect for this platform. And=20 that incorrect line comes because ac_compile_for_check_decl is used=20 before it is set. And this occurs because Emacs's configure.ac's first=20 use of AC_CHECK_DECL is executed only on alpha platforms (which my=20 platform is not), which means the initialization of=20 ac_compile_for_check_decl is skipped.