[Mono-devel-list] Build error on OSX

Steve Mentzer steve at mudflapsoftware.com
Sat Nov 1 14:47:03 EST 2003


Prior versions of the OS/X dev tools failed to declare socklen_t. Of 
course, the panther/xcode 7b85 release corrects this oversight, and as 
the mono build scripts accounted for it, it now causes an error.

basically, you will find the following lines in mono/io-layer/sockets.h

#ifdef __APPLE__
typedef unsigned int socklen_t;
#endif

make it look like this

#ifdef __APPLE__
//typedef unsigned int socklen_t;
#endif

Of course, the latest daily snapshot (10/30) failed to build 
interpreter for me due to conflicting _locale_charset symbols during 
link, but that is a different story...


On Nov 1, 2003, at 8:23 AM, Mike Flippin wrote:

> In file included from ../../mono/io-layer/wapi.h:26,
>                 from atomic.c:15:
> ../../mono/io-layer/sockets.h:27: error: conflicting types for 
> `socklen_t'
> /usr/include/sys/socket.h:79: error: previous declaration of 
> `socklen_t'
> make[3]: *** [atomic.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
>
> That's from the latest CVS source code from anoncvs. I'm using Panther 
> with the XCode developer package (includes GCC 3.3). I also recall 
> having this problem on Jaguar with the last two releases of GCC for 
> OSX.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>






More information about the Mono-devel-list mailing list