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-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,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 05DA11F934 for ; Sun, 25 Oct 2020 14:21:38 +0000 (UTC) Received: from localhost ([::1]:48468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWgtt-00062H-7Z for normalperson@yhbt.net; Sun, 25 Oct 2020 10:21:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWgtr-000629-27 for bug-gnulib@gnu.org; Sun, 25 Oct 2020 10:21:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35118) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWgtq-0003JP-Pr for bug-gnulib@gnu.org; Sun, 25 Oct 2020 10:21:34 -0400 Received: from deisui.org ([219.94.251.20]:41506 helo=localhost.localdomain) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kWgtq-00069l-3C for bug-gnulib@gnu.org; Sun, 25 Oct 2020 10:21:34 -0400 Message-ID: <87sga2bd3v.fsf-ueno@gnu.org> From: Daiki Ueno To: bug-gnulib@gnu.org Subject: "GNULIB_STRERROR" redefined in single-configure package Date: Sun, 25 Oct 2020 15:21:24 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hello, In GnuTLS, we import Gnulib sources in two phases, first LGPL sources to be linked with the library, and then GPL sources for the tools and tests, something like following: In bootstrap: gnulib-tool --extract-recursive-dependencies "$gnulib_modules" gnulib-tool --import --local-dir=src/gl/override --lib=libgnu_gpl --source-base=src/gl --m4-base=src/gl/m4 --doc-base=doc --aux-dir=build-aux --no-conditional-dependencies --libtool --macro-prefix=ggl --without-tests --no-vc-files "$src_modules" In configure.ac: gl_INIT ggl_INIT It had worked until we added 'xalloc' to $src_modules, but now, confdefs.h generated during the configure phase contains two definitions of GNULIB_STRERROR and it prevents compilation with -Werror: configure:53786: gcc -o conftest -O0 -Wall -Werror -g3 conftest.c -lev >&5 conftest.c:412: error: "GNULIB_STRERROR" redefined [-Werror] 412 | #define GNULIB_STRERROR 1 | conftest.c:305: note: this is the location of the previous definition 305 | #define GNULIB_STRERROR IN_GNUTLS_GNULIB_TESTS | cc1: all warnings being treated as errors Could anyone shed some light on this? Regards, -- Daiki Ueno