Alan Hourihane wrote: > Hi all, > > With grep 2.7 I got this build error.... > > CC dfa.o > dfa.c: In function 'prepare_wc_buf': > dfa.c:3135:3: error: 'buf_begin' undeclared (first use in this function) > dfa.c:3135:3: note: each undeclared identifier is reported only once for > each function it appears in > dfa.c:3143:23: error: 'inputwcs' undeclared (first use in this function) > dfa.c:3143:70: error: 'mbs' undeclared (first use in this function) > dfa.c:3151:15: error: 'mblen_buf' undeclared (first use in this > function) > dfa.c:3169:3: error: 'buf_end' undeclared (first use in this function) > make[2]: *** [dfa.o] Error 1 > > It turns out that the function prepare_wc_buf should also be wrapped in > MBS_SUPPORT checking. > > Patch attached.
Thanks. That has already been fixed, by this change: commit 24d9aefd4be68f06b8c6c74b07e51736958d24fd Author: Aharon Robbins <[email protected]> Date: Thu Sep 16 13:12:11 2010 +0200 dfa: fix compilation when not using MBS * src/dfa.c (prepare_wc_buf) [!MBS_SUPPORT]: Do not compile this function.
