Page MenuHome GnuPG

Gawk 5.0 and warning: regexp escape sequence `\#' is not a known regexp operator
Closed, ResolvedPublic

Description

Hi Everyone,

I'm on Darwin OS X 10.9 x86_64. I'm trying to upgrade to GnuPG 2.2.15 from https://www.gnupg.org/download/. libgpgerror is giving trouble on Solaris.

gmake[2]: Entering directory '/Users/build/libgpg-error-1.35/src'
gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-sources.h.in >err-sources-sym.h
gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
        ./err-codes.h.in >err-codes-sym.h
gawk: ./mkerrnos.awk:86: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkerrcodes1.awk:84: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator
gawk: ./mkstrtable.awk:113: warning: regexp escape sequence `\#' is not a known regexp operator

It looks like it is a known problem with Gawk 5.0. Something about switching to Gnulib.

$ command -v gawk
/opt/local/bin/gawk

$ /opt/local/bin/gawk --version
GNU Awk 5.0.0, API: 2.0
...

The stuff in /opt/local is coming from MacPorts. MacPorts is in the tail of my PATH:

$ echo $PATH
/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/opt/local/sbin/:/opt/local/bin

Event Timeline

JW created this object in space S1 Public.
JW updated the task description. (Show Details)
werner claimed this task.
werner added a project: Duplicate.
werner added a subscriber: werner.

We fixed this bug already in the repo. See T4459.