xfwm4 icon indicating copy to clipboard operation
xfwm4 copied to clipboard

[wayland] Compile errors

Open killermoehre opened this issue 2 years ago • 5 comments

Hi,

when trying to compile the wayland branch with

./autogen.sh \
--prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-xsync \
--disable-render \
--disable-randr \
--disable-xpresent \
--with-gnu-ld

I get following errors:

make[2]: Entering directory '/home/knizek/packages/xfwm-shell/src/xfwm4/src'
  CC       xfwm4-cycle.o
  CC       xfwm4-display.o
  CC       xfwm4-event_filter.o
  CC       xfwm4-events.o
cycle.c: In function ‘clientCycleCreateList’:
cycle.c:113:7: error: format not a string literal and no format arguments [-Werror=format-security]
  113 |       g_print (c2->name);
      |       ^~~~~~~
cycle.c: In function ‘clientCycle’:
cycle.c:497:3: error: format not a string literal and no format arguments [-Werror=format-security]
  497 |   g_print (c->name);
      |   ^~~~~~~
  CC       xfwm4-focus.o
display.c: In function ‘myDisplayGetScreenFromRoot’:
display.c:626:3: error: unknown type name ‘bool’
  626 |   bool x = GDK_IS_WAYLAND_DISPLAY (display->gdisplay);
      |   ^~~~
display.c:50:1: note: ‘bool’ is defined in header ‘<stdbool.h>’; did you forget to ‘#include <stdbool.h>’?
   49 | #include "compositor.h"
  +++ |+#include <stdbool.h>
   50 | 
display.c:626:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  626 |   bool x = GDK_IS_WAYLAND_DISPLAY (display->gdisplay);
      |   ^~~~
make[2]: *** [Makefile:1218: xfwm4-display.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[2]: *** [Makefile:1190: xfwm4-cycle.o] Error 1
make[2]: Leaving directory '/home/knizek/packages/xfwm-shell/src/xfwm4/src'
make[1]: *** [Makefile:578: all-recursive] Error 1
make[1]: Leaving directory '/home/knizek/packages/xfwm-shell/src/xfwm4'
make: *** [Makefile:510: all] Error 2

Also, I had to patch configure.ac.in to use libweston{,-desktop}-10 instead of libweston{,-desktop}-8.

killermoehre avatar Feb 21 '22 21:02 killermoehre