[Mono-bugs] [Bug 51641][Nor] New - building of Mono 0.29 on MacOS 10.3. fails due to socklen_t typedef

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
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 lupus@ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=51641

--- 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 @@
+Bug#: 51641
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: MacOS X 10.3
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: stefan.bodewig@freenet.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+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 rshade@dvsconsulting.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 lupus@ximian.com  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.