Describe the bug
when trying to make userspace-full you get rpesented by the following error
[Compiling doomgeneric_xlib.c]
doomgeneric_xlib.c:16:26: error: initialization of 'Window' {aka 'long unsigned int'} from 'void *' makes integer from pointer without a cast [-Wint-conversion]
16
static Window s_Window = NULL;
^~~~
doomgeneric_xlib.c: In function 'DG_Init':
doomgeneric_xlib.c:109:5: error: implicit declaration of function 'XkbSetDetectableAutoRepeat' [-Wimplicit-function-declaration]
109
XkbSetDetectableAutoRepeat(s_Display, 1, 0);
^~~~~~
doomgeneric_xlib.c: In function 'DG_DrawFrame':
doomgeneric_xlib.c:137:17: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations]
137
^~
/sysroot/usr/include/X11/Xlib.h:1683:15: note: declared here
1683
extern KeySym XKeycodeToKeysym(
^~~~
doomgeneric_xlib.c: In function 'DG_SetWindowTitle':
doomgeneric_xlib.c:198:89: warning: pointer targets in passing argument 7 of 'XChangeProperty' differ in signedness [-Wpointer-sign]
198
In file included from /sysroot/usr/include/X11/Xlib.h:47:
/sysroot/usr/include/X11/Xlib.h:2085:5: note: expected 'const unsigned char ' but argument is of type 'const char '
2085 | _Xconst unsigned char / data */,
| ^
make: *** [Makefile:50: build/doomgeneric_xlib.o] Error 1
To Reproduce
Steps to reproduce the behavior:
git clone the repo with all submodules
run make userspace-full
Expected behavior
for it to build without any error
Screenshots
Environment (please complete the following information):
~~~~~doomgeneric_xlib.c: In function 'DG_DrawFrame': doomgeneric_xlib.c:137:17: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] 137~In file included from doomgeneric_xlib.c:11: /sysroot/usr/include/X11/Xlib.h:1683:15: note: declared here 1683~~~doomgeneric_xlib.c:144:17: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations] 144~/sysroot/usr/include/X11/Xlib.h:1683:15: note: declared here 1683~~~doomgeneric_xlib.c: In function 'DG_SetWindowTitle': doomgeneric_xlib.c:198:89: warning: pointer targets in passing argument 7 of 'XChangeProperty' differ in signedness [-Wpointer-sign] 198In file included from /sysroot/usr/include/X11/Xlib.h:47: /sysroot/usr/include/X11/Xlib.h:2085:5: note: expected 'const unsigned char ' but argument is of type 'const char ' 2085 | _Xconst unsigned char / data */, | ^ make: *** [Makefile:50: build/doomgeneric_xlib.o] Error 1
To Reproduce Steps to reproduce the behavior:
Expected behavior for it to build without any error
Screenshots
Environment (please complete the following information):