Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 52da2bcf7a57f5d603d3ca0d1f9717f2295e35ebe7d9258aec03b2dab9f8de08
Ticket: 98832303a93180c4663fa577f58fd347cf4561d2
X11/X.h and Windows.h have conflicting symbols
User & Date: anonymous on 2018-12-13 21:42:32
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When building Tk with the latest Windows SDK, there are conflicting #defines.
    
    The X11/X.h header defines 'None' and 'ControlMask' to literals, and the latest Windows SDK then attempts to use these as names. The preprocessor substitution replaces them and compilation fails.
    
    See https://bugs.python.org/issue35402#msg331643 for details and our discussion on the Python tracker.
    
    I didn't figure out whether the X.h header is necessary on Windows, and particularly whether it needs to be visible in the Tk.h header. We can patch our copy of Tk to undefine and redefine these names, but such a change would need to be upstreamed eventually anyway. For CPython on Windows, we will likely use an old Windows SDK or just avoid updating Tcl and Tk.
    
  5. foundin changed to: "8.6.9"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "c6460b0c364542117ffee19bfc5b1a63abb0a52e"
  10. resolution changed to: "None"
  11. severity changed to: "Severe"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "53. Configuration and Build Tools"
  15. title changed to: "X11/X.h and Windows.h have conflicting symbols"
  16. type changed to: "Bug"