Opened 2 weeks ago

Last modified 2 weeks ago

#74172 assigned defect

Togl-2.0: fatal error: 'AGL/agl.h' file not found

Reported by: quatized-H Owned by: dstrubbe (David Strubbe)
Priority: Normal Milestone:
Component: ports Version: 2.12.5
Keywords: sequoia arm64 Cc:
Port: Togl-2.0

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Attachments (1)

Togl2.0_AGL_missing.pdf (97.0 KB) - added by quatized-H 2 weeks ago.
This file contains the xcrysden Togl-2.0 command (I do have XQuartx running in the background), along with the main.log from failed Togl-2.0 build on macOS 26.2 arm64

Download all attachments as: .zip

Change History (2)

Changed 2 weeks ago by quatized-H

Attachment: Togl2.0_AGL_missing.pdf added

This file contains the xcrysden Togl-2.0 command (I do have XQuartx running in the background), along with the main.log from failed Togl-2.0 build on macOS 26.2 arm64

comment:1 Changed 2 weeks ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: sequoia arm64 added; AGL is gone on MacPorts removed
Owner: set to dstrubbe
Port: xcrysden removed
Status: newassigned
Summary: x11/Togl-2.0: Build failure on macOS 15+ (arm64) due to missing legacy AGL/agl.hTogl-2.0: fatal error: 'AGL/agl.h' file not found

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

Note: See TracTickets for help on using tickets.