Description
Trying to build current blead with MinGW gcc-6.3.0-1/mingwrt-5.0.2 or gcc-7.3.0-1/mingwrt-5.0.2 fails in win32sck.c:
gcc -c -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE -s -O2 -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -DPERL_IS_MINIPERL -omini\win32sck.o win32sck.c
win32sck.c: In function 'win32_select':
win32sck.c:495:12: error: expected ';' before 'nrd'
FD_SET nrd, nwr, nex;
^~~
In file included from c:\programs\mingw\6.3.0\include\winsock2.h:62:0,
from c:\programs\mingw\6.3.0\include\ws2spi.h:36,
from win32sck.c:20:
win32sck.c:500:14: error: 'nrd' undeclared (first use in this function)
FD_ZERO(&nrd);
^
win32sck.c:500:14: note: each undeclared identifier is reported only once for each function it appears in
win32sck.c:501:14: error: 'nwr' undeclared (first use in this function)
FD_ZERO(&nwr);
^
win32sck.c:502:14: error: 'nex' undeclared (first use in this function)
FD_ZERO(&nex);
^
dmake: Error code 129, while making 'mini\win32sck.o'
Trying to build current blead with MinGW gcc-8.2.0-5/mingwrt-5.2.3 or gcc-9.2.0-2/mingwrt-5.4.1 fails in win32.c:
gcc -c -I.\include -I. -I.. -DWIN32 -DPERLDLL -DPERL_CORE -s -O2 -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing -DPERL_IS_MINIPERL -omini\win32.o win32.c
win32.c: In function 'win32_ftell':
win32.c:3163:5: error: aggregate value used where an integer was expected
return (Off_t)pos;
^~~~~~
win32.c: In function 'win32_fseek':
win32.c:3174:16: error: invalid operands to binary + (have 'long long int' and
fpos_t' {aka 'union '})
offset += pos;
^~
win32.c:3178:13: error: incompatible types when assigning to type 'fpos_t' {aka 'union '} from type 'long long int'
pos = _telli64(fileno(pf));
^
win32.c:3179:16: error: invalid operands to binary + (have 'long long int' and
fpos_t' {aka 'union '})
offset += pos;
^~
dmake: Error code 129, while making 'mini\win32.o'
MinGW gcc<=6.3.0 are available from https://sourceforge.net/downloads/mingw, from which mingw-get-setup.exe will currently install gcc-6.3.0-1/mingwrt-5.0.2.
MinGW gcc>=7.3.0 are available from https://osdn.net/projects/mingw/releases, from which mingw-get-setup.exe will currently install gcc-9.2.0-2/mingwrt-5.4.1.