v3.3/glfw: Warnings when building using -tags wayland
Jacalz opened this issue · 7 comments
Jacalz commented
I am getting these errors when building for Wayland. Opening the issue here in case there are issues on our end like last time.
# github.com/go-gl/glfw/v3.3/glfw
In file included from ../../vendor/github.com/go-gl/glfw/v3.3/glfw/c_glfw_lin.go:9:
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c: In function ‘createTmpfileCloexec’:
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c:115:10: warning: implicit declaration of function ‘mkostemp’; did you mean ‘mkstemp’? [-Wimplicit-function-declaration]
115 | fd = mkostemp(tmpname, O_CLOEXEC);
| ^~~~~~~~
| mkstemp
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c: In function ‘waitForData’:
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c:266:32: warning: implicit declaration of function ‘ppoll’; did you mean ‘poll’? [-Wimplicit-function-declaration]
266 | const int result = ppoll(fds, count, &ts, NULL);
| ^~~~~
| poll
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c: In function ‘_glfwPlatformGetClipboardString’:
../../vendor/github.com/go-gl/glfw/v3.3/glfw/glfw/src/wl_window.c:1866:11: warning: implicit declaration of function ‘pipe2’; did you mean ‘pipe’? [-Wimplicit-function-declaration]
1866 | ret = pipe2(fds, O_CLOEXEC);
| ^~~~~
| pipe
tomas-mraz commented
I got the same error after upgrading WSL Ubuntu from 20.04.5 to 22.04.1.
libwayland-dev 1.18->1.20
wayland-protocols 1.20->1.25
Before the upgrade I was getting an error that looks like https://gitlab.gnome.org/GNOME/gtk/-/issues/5025 ... so it's gone now, but this new one appeared.
Jacalz commented
I tried to fix this but failed. The corresponding imports seem to all be imported already. I wonder, is this a a bug upstream?