[Mono-bugs] [Bug 49360][Blo] New - When compiling socket-io.c compile errors out on INET6 address

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 5 Oct 2003 23:23:19 -0400 (EDT)


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 moisha@ntct1.com.

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

--- shadow/49360	2003-10-05 23:23:19.000000000 -0400
+++ shadow/49360.tmp.24510	2003-10-05 23:23:19.000000000 -0400
@@ -0,0 +1,105 @@
+Bug#: 49360
+Product: Mono/MCS
+Version: unspecified
+OS: Solaris 8
+OS Details: gcc 3.3.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: moisha@ntct1.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: When compiling socket-io.c compile errors out on INET6 address
+
+When compiling metadata directory socket-io.c generates the following 
+error:
+
+gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../mono -
+I../../libgc/include -pthreads -I/usr/local/gnome/include/glib-2.0 -
+I/usr/local/gnome/lib/gl
+ib-2.0/include -I/usr/local/gnome/include/glib-2.0 -
+I/usr/local/gnome/lib/glib-2.0/include -
+DMONO_ASSEMBLIES=\"/apps/gnu/lib\" -DMONO_CFG_DIR=\"/apps/
+gnu/etc\" -DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS -D_REENTRANT -
+D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=500 -D__EXTENSIONS__ -
+D_XOPEN_SOURCE_EXTENDED
+=1 -DNO_UNALIGNED_ACCESS -g -Wall -Wunused -Wmissing-prototypes -Wmissing-
+declarations -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -
+Wpoi
+nter-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -Wno-char-
+subscripts -c socket-io.c -MT socket-io.lo -MD -MP -MF .deps/socket-
+io.TPlo  -fPIC -D
+PIC -o .libs/socket-io.lo
+socket-io.c: In function `create_object_from_sockaddr':
+socket-io.c:759: warning: cast increases required alignment of target type
+socket-io.c:774: warning: cast increases required alignment of target type
+socket-io.c:779: warning: cast increases required alignment of target type
+socket-io.c:804: warning: cast increases required alignment of target type
+socket-io.c:816: warning: cast increases required alignment of target type
+socket-io.c: In function 
+`ves_icall_System_Net_Sockets_Socket_LocalEndPoint_internal':
+socket-io.c:835: warning: cast increases required alignment of target type
+socket-io.c:845: warning: cast increases required alignment of target type
+socket-io.c: In function 
+`ves_icall_System_Net_Sockets_Socket_RemoteEndPoint_internal':
+socket-io.c:857: warning: cast increases required alignment of target type
+socket-io.c:867: warning: cast increases required alignment of target type
+socket-io.c: In function `create_sockaddr_from_object':
+socket-io.c:880: warning: cast increases required alignment of target type
+socket-io.c: In function `Socket_to_SOCKET':
+socket-io.c:1134: warning: cast increases required alignment of target type
+socket-io.c: In function 
+`ves_icall_System_Net_Sockets_Socket_Select_internal':
+socket-io.c:1168: warning: cast increases required alignment of target type
+socket-io.c:1185: warning: cast increases required alignment of target type
+socket-io.c:1202: warning: cast increases required alignment of target type
+socket-io.c:1233: warning: cast increases required alignment of target type
+socket-io.c:1240: warning: cast increases required alignment of target type
+socket-io.c:1243: warning: cast increases required alignment of target type
+socket-io.c:1256: warning: cast increases required alignment of target type
+socket-io.c:1263: warning: cast increases required alignment of target type
+socket-io.c:1266: warning: cast increases required alignment of target type
+socket-io.c:1279: warning: cast increases required alignment of target type
+socket-io.c:1286: warning: cast increases required alignment of target type
+socket-io.c:1289: warning: cast increases required alignment of target type
+socket-io.c: In function `int_to_object':
+socket-io.c:1305: warning: cast increases required alignment of target type
+socket-io.c: In function 
+`ves_icall_System_Net_Sockets_Socket_GetSocketOption_obj_internal':
+socket-io.c:1377: warning: cast increases required alignment of target type
+socket-io.c: In function `ipaddress_to_struct_in_addr':
+socket-io.c:1436: warning: cast increases required alignment of target type
+socket-io.c: In function `ipaddress_to_struct_in6_addr':
+socket-io.c:1450: warning: cast increases required alignment of target type
+socket-io.c:1457: error: structure has no member named `__u6_addr'
+socket-io.c:1457: warning: cast increases required alignment of target type
+socket-io.c: In function 
+`ves_icall_System_Net_Sockets_Socket_SetSocketOption_internal':
+socket-io.c:1524: warning: cast increases required alignment of target type
+socket-io.c:1544: warning: cast increases required alignment of target type
+socket-io.c:1551: warning: cast increases required alignment of target type
+socket-io.c:1562: warning: missing braces around initializer
+socket-io.c:1562: warning: (near initialization for 
+`mreq.imr_multiaddr.S_un')
+socket-io.c:1570: warning: cast increases required alignment of target type
+socket-io.c:1579: warning: cast increases required alignment of target type
+socket-io.c: In function `addrinfo_to_IPHostEntry':
+socket-io.c:1875: warning: cast increases required alignment of target type
+socket-io.c:1877: warning: cast increases required alignment of target type
+socket-io.c:1893: warning: cast increases required alignment of target type
+make[1]: *** [socket-io.lo] Error 1
+make[1]: Leaving directory `/home/mveygman/GNU/mono-0.28/mono/metadata'
+make: *** [all] Error 2
+
+And breaks out on line 1457 of the code.
+
+The line makes use of __u6_addr16 of the in6_addr structure, which is not 
+available on Solaris.
+
+For compatability with Solaris systems one has to either code around it or 
+stop using IPv6.