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:

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

Enjoy

Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to