<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 1, 2020 at 12:01 PM Angelo Graziosi <<a href="mailto:angelo.g0@libero.it">angelo.g0@libero.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Just for completeness, in case someon could be interested.<br>
<br>
Out of curiosity, I tried a build on MSYS2/MinGW64 after an rsync of last source, and did ./Build.<br>
<br>
It failed after building 105 executable in this way:<br>
<br>
-----------------------------------------------------------------<br>
[...]<br>
mv -f luatexdir/luasocket/src/.deps/libluasocket_a-except.Tpo luatexdir/luasocket/src/.deps/libluasocket_a-except.Po gcc -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c -DLUASOCKET_DEBUG -I../../../texk/web2c/luatexdir/luasocket -I/tmp/tlsource/Work/libs/lua53/include -DLUA_COMPAT_MODULE -DLUA_COMPAT_5_2 -DLUAI_HASHLIMIT=6 -g -O2 -MT luatexdir/luasocket/src/libluasocket_a-inet.o -MD -MP -MF luatexdir/luasocket/src/.deps/libluasocket_a-inet.Tpo -c -o luatexdir/luasocket/src/libluasocket_a-inet.o `test -f 'luatexdir/luasocket/src/inet.c' || echo '../../../texk/web2c/'`luatexdir/luasocket/src/inet.c<br>
In file included from ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:<br>
../../../texk/web2c/luatexdir/luasocket/src/inet.h:50:13: error: conflicting types for 'inet_ntop'<br>
50 | const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);<br>
| ^~~~~~~~~<br>
In file included from ../../../texk/web2c/luatexdir/luasocket/src/wsocket.h:12,<br>
from ../../../texk/web2c/luatexdir/luasocket/src/socket.h:18,<br>
from ../../../texk/web2c/luatexdir/luasocket/src/inet.h:18,<br>
from ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:<br>
C:/msys64/mingw64/x86_64-w64-mingw32/include/ws2tcpip.h:451:35: note: previous declaration of 'inet_ntop' was here 451 | WINSOCK_API_LINKAGE LPCSTR WSAAPI InetNtopA(INT Family, LPCVOID pAddr, LPSTR pStringBuf, size_t StringBufSize); | ^~~~~~~~~<br>
In file included from ../../../texk/web2c/luatexdir/luasocket/src/inet.c:13:<br>
../../../texk/web2c/luatexdir/luasocket/src/inet.h:51:5: warning: 'inet_pton' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]<br>
51 | int inet_pton(int af, const char *src, void *dst);<br>
| ^~~~~~~~~<br></blockquote><div><br></div><div>It's ok with </div><div>x86_64-w64-mingw32-gcc (GCC) 7.3-win32 20180312<br></div><div>only because in ws2tcpip.h I have </div><div>#define InetNtopA inet_ntop<br></div><div><br></div><div><br></div><div>Indeed in luatexdir/luasocket/src/inet.h we have <br></div><div><br></div><div>25 #if defined( __MINGW32__ ) || defined( __MINGW64__ )<br>26 #define LUASOCKET_INET_PTON<br>27 #endif<br></div><div><br></div><div>49 #ifdef LUASOCKET_INET_PTON</div>50 const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);<br>51 int inet_pton(int af, const char *src, void *dst);<br>52 #endif<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">Line 50 now is not ok anymore.</div><div class="gmail_quote"><br></div><div class="gmail_quote"></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>