| Ticket UUID: | c8ff9aa8a375dfdf20c76a1c86f975b7ef5f2819 | |||
| Title: | Unix configure.ac breaks building Aqua Tk 9 with a minimum deployment target of 10.13 | |||
| Type: | Bug | Version: | 9.0 | |
| Submitter: | marc_culler | Created on: | 2025-07-20 02:32:34 | |
| Subsystem: | 83. Mac OS X Build | Assigned To: | marc_culler | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2025-07-20 23:29:29 | |
| Resolution: | Fixed | Closed By: | marc_culler | |
| Closed on: | 2025-07-20 23:29:29 | |||
| Description: |
It works fine to build Tk 9 on a macOS 10.13 system, and all tests pass. But it does not work to build Tk 9 on a newer system with a minimum deployment target of 10.13. The bug is in unix/configure.ac. Here is the problematic code: if test -d /System/Library/Frameworks/UserNotifications.framework; then LIBS="$LIBS -framework UserNotifications" fi The problem is that the UserNotifications framework was introduced in macOS 10.14. It does not exist on 10.13. If you are building, as I am, on macOS 15 with a minimum deployment target of 10.13 then the test above passes, since the framework exists, and Tk gets linked against that framework. The link step adds the framework dylib as a dependency. If you try to run a Tk built that way on its deployment target system then loading the Tk library fails because one if its load dependencies does not exist on the system. The test in configure.ac should be checking whether the minimum deployment target is 10.14 or newer, instead of checking whether the framework exists on the build system. Code that uses that framework can be made contingent on the minimum deployment target, but that doesn't help if the Tk library is linked against the framework. | |||
| User Comments: |
marc_culler (claiming to be Marc Culler) added on 2025-07-20 23:29:29:
I have removed the configure commands which force linking against UserNotification.framework from 9.0 and 9.1. I am closing this ticket. marc_culler (claiming to be Marc Culler) added on 2025-07-20 15:12:39: Thanks, Kevin. That was what I was guessing had happened. I will remove those three lines from configure.ac. kevin_walzer added on 2025-07-20 14:51:25: The User Notification was part of the original Objective-C based implementation. I switched it to AppleScript because it was very fragile (among other things, it would silently fail if Wish were unsigned). I think we can remove that link now. marc_culler (claiming to be Marc Culler) added on 2025-07-20 13:59:36: Further investigation suggests that there is no need to link against the UserNotifications framework at all. The implementation of the system notification uses AppleScript. It does not appear that any functions from that framework are called in the Tk code, and removing that framework from the link library list does not cause any problems with the build (but solves the problem of using a framework which does not exist on macOS 10.13) I am guessing that this change in the configure script was made before settling on AppleScript as the best way to post a system notification, but was not removed when it was no longer needed. Kevin - this configure code was added by your implementation of TIP #325. Do you recall why UserNotifications.framework was added to the list of frameworks to link against? | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki