[Mono-dev] Workaround for build failure on Linux

cpMon page.cal at gmail.com
Wed Mar 3 10:12:26 EST 2010


Here's a compile error from 2.6.1 and your latest svn tree:

CC	io.lo
In file included from ../../mono/io-layer/wapi.h:28,
                 from io.c:32:
../../mono/io-layer/sockets.h:85: error: conflicting types for ‘close’
/usr/include/unistd.h:350: note: previous declaration of ‘close’ was here
make[3]: *** [io.lo] Error 1
make[3]: Leaving directory `/usr/src/mono-2.6.1-svn/mono/io-layer'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/mono-2.6.1-svn/mono'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/mono-2.6.1-svn'
make: *** [all] Error 2

A workaround is to // out line 85 in sockets.h

Cal Page
-- 
View this message in context: http://n4.nabble.com/Workaround-for-build-failure-on-Linux-tp1576697p1576697.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list