[Mono-list] Mac OS X build problems

Benjamin Reed ranger@befunk.com
Mon, 22 Mar 2004 14:21:49 -0500


This is a multi-part message in MIME format.
--------------030902020309080002090001
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Abram Gillespie wrote:

> I'm following the Mac OS X write up and ran into a problem.  First, I 
> think we're running different shells.  I'm not sure how to change which 
> shells you run - I'm running C Shell.  I think I got around all the 
> shell problems.  But I'm getting this during make:
> 
> daemon.c: In function `fd_activity':
> daemon.c:1152: `socklen_t' undeclared (first use in this function)
> daemon.c:1152: (Each undeclared identifier is reported only once
> daemon.c:1152: for each function it appears in.)
> daemon.c:1152: parse error before "addrlen"
> daemon.c:1154: `addrlen' undeclared (first use in this function)
> make[3]: *** [daemon.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all] Error 2
> 
> I've tried building against the CVS tree since about mid-last-week and 
> the official latest release.  Same story.
> 
> Thanks for any help as always.

This patch should fix it:

diff -uNr mono-0.30/mono/io-layer/daemon.c 
mono-0.30-new/mono/io-layer/daemon.c
--- mono-0.30/mono/io-layer/daemon.c    Mon Dec 15 14:10:14 2003
+++ mono-0.30-new/mono/io-layer/daemon.c        Thu Feb  5 09:57:17 2004
@@ -32,6 +32,7 @@
  #include <mono/io-layer/daemon-messages.h>
  #include <mono/io-layer/timefuncs-private.h>
  #include <mono/io-layer/daemon-private.h>
+#include <mono/io-layer/socket-wrappers.h>

  #undef DEBUG



-- 
Benjamin Reed, a.k.a. RangerRick
ranger@befunk.com / http://ranger.befunk.com/

--------------030902020309080002090001
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0";
 name="mono.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="mono.patch"

diff -uNr mono-0.30/mono/io-layer/daemon.c mono-0.30-new/mono/io-layer/daemon.c
--- mono-0.30/mono/io-layer/daemon.c	Mon Dec 15 14:10:14 2003
+++ mono-0.30-new/mono/io-layer/daemon.c	Thu Feb  5 09:57:17 2004
@@ -32,6 +32,7 @@
 #include <mono/io-layer/daemon-messages.h>
 #include <mono/io-layer/timefuncs-private.h>
 #include <mono/io-layer/daemon-private.h>
+#include <mono/io-layer/socket-wrappers.h>
 
 #undef DEBUG
 

--------------030902020309080002090001--