[attn Maintainer] tcl-tk-devel missing dependency

Marco Atzeri marco.atzeri@gmail.com
Fri Aug 28 06:55:25 GMT 2026


On 28/08/2026 07:23, Jakob Bohm via Cygwin wrote:
> On 27/08/2026 19:28, Marco Atzeri via Cygwin wrote:
>> Noted building python39 on scallywag
>>
>> $ grep "X11" /usr/include/tk.h
>> #if !defined(_XLIB_H) && !defined(_X11_XLIB_H_)
>> #   include <X11/Xlib.h>
>> #       include <X11/X.h>
>>
>> should not depend on libX11-devel ?
>>
>> cygcheck -f /usr/include/X11/Xlib.h
>> libX11-devel-1.8.13-1
>>
> Note that the code snippet above (as shown) says to include libX11 headers
> if not already included.
> 
> Thus unless there is another #if condition in the actual tk.h file, all use
> of that header will need the X11 headers to either be in their standard
> location or be already included beforetk.h .
> 
> Unfortunately, blindly running grep on a header file gives insufficient
> context to determinecompile time needs, although the following command
> may be helpful to those whounderstand the C preprocessor:

Hi Jacob,

as it failed on scallywag when libX11-devel was not present
I am sure the requirement is there ;-)
for the TK dependency

--------------------------------------------------------
building '_tkinter' extension
gcc -std=gnu23 -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall 
-ggdb -O2 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=3 
-fstack-protector-strong --param=ssp-buffer-size=4 
-ffile-prefix-map=/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/build=/usr/src/debug/python39-3.9.25-1 
-ffile-prefix-map=/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25=/usr/src/debug/python39-3.9.25-1 
-DOPENSSL_NO_SSL3=1 -I/usr/include/uuid/ -std=c99 -Wextra 
-Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers 
-Wstrict-prototypes -Werror=implicit-function-declaration 
-fvisibility=hidden -ggdb -O2 -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=3 -fstack-protector-strong 
--param=ssp-buffer-size=4 
-ffile-prefix-map=/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/build=/usr/src/debug/python39-3.9.25-1 
-ffile-prefix-map=/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25=/usr/src/debug/python39-3.9.25-1 
-DOPENSSL_NO_SSL3=1 -I/usr/include/uuid/ 
-I/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25/Include/internal 
-DWITH_APPINIT=1 -I/usr/X11/include -I. -IObjects -IPython 
-I/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25/Include 
-I/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/build -c 
/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25/Modules/_tkinter.c 
-o 
build/temp.cygwin-3.6.10-x86_64-3.9/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25/Modules/_tkinter.o
In file included from 
/cygdrive/d/a/scallywag/python39/python39-3.9.25-1.x86_64/src/Python-3.9.25/Modules/_tkinter.c:46:
/usr/include/tk.h:99:13: fatal error: X11/Xlib.h: No such file or directory
    99 | #   include <X11/Xlib.h>
       |             ^~~~~~~~~~~~
compilation terminated.

-----------------------------------------------------------------------------

> 
> $ egrep '^[[:space:]]*#' /usr/include/tk.h
> 
> Enjoy
> 
> Jakob

Regards
Marco




More information about the Cygwin mailing list