If I build this on a FreeBSD machine (both with a just-compiled compiler from master and with the 0.10.0 one), it panics at the penultimate line. On Linux it runs fine.
Compile with cc -Wall -Wextra -Werror -L/usr/local/lib -I/usr/local/include -o 'test' 'main.c' -lX11 -lGL. This runs fine on both FreeBSD and Linux.
I've been debugging this for days now. It might be some deep library-was-linked-incorrectly thing that I'm not knowledgeable enough to find, I really can't tell.
Expected Behavior
Both programs should exit normally on both platforms.
Zig Version
0.11.0
Steps to Reproduce and Observed Behavior
Here's the Zig code for a minimal program that requests all valid framebuffers from GLX:
To build this, here's what I had to add to the default build.zig (the include and lib paths are because of FreeBSD):
If I build this on a FreeBSD machine (both with a just-compiled compiler from master and with the 0.10.0 one), it panics at the penultimate line. On Linux it runs fine.
Here's the same program in C:
Compile with
cc -Wall -Wextra -Werror -L/usr/local/lib -I/usr/local/include -o 'test' 'main.c' -lX11 -lGL
. This runs fine on both FreeBSD and Linux.I've been debugging this for days now. It might be some deep library-was-linked-incorrectly thing that I'm not knowledgeable enough to find, I really can't tell.
Expected Behavior
Both programs should exit normally on both platforms.