[MacPorts] #72011: Togl-2.0 @2.0 fails to build: # include <tkMacOSXInt.h> results in NSObject.h:9:1: error: expected identifier or '('

MacPorts noreply at macports.org
Thu Feb 6 18:14:24 UTC 2025


#72011: Togl-2.0 @2.0 fails to build: #  include <tkMacOSXInt.h> results in
NSObject.h:9:1: error: expected identifier or '('
----------------------+----------------------
 Reporter:  mmartcan  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.10.5
 Keywords:            |       Port:  Togl-2.0
----------------------+----------------------
 On a brand new 14"MacBook Pro, on up-to-date Sequoia 15.3 and command line
 tools, Togl-2.0 fails to build, with the first error reported being
 {{{
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:9:1:
 error: expected identifier or '('
 }}}

 While my old Intel Mac is/was affected by #70956, this seems different:
 building Togl will still fail even after adding `-Wno-error=incompatible-
 pointer-types`  to `CFLAGS_DEFAULT` in the Togl-2.0 Makefile.

 The relevant final lines in the log might be:

 {{{
 In file included from togl.c:84:
 In file included from /opt/local/include/tkMacOSXInt.h:27:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:11:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5:
 In file included from
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:7:
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:9:1:
 error: expected identifier or '('
     9 | @class NSString;
       | ^
 /Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h:19:63:
 error: unknown type name 'NSString'
    19 | FOUNDATION_EXPORT void NSSetZoneName(NSZone * _Nullable zone,
 NSString *name)NS_SWIFT_UNAVAILABLE("Zone-based memory management is
 unavailable");
       |                                                               ^
 [...]
 }}}

 Build log file is (hopefully) attached to the report. This is my first
 macports ticket, so let me know if I'm forgetting something important.

-- 
Ticket URL: <https://trac.macports.org/ticket/72011>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list