https://bugs.winehq.org/show_bug.cgi?id=51843
Bug ID: 51843 Summary: dlls/ws2_32/socket.c:839:17: error: ‘IP_ADD_SOURCE_MEMBERSHIP’ undeclared here Product: Wine Version: 6.18 Hardware: x86 OS: NetBSD Status: NEW Severity: blocker Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
gcc -c -o dlls/ws2_32/socket.o dlls/ws2_32/socket.c -Idlls/ws2_32 -Iinclude -D__WINESRC__ -DUSE_WS_PREFIX -D_REENTRANT -fno-PIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Wshift-overflow=2 -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith -Wlogical-op -march=i586 -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R7/include -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/X11R7/include -g dlls/ws2_32/socket.c:839:17: error: ‘IP_ADD_SOURCE_MEMBERSHIP’ undeclared here (not in a function); did you mean ‘WS_IP_ADD_SOURCE_MEMBERSHIP’? MAP_OPTION( IP_ADD_SOURCE_MEMBERSHIP ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:840:17: error: ‘IP_DROP_SOURCE_MEMBERSHIP’ undeclared here (not in a function); did you mean ‘WS_IP_DROP_SOURCE_MEMBERSHIP’? MAP_OPTION( IP_DROP_SOURCE_MEMBERSHIP ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:841:17: error: ‘IP_BLOCK_SOURCE’ undeclared here (not in a function); did you mean ‘WS_IP_BLOCK_SOURCE’? MAP_OPTION( IP_BLOCK_SOURCE ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:842:17: error: ‘IP_UNBLOCK_SOURCE’ undeclared here (not in a function); did you mean ‘IP_BLOCK_SOURCE’? MAP_OPTION( IP_UNBLOCK_SOURCE ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:923:17: error: ‘AI_ALL’ undeclared here (not in a function); did you mean ‘P_ALL’? MAP_OPTION( AI_ALL ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:923:17: warning: initialization makes integer from pointer without a cast [-Wint-conversion] MAP_OPTION( AI_ALL ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:923:17: note: (near initialization for ‘ws_aiflag_map[4][1]’) MAP_OPTION( AI_ALL ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:923:17: error: initializer element is not constant MAP_OPTION( AI_ALL ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c:923:17: note: (near initialization for ‘ws_aiflag_map[4][1]’) MAP_OPTION( AI_ALL ), ^ dlls/ws2_32/socket.c:792:37: note: in definition of macro ‘MAP_OPTION’ #define MAP_OPTION(opt) { WS_##opt, opt } ^~~ dlls/ws2_32/socket.c: In function ‘WS_setsockopt’: dlls/ws2_32/socket.c:5639:27: error: storage size of ‘mreq_source’ isn’t known struct ip_mreq_source mreq_source; ^~~~~~~~~~~ dlls/ws2_32/socket.c:5856:24: error: request for member ‘imr_interface’ in something not a structure or union mreq_source.imr_interface.s_addr = val->imr_interface.S_un.S_addr; ^ dlls/ws2_32/socket.c:5856:38: error: request for member ‘s_addr’ in something not a structure or union mreq_source.imr_interface.s_addr = val->imr_interface.S_un.S_addr; ^ dlls/ws2_32/socket.c:5856:13: warning: statement with no effect [-Wunused-value] mreq_source.imr_interface.s_addr = val->imr_interface.S_un.S_addr; ^~~~~~~~~~~ dlls/ws2_32/socket.c:5857:24: error: request for member ‘imr_multiaddr’ in something not a structure or union mreq_source.imr_multiaddr.s_addr = val->imr_multiaddr.S_un.S_addr; ^ dlls/ws2_32/socket.c:5857:38: error: request for member ‘s_addr’ in something not a structure or union mreq_source.imr_multiaddr.s_addr = val->imr_multiaddr.S_un.S_addr; ^ dlls/ws2_32/socket.c:5857:13: warning: statement with no effect [-Wunused-value] mreq_source.imr_multiaddr.s_addr = val->imr_multiaddr.S_un.S_addr; ^~~~~~~~~~~ dlls/ws2_32/socket.c:5858:24: error: request for member ‘imr_sourceaddr’ in something not a structure or union mreq_source.imr_sourceaddr.s_addr = val->imr_sourceaddr.S_un.S_addr; ^ dlls/ws2_32/socket.c:5858:39: error: request for member ‘s_addr’ in something not a structure or union mreq_source.imr_sourceaddr.s_addr = val->imr_sourceaddr.S_un.S_addr; ^ dlls/ws2_32/socket.c:5858:13: warning: statement with no effect [-Wunused-value] mreq_source.imr_sourceaddr.s_addr = val->imr_sourceaddr.S_un.S_addr; ^~~~~~~~~~~ dlls/ws2_32/socket.c:5861:20: warning: assignment makes integer from pointer without a cast [-Wint-conversion] optlen = sizeof(mreq_source); ^ dlls/ws2_32/socket.c:5639:27: warning: unused variable ‘mreq_source’ [-Wunused-variable] struct ip_mreq_source mreq_source; ^~~~~~~~~~~ dlls/ws2_32/socket.c: In function ‘WS_gethostbyaddr’: dlls/ws2_32/socket.c:6092:19: warning: implicit declaration of function ‘gethostbyaddr_r’; did you mean ‘gethostbyaddr’? [-Wimplicit-function-declaration] int res = gethostbyaddr_r(paddr, len, unixtype, ^~~~~~~~~~~~~~~ gethostbyaddr dlls/ws2_32/socket.c: In function ‘WS_gethostbyname’: dlls/ws2_32/socket.c:6284:23: warning: implicit declaration of function ‘gethostbyname_r’; did you mean ‘gethostbyname2’? [-Wimplicit-function-declaration] int res = gethostbyname_r(name, &hostentry, extrabuf, ebufsize, &host, &locerr); ^~~~~~~~~~~~~~~ gethostbyname2 At top level: dlls/ws2_32/socket.c:1796:12: warning: ‘set_ipx_packettype’ defined but not used [-Wunused-function] static int set_ipx_packettype(int sock, int ptype) ^~~~~~~~~~~~~~~~~~