Tk Source Code

View Ticket
Login
Ticket UUID: c789692418553e02c2c6de57f3b0ef9b793380b8
Title: tk build on Mac OS X 10.6 fails with "assignment of read-only variable"
Type: Bug Version: 8.6.16
Submitter: sevanj Created on: 2025-07-24 18:49:05
Subsystem: 83. Mac OS X Build Assigned To: marc_culler
Priority: 5 Medium Severity: Minor
Status: Pending Last Modified: 2025-07-27 02:58:23
Resolution: Wont Fix Closed By: nobody
    Closed on:
Description:
Tried to build version 8.6.16 with GCC 4.2 & llvm-gcc from Xcode, same error with both compilers, though the number of the variable changes.

tk8.6.16/unix/../macosx/tkMacOSXWindowEvent.c: In function ‘-[TKContentView(TKWindowEvent) initWithFrame:]’:
tk8.6.16/unix/../macosx/tkMacOSXWindowEvent.c:981: error: assignment of read-only variable ‘prop.238’
make: *** [tkMacOSXWindowEvent.o] Error 1
User Comments: marc_culler (claiming to be Marc Culler) added on 2025-07-27 02:58:23:
Thank you for the patch!  I will take a look at it.

marc_culler (claiming to be Marc Culler) added on 2025-07-25 03:48:44:

I am sorry to have to tell you that macOS 10.6 is no longer supported by Tk. TIP #715 lists 10.13 as the oldest supported version.

Differences between the clang and gcc Objective C compilers make supporting 10.6 even harder than 10.7-10.12. We do need to make Tk compile on current OS versions, after all.


Attachments: