[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gawk compatibility mode build error?
From: |
NR |
Subject: |
Re: gawk compatibility mode build error? |
Date: |
Wed, 4 Jun 2025 17:43:09 -0500 |
On Wed, Jun 4, 2025 at 5:23 PM NR <nroycea+gnu@gmail.com> wrote:
>
> On Wed, Jun 4, 2025 at 9:49 AM Gavin Smith <gavinsmith0123@gmail.com> wrote:
> >
> > On Wed, Jun 04, 2025 at 04:07:43AM -0500, NR wrote:
> > > On Wed, Jun 4, 2025 at 4:05 AM NR <nroycea+gnu@gmail.com> wrote:
> > > >
> > > > b92d3c94189a7cbf8ca7fba5a4ccdec03459386c
> > > > ```
> > > > gawk -f ./jrtangle ./ti.twjr || rm -f texindex.awk
> > > > gawk: ./jrtangle:28: match(PROCINFO["version"], /^[0-9]+\./,
> > > > v);
> > > > gawk: ./jrtangle:28:
> > > > ^ match: third argument is a gawk extension
> > > > sed -e 's,[@]pkgdatadir[@],/usr/share/texinfo,g' -e
> > > > 's,[@]TI_AWK[@],/usr/bin/awk,g' -e 's,[@]PACKAGE[@],texinfo,g' -e
> > > > 's,[@][@]*VERSION[@][@]*,7.2dev,g' <texindex.awk >texindex.awk-tmp
> > > > ```
> > > > (third argument is the `v`)
> > > >
> > > > gawk 5.3.1 (Arch)
> > >
> > > Correction: 0de2b6d89ee2e99b18058f9b620d6b5744f46b83
> > >
> >
> > Does the build stop at this point or is it just a warning
> > message?
> >
> > Evidently gawk is running in some kind of compatibility mode
> > where it refuses to accept gawk extensions.
> >
> > https://www.gnu.org/software/gawk/manual/html_node/String-Functions.html#index-match_0028_0029-function
> >
> > "The array argument to match() is a gawk extension. In compatibility mode
> > (see Command-Line Options), using a third argument is a fatal error."
> >
> > I don't understand why this would be in compatibility mode though.
>
> Yup, the next couple of lines:
> ```
> /bin/sh: line 1: texindex.awk: No such file or directory
> make[3]: *** [Makefile:2466: texindex.awk] Error 1
> ```
> Makefile:
> ```
> 2461 # don't look at sources from some subdirs.
> \
> 2462 case $$file in
> \
> 2463 contrib/* ) continue;;
> \
> 2464 man/* ) continue;; \
> 2465 texinfo-*/*) continue;;
> \
> 2466 tta/maintain/*) continue;;
> \
> ```
Correction:
texinfo/Makefile:
```
2464 texindex.awk: ti.twjr
2465 $(GAWK) -f $(srcdir)/jrtangle $(srcdir)/ti.twjr || rm
-f texindex.awk
2466 $(do_subst) <texindex.awk >texindex.awk-tmp
2467 rm -f texindex.awk
```