neutrinolabs / xorgxrdp

Xorg drivers for xrdp
Other
459 stars 113 forks source link

Unable to compile #340

Open Atra99 opened 3 months ago

Atra99 commented 3 months ago

I'm attempting to compile xorgxrdp in Manjaro Linux. When running make, I get the following error.

rdpClientCon.c: In function 'rdpClientConInit':
rdpClientCon.c:1564:21: error: 'display' undeclared (first use in this function)
1564 |     i = (int)strtol(display, &endptr, 10);
     |                     ^~~~~~~
rdpClientCon.c:1564:21: note: each undeclared identifier is reported only once for each function it app
ears in
make[3]: *** [Makefile:681: rdpClientCon.lo] Error 1

I'm sure I'm doing something wrong, but I can't find any information online about what would be causing this

matt335672 commented 3 months ago

It's a bit obscure.

The variable display is a global X server variable defined in /usr/include/xorg/opaque.h on my (Ubuntu) system. That file is pulled in by #include <xf86_OSproc.h> Maybe there's another opaque.h on your include path(?)