[tlbuild] About building TeXLive on MSYS2/MinGW64

luigi scarso luigi.scarso at gmail.com
Mon Mar 2 08:09:11 CET 2020


On Sun, Mar 1, 2020 at 11:41 PM Angelo Graziosi <angelo.g0 at libero.it> wrote:

>
> > Il 1 marzo 2020 alle 13.08 luigi scarso ha scritto:
> >
> > It's ok with
> > x86_64-w64-mingw32-gcc (GCC) 7.3-win32 20180312
> > only because in ws2tcpip.h I have
> > #define InetNtopA inet_ntop
> >
> >
> > Indeed in  luatexdir/luasocket/src/inet.h we have
> >
> > 25 #if defined( __MINGW32__ ) || defined( __MINGW64__ )
> > 26 #define LUASOCKET_INET_PTON
> > 27 #endif
> >
> > 49 #ifdef LUASOCKET_INET_PTON
> > 50 const char *inet_ntop(int af, const void *src, char *dst, socklen_t
> cnt);
> > 51 int inet_pton(int af, const char *src, void *dst);
> > 52 #endif
> >
> > Line 50 now is not ok anymore.
>
> Have you some idea how to fix this? or just a workaround...
>
> Ciao,
>   Angelo.
>


$> echo "/**/" |x86_64-w64-mingw32-gcc -E -dM -x c -|grep '__GNUC'
#define __GNUC_PATCHLEVEL__ 0
#define __GNUC__ 7
#define __GNUC_STDC_INLINE__ 1
#define __GNUC_MINOR__ 3

so a patch could use
#define __GNUC__ 7
vs
#define __GNUC__ 9
(I will send you something off-list)

But the right way is autotools.

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20200302/6bbb872f/attachment.html>


More information about the tlbuild mailing list.