Hi,
Building bash-4.3, I got an odd error:
In file included from ../../shell.h:22,
from glob.c:53:
../../config.h:266:1: warning: "HAVE_ALLOCA" redefined
In file included from glob.c:49:
../../include/memalloc.h:30:1: warning: this is the location of the
previous definition
glob.c: In function 'glob_vector':
glob.c:572: error: 'DIR' undeclared (first use in this function)
glob.c:572: error: (Each undeclared identifier is reported only once
glob.c:572: error: for each function it appears in.)
glob.c:572: error: 'd' undeclared (first use in this function)
glob.c:738: error: dereferencing pointer to incomplete type
glob.c:742: error: dereferencing pointer to incomplete type
glob.c:751: error: dereferencing pointer to incomplete type
glob.c:805: error: dereferencing pointer to incomplete type
glob.c:805: error: dereferencing pointer to incomplete type
glob.c:820: error: dereferencing pointer to incomplete type
glob.c:831: error: dereferencing pointer to incomplete type
glob.c:831: error: dereferencing pointer to incomplete type
Makefile:61: recipe for target 'glob.o' failed
It looked like a stray config.h from somewhere else might be getting
picked up.
Sure enough, making sure the project includes took precedence over any
includes