<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>
make[5]: *** [Makefile:12132: luatexdir/luasocket/src/libluasocket_a-inet.o] Error 1<br>
make[5]: Leaving directory '/tmp/tlsource/Work/texk/web2c'<br>
make[4]: *** [Makefile:16964: all-recursive] Error 1<br>
make[4]: Leaving directory '/tmp/tlsource/Work/texk/web2c'<br>
make[3]: *** [Makefile:5087: all] Error 2<br>
make[3]: Leaving directory '/tmp/tlsource/Work/texk/web2c'<br>
make[2]: *** [Makefile:909: recurse] Error 1<br>
make[2]: Leaving directory '/tmp/tlsource/Work/texk'<br>
make[1]: *** [Makefile:486: all-recursive] Error 1<br>
make[1]: Leaving directory '/tmp/tlsource/Work/texk'<br>
make: *** [Makefile:577: all-recursive] Error 1<br>
+ echo 2<br>
done (exit status 2) Sun Mar 1 02:12:56 CET 2020<br>
-----------------------------------------------------------------<br>
<br>
<br>
GCC is<br>
<br>
-----------------------------------------------------------------<br>
g++ -v<br>
Using built-in specs.<br>
COLLECT_GCC=C:\msys64\mingw64\bin\g++.exe<br>
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/lto-wrapper.exe<br>
Target: x86_64-w64-mingw32<br>
Configured with: ../gcc-9.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --enable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project!<br>
 ' --with-bugurl=<a href="https://sourceforge.net/projects/msys2" rel="noreferrer" target="_blank">https://sourceforge.net/projects/msys2</a> --with-gnu-as --with-gnu-ld<br>
Thread model: posix<br>
gcc version 9.2.0 (Rev2, Built by MSYS2 project)<br>
-----------------------------------------------------------------<br></blockquote><div><br></div><div><br></div><div>hm. I will check it cross-compiling on my linux box .</div><div> </div></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>