[Mono-bugs] [Bug 51641][Nor] New - building of Mono 0.29 on MacOS 10.3. fails due to socklen_t typedef
Wed, 3 Dec 2003 05:22:41 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by email@example.com.
--- shadow/51641 2003-12-03 05:22:41.000000000 -0500
+++ shadow/51641.tmp.30210 2003-12-03 05:22:41.000000000 -0500
@@ -0,0 +1,30 @@
+OS Details: MacOS X 10.3
+Summary: building of Mono 0.29 on MacOS 10.3. fails due to socklen_t typedef
+I've just downloaded mono-0.29.tar.gz and compiled on on my iBook.
+After installing glib2 and pkgconfig via apt-get, configure works fine but
+compilation stops when trying to compile mono/io-layer/atomic.c because
+of conflicitung types for socklen_t (it is already defined in sys/socket.h).
+Looking into mono/io-layer/sockets.h, there is a typedef for socklen_t if
+the symbol APPLE is defined. Removing that typedef makes Mono compile and
+the JIT even seems to work (at least for simple things), thanks!
+I assume that the typedef is necessary for OS X 10.2 and prior but became
+redundant in 10.3, though I don't know for sure.