[Mono-list] build error

Piyush, Garyali (IE10) Piyush.Garyali@honeywell.com
Sat, 2 Nov 2002 05:41:23 -0600


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.

I am attaching the error that was generated
------<>---------
io-layer-dummy.c:11: warning: initialization discards qualifiers from
pointer target type
util.c: In function `mono_set_rootdir':
util.c:29: warning: implicit declaration of function
`mono_assembly_setrootdir'
domain.c: In function `mono_domain_assembly_open':
domain.c:458: warning: passing arg 2 of `g_hash_table_insert' discards
qualifiers from pointer target type
domain.c:464: warning: passing arg 2 of `g_hash_table_insert' discards
qualifiers from pointer target type
mono-config.c: In function `mono_config_init':
mono-config.c:211: warning: passing arg 2 of `g_hash_table_insert' discards
qualifiers from pointer target type
mono-config.c:211: warning: passing arg 3 of `g_hash_table_insert' discards
qualifiers from pointer target type
mono-config.c: In function `mono_config_parse':
mono-config.c:243: warning: unused variable `user_cfg'
rawbuffer.c: In function `mono_raw_buffer_load_mmap':
rawbuffer.c:93: warning: implicit declaration of function `_get_osfhandle'
loader.c: In function `mono_add_internal_call':
loader.c:49: warning: passing arg 3 of `g_hash_table_insert' discards
qualifiers from pointer target type
reflection.c: In function `mono_image_add_cattrs':
reflection.c:611: warning: deprecated use of label at end of compound
statement
reflection.c: In function `mono_reflection_create_runtime_class':
reflection.c:4433: warning: comparison of distinct pointer types lacks a
cast
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'
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'
In file included from /usr/include/w32api/windef.h:235,
                 from /usr/include/w32api/windows.h:48,
                 from icall.c:45:
/usr/include/w32api/winnt.h:51: conflicting types for `LONG'
../../mono/io-layer/uglify.h:29: previous declaration of `LONG'
/usr/include/w32api/winnt.h:55: conflicting types for `ULONG'
../../mono/io-layer/uglify.h:30: previous declaration of `ULONG'
/usr/include/w32api/winnt.h:92: conflicting types for `TCHAR'
../../mono/io-layer/uglify.h:33: previous declaration of `TCHAR'
/usr/include/w32api/winnt.h:97: conflicting types for `LPTSTR'
../../mono/io-layer/uglify.h:20: previous declaration of `LPTSTR'
/usr/include/w32api/winnt.h:98: conflicting types for `LPCTSTR'
../../mono/io-layer/uglify.h:19: previous declaration of `LPCTSTR'
/usr/include/w32api/winnt.h:118: conflicting types for `PLONG'
../../mono/io-layer/uglify.h:31: previous declaration of `PLONG'
/usr/include/w32api/winnt.h:138: conflicting types for `LONGLONG'
../../mono/io-layer/uglify.h:32: previous declaration of `LONGLONG'
In file included from /usr/include/w32api/winnt.h:163,
                 from /usr/include/w32api/windef.h:235,
                 from /usr/include/w32api/windows.h:48,
                 from icall.c:45:
/usr/include/w32api/basetsd.h:106: conflicting types for `SIZE_T'
../../mono/io-layer/uglify.h:34: previous declaration of `SIZE_T'
In file included from /usr/include/w32api/windef.h:235,
                 from /usr/include/w32api/windows.h:48,
                 from icall.c:45:
/usr/include/w32api/winnt.h:1265: conflicting types for `FLOATING_SAVE_AREA'
../../mono/io-layer/uglify.h:57: previous declaration of
`FLOATING_SAVE_AREA'
/usr/include/w32api/winnt.h:1292: conflicting types for `CONTEXT'
../../mono/io-layer/uglify.h:59: previous declaration of `CONTEXT'
/usr/include/w32api/winnt.h:1774: conflicting types for `PCONTEXT'
../../mono/io-layer/uglify.h:60: previous declaration of `PCONTEXT'
/usr/include/w32api/winnt.h:1799: conflicting types for `LARGE_INTEGER'
../../mono/io-layer/uglify.h:53: previous declaration of `LARGE_INTEGER'
/usr/include/w32api/winnt.h:1799: conflicting types for `PLARGE_INTEGER'
../../mono/io-layer/uglify.h:54: previous declaration of `PLARGE_INTEGER'
/usr/include/w32api/winnt.h:1831: conflicting types for
`SECURITY_ATTRIBUTES'
../../mono/io-layer/uglify.h:41: previous declaration of
`SECURITY_ATTRIBUTES'
/usr/include/w32api/winnt.h:1831: conflicting types for
`LPSECURITY_ATTRIBUTES'
../../mono/io-layer/uglify.h:42: previous declaration of
`LPSECURITY_ATTRIBUTES'
In file included from /usr/include/w32api/windows.h:48,
                 from icall.c:45:
/usr/include/w32api/windef.h:274: conflicting types for `HMODULE'
../../mono/io-layer/uglify.h:39: previous declaration of `HMODULE'
In file included from /usr/include/w32api/windows.h:51,
                 from icall.c:45:
/usr/include/w32api/winbase.h:512: conflicting types for `FILETIME'
../../mono/io-layer/uglify.h:47: previous declaration of `FILETIME'
/usr/include/w32api/winbase.h:512: conflicting types for `LPFILETIME'
../../mono/io-layer/uglify.h:48: previous declaration of `LPFILETIME'
/usr/include/w32api/winbase.h:604: conflicting types for
`LPTHREAD_START_ROUTINE'
../../mono/io-layer/uglify.h:44: previous declaration of
`LPTHREAD_START_ROUTINE'
/usr/include/w32api/winbase.h:674: conflicting types for `LPOVERLAPPED'
../../mono/io-layer/uglify.h:43: previous declaration of `LPOVERLAPPED'
/usr/include/w32api/winbase.h:720: conflicting types for
`PROCESS_INFORMATION'
../../mono/io-layer/uglify.h:67: previous declaration of
`PROCESS_INFORMATION'
/usr/include/w32api/winbase.h:737: conflicting types for `CRITICAL_SECTION'
../../mono/io-layer/uglify.h:45: previous declaration of `CRITICAL_SECTION'
/usr/include/w32api/winbase.h:737: conflicting types for
`LPCRITICAL_SECTION'
../../mono/io-layer/uglify.h:46: previous declaration of
`LPCRITICAL_SECTION'
/usr/include/w32api/winbase.h:747: conflicting types for `SYSTEMTIME'
../../mono/io-layer/uglify.h:49: previous declaration of `SYSTEMTIME'
/usr/include/w32api/winbase.h:747: conflicting types for `LPSYSTEMTIME'
../../mono/io-layer/uglify.h:50: previous declaration of `LPSYSTEMTIME'
/usr/include/w32api/winbase.h:755: conflicting types for
`WIN32_FILE_ATTRIBUTE_DATA'
../../mono/io-layer/uglify.h:63: previous declaration of
`WIN32_FILE_ATTRIBUTE_DATA'
/usr/include/w32api/winbase.h:812: conflicting types for
`GetFileExInfoStandard'
../../mono/io-layer/io.h:101: previous declaration of
`GetFileExInfoStandard'
/usr/include/w32api/winbase.h:814: conflicting types for
`GetFileExMaxInfoLevel'
../../mono/io-layer/io.h:103: previous declaration of
`GetFileExMaxInfoLevel'
/usr/include/w32api/winbase.h:832: conflicting types for `SYSTEM_INFO'
../../mono/io-layer/uglify.h:55: previous declaration of `SYSTEM_INFO'
/usr/include/w32api/winbase.h:832: conflicting types for `LPSYSTEM_INFO'
../../mono/io-layer/uglify.h:56: previous declaration of `LPSYSTEM_INFO'
/usr/include/w32api/winbase.h:986: conflicting types for `CloseHandle'
../../mono/io-layer/handles.h:15: previous declaration of `CloseHandle'
/usr/include/w32api/winbase.h:1026: conflicting types for `CreatePipe'
../../mono/io-layer/io.h:188: previous declaration of `CreatePipe'
/usr/include/w32api/winbase.h:1036: conflicting types for `CreateThread'
../../mono/io-layer/threads.h:42: previous declaration of `CreateThread'
/usr/include/w32api/winbase.h:1046: conflicting types for
`DeleteCriticalSection'
../../mono/io-layer/critical-sections.h:28: previous declaration of
`DeleteCriticalSection'
/usr/include/w32api/winbase.h:1063: conflicting types for
`EnterCriticalSection'
../../mono/io-layer/critical-sections.h:31: previous declaration of
`EnterCriticalSection'
/usr/include/w32api/winbase.h:1075: conflicting types for `ExitThread'
../../mono/io-layer/threads.h:44: previous declaration of `ExitThread'
/usr/include/w32api/winbase.h:1085: conflicting types for
`FileTimeToSystemTime'
../../mono/io-layer/io.h:169: previous declaration of `FileTimeToSystemTime'
/usr/include/w32api/winbase.h:1088: conflicting types for `FindClose'
../../mono/io-layer/io.h:173: previous declaration of `FindClose'
/usr/include/w32api/winbase.h:1104: conflicting types for `FlushFileBuffers'
../../mono/io-layer/io.h:156: previous declaration of `FlushFileBuffers'
/usr/include/w32api/winbase.h:1141: conflicting types for
`GetCurrentProcess'
../../mono/io-layer/processes.h:111: previous declaration of
`GetCurrentProcess'
/usr/include/w32api/winbase.h:1142: conflicting types for
`GetCurrentProcessId'
../../mono/io-layer/processes.h:112: previous declaration of
`GetCurrentProcessId'
/usr/include/w32api/winbase.h:1143: conflicting types for `GetCurrentThread'
../../mono/io-layer/threads.h:47: previous declaration of `GetCurrentThread'
/usr/include/w32api/winbase.h:1144: conflicting types for
`GetCurrentThreadId'
../../mono/io-layer/threads.h:46: previous declaration of
`GetCurrentThreadId'
/usr/include/w32api/winbase.h:1159: conflicting types for
`GetExitCodeProcess'
../../mono/io-layer/processes.h:115: previous declaration of
`GetExitCodeProcess'
/usr/include/w32api/winbase.h:1160: conflicting types for
`GetExitCodeThread'
../../mono/io-layer/threads.h:45: previous declaration of
`GetExitCodeThread'
/usr/include/w32api/winbase.h:1168: conflicting types for `GetFileSize'
../../mono/io-layer/io.h:161: previous declaration of `GetFileSize'
/usr/include/w32api/winbase.h:1170: conflicting types for `GetFileTime'
../../mono/io-layer/io.h:164: previous declaration of `GetFileTime'
/usr/include/w32api/winbase.h:1171: conflicting types for `GetFileType'
../../mono/io-layer/io.h:160: previous declaration of `GetFileType'
/usr/include/w32api/winbase.h:1213: conflicting types for `GetProcessTimes'
../../mono/io-layer/processes.h:119: previous declaration of
`GetProcessTimes'
/usr/include/w32api/winbase.h:1216: conflicting types for
`GetProcessWorkingSetSize'
../../mono/io-layer/processes.h:125: previous declaration of
`GetProcessWorkingSetSize'
/usr/include/w32api/winbase.h:1238: conflicting types for `GetStdHandle'
../../mono/io-layer/io.h:150: previous declaration of `GetStdHandle'
/usr/include/w32api/winbase.h:1241: conflicting types for `GetSystemInfo'
../../mono/io-layer/system.h:40: previous declaration of `GetSystemInfo'
/usr/include/w32api/winbase.h:1253: conflicting types for `GetThreadContext'
../../mono/io-layer/context.h:84: previous declaration of `GetThreadContext'
/usr/include/w32api/winbase.h:1310: conflicting types for
`InitializeCriticalSection'
../../mono/io-layer/critical-sections.h:26: previous declaration of
`InitializeCriticalSection'
/usr/include/w32api/winbase.h:1319: conflicting types for
`InterlockedCompareExchange'
../../mono/io-layer/atomic.h:31: previous declaration of
`InterlockedCompareExchange'
/usr/include/w32api/winbase.h:1323: conflicting types for
`InterlockedDecrement'
../../mono/io-layer/atomic.h:62: previous declaration of
`InterlockedDecrement'
/usr/include/w32api/winbase.h:1324: conflicting types for
`InterlockedExchange'
../../mono/io-layer/atomic.h:81: previous declaration of
`InterlockedExchange'
/usr/include/w32api/winbase.h:1328: conflicting types for
`InterlockedExchangeAdd'
../../mono/io-layer/atomic.h:104: previous declaration of
`InterlockedExchangeAdd'
/usr/include/w32api/winbase.h:1329: conflicting types for
`InterlockedIncrement'
../../mono/io-layer/atomic.h:51: previous declaration of
`InterlockedIncrement'
/usr/include/w32api/winbase.h:1344: conflicting types for
`LeaveCriticalSection'
../../mono/io-layer/critical-sections.h:32: previous declaration of
`LeaveCriticalSection'
/usr/include/w32api/winbase.h:1423: conflicting types for `OpenProcess'
../../mono/io-layer/processes.h:114: previous declaration of `OpenProcess'
/usr/include/w32api/winbase.h:1441: conflicting types for `PulseEvent'
../../mono/io-layer/events.h:17: previous declaration of `PulseEvent'
/usr/include/w32api/winbase.h:1445: conflicting types for
`QueryPerformanceCounter'
../../mono/io-layer/timefuncs.h:23: previous declaration of
`QueryPerformanceCounter'
/usr/include/w32api/winbase.h:1446: conflicting types for
`QueryPerformanceFrequency'
../../mono/io-layer/timefuncs.h:24: previous declaration of
`QueryPerformanceFrequency'
/usr/include/w32api/winbase.h:1452: conflicting types for `ReadFile'
../../mono/io-layer/io.h:152: previous declaration of `ReadFile'
/usr/include/w32api/winbase.h:1458: conflicting types for `ReleaseMutex'
../../mono/io-layer/mutexes.h:17: previous declaration of `ReleaseMutex'
/usr/include/w32api/winbase.h:1459: conflicting types for `ReleaseSemaphore'
../../mono/io-layer/semaphores.h:19: previous declaration of
`ReleaseSemaphore'
/usr/include/w32api/winbase.h:1464: conflicting types for `ResetEvent'
../../mono/io-layer/events.h:18: previous declaration of `ResetEvent'
/usr/include/w32api/winbase.h:1465: conflicting types for `ResumeThread'
../../mono/io-layer/threads.h:48: previous declaration of `ResumeThread'
/usr/include/w32api/winbase.h:1481: conflicting types for `SetEndOfFile'
../../mono/io-layer/io.h:157: previous declaration of `SetEndOfFile'
/usr/include/w32api/winbase.h:1485: conflicting types for `SetEvent'
../../mono/io-layer/events.h:19: previous declaration of `SetEvent'
/usr/include/w32api/winbase.h:1490: conflicting types for `SetFilePointer'
../../mono/io-layer/io.h:159: previous declaration of `SetFilePointer'
/usr/include/w32api/winbase.h:1494: conflicting types for `SetFileTime'
../../mono/io-layer/io.h:167: previous declaration of `SetFileTime'
/usr/include/w32api/winbase.h:1498: conflicting types for `SetLastError'
../../mono/io-layer/error.h:1799: previous declaration of `SetLastError'
/usr/include/w32api/winbase.h:1508: conflicting types for
`SetProcessWorkingSetSize'
../../mono/io-layer/processes.h:127: previous declaration of
`SetProcessWorkingSetSize'
/usr/include/w32api/winbase.h:1534: conflicting types for
`SignalObjectAndWait'
../../mono/io-layer/wait.h:30: previous declaration of `SignalObjectAndWait'
/usr/include/w32api/winbase.h:1536: conflicting types for `Sleep'
../../mono/io-layer/threads.h:54: previous declaration of `Sleep'
/usr/include/w32api/winbase.h:1537: conflicting types for `SleepEx'
../../mono/io-layer/threads.h:55: previous declaration of `SleepEx'
/usr/include/w32api/winbase.h:1538: conflicting types for `SuspendThread'
../../mono/io-layer/threads.h:49: previous declaration of `SuspendThread'
/usr/include/w32api/winbase.h:1545: conflicting types for `TlsAlloc'
../../mono/io-layer/threads.h:50: previous declaration of `TlsAlloc'
/usr/include/w32api/winbase.h:1546: conflicting types for `TlsFree'
../../mono/io-layer/threads.h:51: previous declaration of `TlsFree'
/usr/include/w32api/winbase.h:1547: conflicting types for `TlsGetValue'
../../mono/io-layer/threads.h:52: previous declaration of `TlsGetValue'
/usr/include/w32api/winbase.h:1548: conflicting types for `TlsSetValue'
../../mono/io-layer/threads.h:53: previous declaration of `TlsSetValue'
/usr/include/w32api/winbase.h:1551: conflicting types for
`TryEnterCriticalSection'
../../mono/io-layer/critical-sections.h:30: previous declaration of
`TryEnterCriticalSection'
/usr/include/w32api/winbase.h:1574: conflicting types for
`WaitForMultipleObjects'
../../mono/io-layer/wait.h:32: previous declaration of
`WaitForMultipleObjects'
/usr/include/w32api/winbase.h:1576: conflicting types for
`WaitForSingleObject'
../../mono/io-layer/wait.h:28: previous declaration of `WaitForSingleObject'
/usr/include/w32api/winbase.h:1581: conflicting types for `WriteFile'
../../mono/io-layer/io.h:155: previous declaration of `WriteFile'
/usr/include/w32api/winbase.h:1737: conflicting types for `STARTUPINFO'
../../mono/io-layer/uglify.h:65: previous declaration of `STARTUPINFO'
/usr/include/w32api/winbase.h:1737: conflicting types for `LPSTARTUPINFO'
../../mono/io-layer/uglify.h:66: previous declaration of `LPSTARTUPINFO'
/usr/include/w32api/winbase.h:1738: conflicting types for `WIN32_FIND_DATA'
../../mono/io-layer/uglify.h:61: previous declaration of `WIN32_FIND_DATA'
/usr/include/w32api/winbase.h:1738: conflicting types for
`LPWIN32_FIND_DATA'
../../mono/io-layer/uglify.h:62: previous declaration of `LPWIN32_FIND_DATA'
In file included from /usr/include/w32api/windows.h:56,
                 from icall.c:45:
/usr/include/w32api/winuser.h:2905: conflicting types for `GetLastError'
../../mono/io-layer/error.h:1798: previous declaration of `GetLastError'
In file included from /usr/include/w32api/windows.h:62,
                 from icall.c:45:
/usr/include/w32api/winver.h:99: conflicting types for `VS_FIXEDFILEINFO'
../../mono/io-layer/uglify.h:68: previous declaration of `VS_FIXEDFILEINFO'
icall.c: In function `ves_icall_System_Environment_get_MachineName':
icall.c:2482: warning: passing arg 1 of `GetComputerNameA' from incompatible
pointer type
make[3]: *** [icall.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2


Could anybody tell me as to what has to be done because I am kind of stuck.

Thx in adv,
~Gary