[Mono-bugs] [Bug 51641][Nor] New - building of Mono 0.29 on MacOS 10.3. fails due to socklen_t typedef
Fri, 23 Jan 2004 16:23:03 -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 firstname.lastname@example.org.
--- shadow/51641 2004-01-23 16:23:03.000000000 -0500
+++ shadow/51641.tmp.31214 2004-01-23 16:23:03.000000000 -0500
@@ -0,0 +1,39 @@
+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.
+------- Additional Comments From email@example.com 2003-12-03 14:46 -------
+Created an attachment (id=6093)
+May not be the correct way, but it does work. I don't know any other way,either.
+------- Additional Comments From firstname.lastname@example.org 2004-01-23 16:23 -------
+We moved around the code in cvs and added a check for socklen_t in
+configure: this issue should be fixed now.