This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

CYGWIN 1.3.1 compile error


Hi,

I have downloaded the recent snapshot. Compilation stopped with an error
and the following message:

gcc -c  -I. -I. -I/cygdrive/g/insight+dejagnu-20010503/tcl/generic
-I/cygdrive/g
/insight+dejagnu-20010503/tk/generic
-I/cygdrive/g/insight+dejagnu-20010503/tk/x
lib -DEXP_VERSION=\"5.26\" -DSCRIPTDIR=\"/usr/local/share\"
-DEXECSCRIPTDIR=\"/u
sr/local/lib\" -DTCL_DEBUGGER -g -O2  -DCYGWIN_ALTTCL
-DDFLT_STTY="\"sane\""  exp_command.c
In file included from /usr/include/w32api/windef.h:145,
                 from /usr/include/w32api/windows.h:98,
                 from exp_command.c:626:
/usr/include/w32api/winnt.h:48: parse error before `CCHAR'
/usr/include/w32api/winnt.h:48: warning: data definition has no type or
storage
class
/usr/include/w32api/winnt.h:68: parse error before `*'
/usr/include/w32api/winnt.h:68: warning: data definition has no type or
storage
class
...
...
many more error messages

I use the recent gcc:
$ gcc -v
Reading specs from /bin/../lib/gcc-lib/i686-pc-cygwin/2.95.3-4/specs
gcc version 2.95.3-4 (cygwin special)
$ uname -a
CYGWIN_98-4.10 A7W7R0 1.3.1(0.38/3/2) 2001-04-24 20:01 i586 unknown


Adding a line #undef VOID   to exp_command.c removed the error.

$ diff exp_command.c exp_command.c.bak
626d625
< #undef VOID

This also happened with the July 2000 Insight sources, so it may be a
compatibility problem with the new CYGWIN.

A similar error had been reported in
http://sources.redhat.com/ml/insight-prs/2001-q2/msg00000.html
I could not identify the patch there, which might be different

Holger


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]