michaelforney / swc

a library for making a simple Wayland compositor
MIT License
626 stars 53 forks source link

Failing to build. #72

Closed ahmadraniri1994 closed 2 years ago

ahmadraniri1994 commented 2 years ago

I'm trying to build on archlinux and getting this error :

libswc/shell_surface.c:58:1: error: conflicting types for ‘close’; have ‘void(struct window *)’
   58 | close(struct window *window)
      | ^~~~~
In file included from /usr/include/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/sys/param.h:28,
                 from libswc/util.h:34,
                 from libswc/shell_surface.c:32:
/usr/include/unistd.h:358:12: note: previous declaration of ‘close’ with type ‘int(int)’
  358 | extern int close (int __fd);
      |            ^~~~~
make: *** [common.mk:15: libswc/shell_surface.o] Error 1

I also want to build velox, does swc become one of dependencies ? Any clue? thanks

ahmadraniri1994 commented 2 years ago

Solved, there is conflict caused by glibc update.