Open hakonhagland opened 2 years ago
could be that this error happens because X.h, see line 182 defines ControlMask whereas ControlMask is already typedef'ed in another header file
Yes, I think this is the case. See pull #88 for a possible fix.
This issue was already addressed by upstream Tcl/Tk, see https://core.tcl-lang.org/tk/info/9e31fd9449
I would prefer that Perl/Tk backport their approach for consistency; I will open a PR to do so.
I have installed a debug version of perl 5.37.5 on Windows 11 using MinGW-w64 and gcc 11.3 from https://winlibs.com/ (using the MSVCRT runtime library), see https://github.com/Perl/perl5/issues/20395 for more information on this.
When trying to install Tk with this perl I get:
The complete output from the last two commands is here: perl-makefile.log, and gmake.log
A wild guess could be that this error happens because
X.h
, see line 182 definesControlMask
whereasControlMask
is already typedef'ed in another header file (processthreadsapi.h
) pulled in fromwindows.h
. I cannot find this header file as direct link online, but locally it is located inC:\Winlibs64-gcc11.3-msvcrt\mingw64\include
. At line 163 of that file I have this typedef: