bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] gawk-4.0.2 build problem


From: Manuel Collado
Subject: Re: [bug-gawk] gawk-4.0.2 build problem
Date: Wed, 16 Jan 2013 11:09:35 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0

El 15/01/2013 19:14, Aharon Robbins escribió:

The change below looks OK to me. I will check it out with the GNU grep
guys though, since dfa.c comes from there.

Another possibility could be to replicate the #include <stddef.h> directive in dfa.h, instead of relying on xalloc.h doing that. Sorry, not tested, but it seems that this #include is required to have ptrdiff_t safely defined.


I think "lenny" is not that new, but I could be wrong.

Yes, it is a bit outdated. But able to build previous gawk versions up to 4.0.1 inclusive.


Thanks for the report,

Arnold

Date: Tue, 15 Jan 2013 18:37:51 +0100
From: Manuel Collado <address@hidden>
To: address@hidden
Subject: [bug-gawk] gawk-4.0.2 build problem
...
Previous gawk versions, up to 4.0.1, build ok. The problem seems to be
the introduction of the ptrdiff_t type in 4.0.2.

After tweaking a bit the source code, I've found that the problem
disappears by slightly changing the order of #include(s) in dfa.c.

Instead of (fail)

    #include "dfa.h"
    #include "xalloc.h"

I've used (works)

    #include "xalloc.h"
    #include "dfa.h"

I have little experience with the libc internals. Don't know if this
patch is safe.

--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado




reply via email to

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