anholt / libepoxy

Epoxy is a library for handling OpenGL function pointer management for you
Other
680 stars 161 forks source link

not compiling under musl #274

Open neheb opened 2 years ago

neheb commented 2 years ago
[16/23] cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5
ninja: job failed: cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/lIn file included from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.h:46^[[m^[[K,                                                from ^[[01m^[[Ksubprojects/libepoxy-1.5.9/src/egl_generated_dispatch.c:11^[[m^[[K:
^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/include/epoxy/glx.h:36:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[KX11/Xlib.h: No su   36 | #include ^[[01;31m^[[K<X11/Xlib.h>^[[m^[[K                                                                                                                 |          ^[[01;31m^[[K^~~~~~~~~~~~^[[m^[[K
compilation terminated.
ninja: job failed: cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/lIn file included from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.h:46^[[m^[[K,                                                from ^[[01m^[[Ksubprojects/libepoxy-1.5.9/src/glx_generated_dispatch.c:26^[[m^[[K:
^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/include/epoxy/glx.h:36:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[KX11/Xlib.h: No su   36 | #include ^[[01;31m^[[K<X11/Xlib.h>^[[m^[[K                                                                                                                 |          ^[[01;31m^[[K^~~~~~~~~~~~^[[m^[[K
compilation terminated.
ninja: job failed: cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/lIn file included from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.h:46^[[m^[[K,                                                from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_glx.c:28^[[m^[[K:
^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/include/epoxy/glx.h:36:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[KX11/Xlib.h: No su   36 | #include ^[[01;31m^[[K<X11/Xlib.h>^[[m^[[K                                                                                                                 |          ^[[01;31m^[[K^~~~~~~~~~~~^[[m^[[K
compilation terminated.
ninja: job failed: cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/lIn file included from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.h:46^[[m^[[K,                                                from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_egl.c:28^[[m^[[K:
^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/include/epoxy/glx.h:36:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[KX11/Xlib.h: No su   36 | #include ^[[01;31m^[[K<X11/Xlib.h>^[[m^[[K                                                                                                                 |          ^[[01;31m^[[K^~~~~~~~~~~~^[[m^[[K
compilation terminated.
ninja: job failed: cc -Isubprojects/libepoxy-1.5.9/src/libepoxy.so.0.0.0.p -Isubprojects/libepoxy-1.5.9/src -I../../home/mangix/devstuff/wrapdb/subprojects/lIn file included from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.h:46^[[m^[[K,                                                from ^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/src/dispatch_common.c:174^[[m^[[K:
^[[01m^[[K../../home/mangix/devstuff/wrapdb/subprojects/libepoxy-1.5.9/include/epoxy/glx.h:36:10:^[[m^[[K ^[[01;31m^[[Kfatal error: ^[[m^[[KX11/Xlib.h: No su   36 | #include ^[[01;31m^[[K<X11/Xlib.h>^[[m^[[K                                                                                                                 |          ^[[01;31m^[[K^~~~~~~~~~~~^[[m^[[K
compilation terminated.
ninja: subcommands failed

missing X11 dependency. The build should not have gotten this far.

neheb commented 2 years ago

Same issue under Debian 11.

neheb commented 2 years ago

wait a minute...why is this even using bool options?