Bug 312911 (MONO49360) - When compiling socket-io.c compile errors out on INET6 address
Summary: When compiling socket-io.c compile errors out on INET6 address
Status: RESOLVED MOVED
Alias: MONO49360
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Solaris 8
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 06:23 UTC by Mikhail Veygman
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:16:27 UTC


---- Reported by moisha@ntct1.com 2003-10-05 23:23:19 MST ----

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.



---- Additional Comments From vargaz@freemail.hu 2003-10-06 02:35:33 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO49155 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>gcc 3.3.1</cf_op_sys_details>
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"
Skipping unknown keyword: portability.