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.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 AD1821F463 for ; Tue, 7 Jan 2020 18:01:08 +0000 (UTC) Received: from localhost ([::1]:54438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iotAA-0002zY-Js for normalperson@yhbt.net; Tue, 07 Jan 2020 13:01:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52580) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iotA4-0002w4-Qi for bug-gnulib@gnu.org; Tue, 07 Jan 2020 13:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iotA3-000434-F5 for bug-gnulib@gnu.org; Tue, 07 Jan 2020 13:01:00 -0500 Received: from mo6-p01-ob.smtp.rzone.de ([2a01:238:20a:202:5301::11]:12579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iotA2-0003yR-OS for bug-gnulib@gnu.org; Tue, 07 Jan 2020 13:00:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1578420054; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=vvSBhBfGI8Gewu8mVIiU7/cBx9yOXyvXWJyzh/GIwIM=; b=QBvDbS7BglfumJOJ/ZbDWAE5D9mL/Y7fVqzqoXsrQLHmi4aiqorYdNhyKBhwOLP/7Q zdBol4HIYfMNUCU6VMc0jmm3aKcfkLIVPBCuhajnUDEqrKj4ienGvH+bb1zJOQ/GDhmY TL7tvRPo9YTIvU2wPZPrLER2DjnpEJDo6Zn44DBj4EXTVA+ToGCD3k6necQCYJlCS1x3 tqYpwQ/qIFzWBjoasWeEy4T0TLI5QL2sQ2xm6xReNxUOXYfWF46Q9QonPT7yp1+O+L87 wmlugMoOvGEREpyE410sqH4HNriRkdRHLfEttNNqjVyu/RCande98WSpWdIitIBzcYwS fmrw== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOH6fzxfs=" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 46.1.3 DYNA|AUTH) with ESMTPSA id R06a06w07I0rcd6 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Tue, 7 Jan 2020 19:00:53 +0100 (CET) From: Bruno Haible To: bug-gnulib@gnu.org Subject: Re: Debian Stretch: strndup.c build failure Date: Tue, 07 Jan 2020 19:00:53 +0100 Message-ID: <16795352.Q8omOGnAUH@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-170-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5301::11 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: Tim =?ISO-8859-1?Q?R=FChsen?= Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" Hi Tim, > with the latest gnulib (a7903da07d3d18c23314aa0815adbb4058fd7cec) on > Debian Stretch: > > In file included from /usr/include/string.h:630:0, > from ./string.h:41, > from strndup.c:21: > strndup.c:26:1: error: expected identifier or '(' before '__extension__' > strndup (char const *s, size_t n) > ^ > > config.log is at > https://gitlab.com/gnuwget/wget2/-/jobs/395706872/artifacts/file/config.log. An invocation of AC_CHECK_FUNC is malfunctioning because of -Werror: configure:8814: checking for strndup configure:8814: ccache gcc -o conftest -O1 -g -ggdb3 -Werror conftest.c >&5 conftest.c:150:6: error: conflicting types for built-in function 'strndup' [-Werror] char strndup (); ^~~~~~~ cc1: all warnings being treated as errors configure:8814: $? = 1 configure: failed program was: | /* confdefs.h */ | ... | /* end confdefs.h. */ | /* Define strndup to an innocuous variant, in case declares strndup. | For example, HP-UX 11i declares gettimeofday. */ | #define strndup innocuous_strndup | | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char strndup (); below. | Prefer to if __STDC__ is defined, since | exists even on freestanding compilers. */ | | #ifdef __STDC__ | # include | #else | # include | #endif | | #undef strndup | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char strndup (); | /* The GNU C library defines this for functions which it implements | to always fail with ENOSYS. Some functions are actually named | something starting with __ and the normal name is an alias. */ | #if defined __stub_strndup || defined __stub___strndup | choke me | #endif | | int | main () | { | return strndup (); | ; | return 0; | } configure:8814: result: no For this reason, -Werror is not supported at configuration-time in gnulib [1]. Bruno [1] https://lists.gnu.org/archive/html/bug-gnulib/2019-07/msg00081.html