problems compiling current cygwin cvs release

Christopher Faylor
Sat Oct 13 10:08:00 GMT 2001

On Sat, Oct 13, 2001 at 10:10:00AM +0200, Ralf Habacker wrote:
>I have problem compiling the current cygwin cvs release
>habacker@BRAMSCHE ~/src/
>$ make
>gcc -c -gstabs+ -O2 -MD -fbuiltin ... glob.c
>../../../src/winsup/cygwin/glob.c:156: parse error before `*'
>../../../src/winsup/cygwin/glob.c:156: warning: type defaults to `int' in
>declaration of `g_opendir'
>../../../src/winsup/cygwin/glob.c:156: warning: data definition has no type or
>storage class
>../../../src/winsup/cygwin/glob.c: In function `glob3':
>../../../src/winsup/cygwin/glob.c:590: `DIR' undeclared (first use in this
>../../../src/winsup/cygwin/glob.c:590: (Each undeclared identifier is reported
>only once
>../../../src/winsup/cygwin/glob.c:590: for each function it appears in.)
>../../../src/winsup/cygwin/glob.c:590: `dirp' undeclared (first use in this
>../../../src/winsup/cygwin/glob.c:590: warning: statement with no effect
>../../../src/winsup/cygwin/glob.c:591: parse error before `int'
>A workaround is to add the following to glob.c:
>#include <cygwin/sys/dirent.h>

I'm not seeing this.  It sounds like you are missing a '-I' on the command line
for some reason.

>BTW: This problem occurs with too before I updated newlib today morning.
>2. On linking the cygwin dll the following file is used from the libiberty:
>	/home/habacker/src/
>If one configure libiberty for using with ld the function strsignal() isn't
>because configure finds a defined strsignal.
>If libiberty is shared between cygwin an ld/binutils, than there is a problem.

Your build area is screwed up.  cygwin is not supposed to share a libiberty with
'ld'.  If you have cygwin in the same build area as 'ld' then the layout should
look something like this:



More information about the Cygwin-apps mailing list