https://bugs.winehq.org/show_bug.cgi?id=51843
--- Comment #2 from Austin English austinenglish@gmail.com --- (In reply to Alexandre Julliard from comment #1)
That's not Wine 6.18, you should update.
You're right, sorry about that; I had checked out an older version check something else and forgot to reset back.
With wine-6.18-341-ged38d12833b (and the patch from bug 51841), there are two issues: gcc -c -o dlls/ntdll/unix/socket.o dlls/ntdll/unix/socket.c -Idlls/ntdll -Iinclude -D__WINESRC__ -D_NTSYSTEM_ -D_ACRTIMP= -DWINBASEAPI= -D_MSVCR_VER=0 -DWINE_UNIX_LIB -fPIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -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/ntdll/unix/socket.c: In function ‘sock_ioctl’: dlls/ntdll/unix/socket.c:1707:59: error: ‘IP_ADD_SOURCE_MEMBERSHIP’ undeclared (first use in this function); did you mean ‘WS_IP_ADD_SOURCE_MEMBERSHIP’? return do_setsockopt( handle, io, IPPROTO_IP, IP_ADD_SOURCE_MEMBERSHIP, in_buffer, in_size );
^~~~~~~~~~~~~~~~~~~~~~~~
WS_IP_ADD_SOURCE_MEMBERSHIP dlls/ntdll/unix/socket.c:1707:59: note: each undeclared identifier is reported only once for each function it appears in dlls/ntdll/unix/socket.c:1710:59: error: ‘IP_BLOCK_SOURCE’ undeclared (first use in this function); did you mean ‘WS_IP_BLOCK_SOURCE’? return do_setsockopt( handle, io, IPPROTO_IP, IP_BLOCK_SOURCE, in_buffer, in_size ); ^~~~~~~~~~~~~~~ WS_IP_BLOCK_SOURCE dlls/ntdll/unix/socket.c:1768:59: error: ‘IP_DROP_SOURCE_MEMBERSHIP’ undeclared (first use in this function); did you mean ‘WS_IP_DROP_SOURCE_MEMBERSHIP’? return do_setsockopt( handle, io, IPPROTO_IP, IP_DROP_SOURCE_MEMBERSHIP, in_buffer, in_size );
^~~~~~~~~~~~~~~~~~~~~~~~~
WS_IP_DROP_SOURCE_MEMBERSHIP dlls/ntdll/unix/socket.c:1903:59: error: ‘IP_UNBLOCK_SOURCE’ undeclared (first use in this function); did you mean ‘IP_BLOCK_SOURCE’? return do_setsockopt( handle, io, IPPROTO_IP, IP_UNBLOCK_SOURCE, in_buffer, in_size ); ^~~~~~~~~~~~~~~~~ IP_BLOCK_SOURCE
gcc -c -o dlls/ws2_32/unixlib.o dlls/ws2_32/unixlib.c -Idlls/ws2_32 -Iinclude -D__WINESRC__ -D_UCRT -DWINE_UNIX_LIB -fPIC -fasynchronous-unwind-tables -Wall -pipe -fno-stack-protector -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers -Winit-self -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/unixlib.c:132:10: error: ‘AI_ALL’ undeclared here (not in a function); did you mean ‘P_ALL’? MAP( AI_ALL ), ^ dlls/ws2_32/unixlib.c:119:27: note: in definition of macro ‘MAP’ #define MAP(x) {WS_ ## x, x} ^ dlls/ws2_32/unixlib.c: In function ‘unix_gethostbyaddr’: dlls/ws2_32/unixlib.c:865:16: warning: implicit declaration of function ‘gethostbyaddr_r’; did you mean ‘gethostbyaddr’? [-Wimplicit-function-declaration] while (gethostbyaddr_r( addr, params->len, unix_family, &stack_host, unix_buffer, ^~~~~~~~~~~~~~~ gethostbyaddr dlls/ws2_32/unixlib.c: In function ‘unix_gethostbyname’: dlls/ws2_32/unixlib.c:916:12: warning: implicit declaration of function ‘gethostbyname_r’; did you mean ‘gethostbyname2’? [-Wimplicit-function-declaration] while (gethostbyname_r( params->name, &stack_host, unix_buffer, unix_size, &unix_host, &locerr ) == ERANGE) ^~~~~~~~~~~~~~~ gethostbyname2