bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem report with patch for GAWK 3.1.5


From: Jonathan Leffler
Subject: Problem report with patch for GAWK 3.1.5
Date: Tue, 8 Nov 2005 17:07:22 -0700

Dear GNU Awk Maintainer Team,

Build environment:
- Sun Solaris 8 (Sun Ultra-Sparc)
- gcc (GCC) 4.0.2

The attached file contains (extracting to the current directory):

* gawk-3.1.5.patch
  This is a patch that modifies dfa.c to place the #include
  "hard-locale.h" after the declaration of xmalloc() and modifies
  hard-locale.h so that it no longer declares xmalloc(), primarily
  because it appears that GCC 4.0.2 objects to the use of a static
  function declaration inside a function.  I tried changing that to
  extern; it didn't like that either.  By repositioning the #include in
  dfa.c, the declaration in hard-locale.h is irrelevant.

* ksh.20051108-133239
  Record of the configure and build on vanilla gawk-3.1.5

* ksh.20051108-133608
  Record of the configure and build on patched gawk-3.1.5

To apply the patch to gawk-3.1.5:
                 cd gawk-3.1.5
                 patch -p1 < ../gawk-3.1.5.patch

The reconfigure and rebuild on the patched directory worked.

I note that GCC 4.0.2 is complaining (warning) about a few other issues;
I've not attempted to fix them.  These are recorded in the 'ksh.*'
files.

I upgraded from 3.0.2 because I ran into a memory leak (or continued
program growth) when running the script:

                 gawk -F'|' '{print$7;}' * | sed ... | sort ... | uniq -c 
| tee log

When I changed gawk to nawk (Solaris 8 native Awk), the same script
worked.  The (5022) files being analyzed contained a lot of lines like:

ONLN|2005-11-08 
00:20:54.804|anubis|12929|anubis_17|root|-272:RDRW:sysmaster:176:0:0

Since gawk 3.1.5 passes OK, we can assume that the problem is now fixed.
I quickly scanned the ChangeLog and didn't spot that someone else had
reported and fixed the problem.

-- 
Jonathan Leffler                           #include <disclaimer.h>
STSM, Informix Database Engineering, IBM Information Management
Phone: +1 650-926-6921   Fax: +1 650-926-6971   Tie-line: 630-6921
Email: address@hidden
Guardian of DBD::Informix v2005.01 -- http://dbi.perl.org

Attachment: gawk-3.1.5-patch.tar.bz2
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]