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

MacPorts noreply at macports.org
Fri Jul 3 16:15:58 UTC 2026


#74172: Togl-2.0: fatal error: 'AGL/agl.h' file not found
-------------------------+---------------------------
  Reporter:  quatized-H  |      Owner:  dstrubbe
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.12.5
Resolution:              |   Keywords:  sequoia arm64
      Port:  Togl-2.0    |
-------------------------+---------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * keywords:  AGL is gone on MacPorts => sequoia arm64
 * owner:  (none) => dstrubbe
 * port:  Togl-2.0 xcrysden => Togl-2.0


Old description:

> 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.

New description:

 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.

--

Comment:

 In the future, please just attach the log, rather than converting it to a
 pdf first.

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


More information about the macports-tickets mailing list