GNU bug report logs - #19357
[PATCH] grep: fails to build grep on a machine which has no PCRE with --enable-gcc-warnings

Previous Next

Package: grep;

Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Date: Fri, 12 Dec 2014 15:55:02 UTC

Severity: normal

Tags: patch

Done: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Meyering <jim <at> meyering.net>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: 19357 <at> debbugs.gnu.org
Subject: bug#19357: [PATCH] grep: fails to build grep on a machine which has no PCRE with --enable-gcc-warnings
Date: Fri, 12 Dec 2014 08:54:22 -0800
[Message part 1 (text/plain, inline)]
On Fri, Dec 12, 2014 at 7:53 AM, Norihiro Tanaka <noritnk <at> kcn.ne.jp> wrote:
> If a machine has no PCRE, grep fails to build grep on it du to
> -Werror=unused-variable with --enable-gcc-warnings.  I found it on
> Fedora 21 (GCC 4.9.2).
>
> $ ./configure --enable-gcc-warnings
>
> $ make
...
>   CC       pcresearch.o
> pcresearch.c:43:12: error: 'empty_match' defined but not used [-Werror=unused-variable]
>  static int empty_match[2];

Thank you. I've adjusted your patch (removed NEWS entry, modified commit message
to be more in line with our conventions), and will push shortly:
[0001-build-avoid-build-failure-with-enable-gcc-warnings-a.patch (application/octet-stream, attachment)]

This bug report was last modified 10 years and 162 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.