[Mono-list] Re: build error

Dick Porter dick@ximian.com
04 Nov 2002 10:49:12 +0000


On Sat, 2002-11-02 at 11:41, Piyush, Garyali (IE10) wrote:
> Hi,
> 
> While building mono0.16, the following error/warnings were generated and
> thus the build failed. I can't figure out as to what's wrong with the
> icall.c file in /mono/metadata.
> 
> In file included from /usr/include/unistd.h:6,
>                  from icall.c:17:
> /usr/include/sys/unistd.h:86: parse error before numeric constant
> /usr/include/sys/unistd.h:153: conflicting types for `g_win32_ftruncate'
> C:/cygwin/usr/local/include/glib-2.0/glib/gwin32.h:72: previous declaration
> of `g_win32_ftruncate'

Something very strange is going on here if your sys/unistd.h defines
g_win32_* symbols.

> In file included from /usr/include/w32api/windows.h:48,
>                  from icall.c:45:
> /usr/include/w32api/windef.h:211: conflicting types for `DWORD'
> ../../mono/io-layer/uglify.h:24: previous declaration of `DWORD'
> /usr/include/w32api/windef.h:230: conflicting types for `LPDWORD'
> ../../mono/io-layer/uglify.h:28: previous declaration of `LPDWORD'

Again, you've somehow managed to include part of the Linux build here
(uglify.h defines some w32 types, and should not be included when
building on cygwin.)

- Dick