bug-glibc
[Top][All Lists]
Advanced

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

Bug in texis.awk


From: Andrew Stubbs
Subject: Bug in texis.awk
Date: Fri, 18 May 2001 10:16:52 +0100 (BST)

Hi

I am currently trying to cross compile glibc 2.2.2 under solaris.

I get this message:
make[2]: Entering directory `/vob/sh-gnu/src/glibc-2.2.2/manual'
nawk -f texis.awk intro.texi errno.texi memory.texi ctype.texi string.texi
charset.texi locale.texi message.texi search.texi pattern.texi io.texi
stdio.texi llio.texi filesys.texi pipe.texi socket.texi terminal.texi
syslog.texi math.texi arith.texi time.texi resource.texi setjmp.texi
signal.texi startup.texi process.texi job.texi nss.texi users.texi
sysinfo.texi conf.texi crypt.texi debug.texi
../linuxthreads/linuxthreads.texi lang.texi header.texi install.texi
maint.texi contrib.texi lgpl.texinfo > texis.T
nawk: fmtmsgexpl.c.texi makes too many open files
 source line number 9
make[2]: *** [texis] Error 2
make[2]: Leaving directory `/vob/sh-gnu/src/glibc-2.2.2/manual'
make[1]: *** [manual/subdir_lib] Error 2
make[1]: Leaving directory `/vob/sh-gnu/src/glibc-2.2.2'
make: *** [all] Error 2

I have traced this to glibc-2.2.2/manual/texis.awk:
BEGIN {
    print "texis = \\";
    for(x = 1; x < ARGC; x++)
    {
        input[0] = ARGV[x];
        print ARGV[x], "\\";
        for (s = 0; s >= 0; s--)
        {
            while ((getline < input[s]) > 0)
            {
                if ($1 == "@include") 
                {
                    input[++s] = $2;
                    print $2, "\\";
                }
            }
            close(input[stackptr]);
        }
    }
    print "";
}

The variable 'stackptr' is clearly wrong and I believe should be 's'.
The only reference I could find to this file in either GNATS or the mail
archive is to do with it mistakenly writing to the source tree so I don't
believe you know about this bug - it is probably sensetive to the version
of nawk and/or OS.

Please fix this,

------------------------------------------------------------------------
|  Andrew Stubbs,                   |  E-mail: address@hidden    |
|  STMicroelectronics Ltd.,         |  or      address@hidden  |
|  1000 Aztec West,                 |                                  |
|  Almondsbury,                     |  Tel:    +44 (0)1454 462325      |
|  Bristol, BS32 4SQ, U.K.          |  Fax:    +44 (0)1454 617910      |
------------------------------------------------------------------------




reply via email to

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