[MacPorts] #74172: x11/Togl-2.0: Build failure on macOS 15+ (arm64) due to missing legacy AGL/agl.h

MacPorts noreply at macports.org
Wed Jul 1 18:54:30 UTC 2026


#74172: x11/Togl-2.0: Build failure on macOS 15+ (arm64) due to missing legacy
AGL/agl.h
-------------------------------------+-------------------------------
 Reporter:  quatized-H               |      Owner:  (none)
     Type:  defect                   |     Status:  new
 Priority:  Normal                   |  Milestone:
Component:  ports                    |    Version:  2.12.5
 Keywords:  AGL is gone on MacPorts  |       Port:  Togl-2.0 xcrysden
-------------------------------------+-------------------------------
 While trying to install xcrysden, the dependency Togl-2.0 fails during the
 compilation phase on modern macOS (Apple Silicon / arm64).

 The compiler aborts with the following error:

 togl.c:82:12: fatal error: 'AGL/agl.h' file not found
    82 | #  include <AGL/agl.h>
 Analysis: Apple has completely deprecated and removed the legacy Carbon
 AGL (Apple OpenGL Library) framework from recent macOS SDKs. Because
 Togl-2.0 defaults to native Cocoa/AGL detection code when it identifies a
 Darwin kernel, it attempts to include a non-existent header. The port
 needs to be patched to bypass the native AGL path and force standard
 X11/GLX paths on modern macOS configurations.

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


More information about the macports-tickets mailing list