Eli Zaretskii <e...@gnu.org> writes: > This is known, see > > https://lists.gnu.org/archive/html/bug-texinfo/2022-10/msg00365.html > > In my port I did this: > > --- tp/Texinfo/XS/misc.c.~1~ 2022-11-30 19:06:28.000000000 +0 > 200 > +++ tp/Texinfo/XS/misc.c 2022-12-03 14:05:33.735000000 +0 > 200 > @@ -37,6 +37,9 @@ > > #include "EXTERN.h" > #include "perl.h" > +#if defined _WIN32 && !defined __CYGWIN__ > +# undef free > +#endif > #include "XSUB.h" > > #include "ppport.h"
Thanks. I wanted to give it a try, so in a MINGW64 shell I cloned the Texinfo repo, ran ./autogen.sh (works), ./configure (works) and make -j8 which stops with: --8<---------------cut here---------------start------------->8--- In file included from terminal.c:1143: pcterm.c: In function 'pc_up_line': pcterm.c:959:20: warning: implicit declaration of function 'MAX' [-Wimplicit-function-declaration] 959 | ScreenSetCursor (MAX (y-1, 0), x); | ^~~ mv -f .deps/window.Tpo .deps/window.Po mv -f .deps/terminal.Tpo .deps/terminal.Po mv -f .deps/session.Tpo .deps/session.Po gcc -g -O2 -o ginfo.exe dir.o display.o dribble.o echo-area.o filesys.o footnotes.o indices.o info.o infodoc.o infokey.o infomap.o infopath.o m-x.o man.o nodemenu.o nodes.o scan.o search.o session.o signals.o tag.o terminal.o tilde.o util.o variables.o window.o doc.o ../gnulib/lib/libgnu.a -lncurses /mingw64/lib/libintl.dll.a -L/mingw64/lib /mingw64/lib/libiconv.dll.a -L/mingw64/lib C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: terminal.o: in function `pc_up_line': Z:/texinfo/info/pcterm.c:959: undefined reference to `MAX' collect2.exe: error: ld returned 1 exit status make[3]: *** [Makefile:1827: ginfo.exe] Error 1 --8<---------------cut here---------------end--------------->8--- Is this also a known issue? I can't test your patch above with this issue at hand. Best, Arash