Helllo All,
I am trying to build Gucamole Server 1.2.0 on Mac OS Catalina, and running into
compile issues. Has anyone able to build Guacamole Server successfully on macOS?
I installed the required dependencies, ran "./configure
--with-init-dir=/etc/init.d" and ran "make" and running into these errors:
---------------...Making all in src/guacd
CC guacd-conf-args.o
CC guacd-conf-file.o
CC guacd-conf-parse.o
CC guacd-connection.o
CC guacd-daemon.o
CC guacd-log.o
CC guacd-move-fd.o
move-fd.c:47:17: error: implicit declaration of function 'CMSG_SPACE' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
char buffer[CMSG_SPACE(sizeof(fd))] = {0};
^
move-fd.c:47:17: error: variable-sized object may not be initialized
char buffer[CMSG_SPACE(sizeof(fd))] = {0};
^~~~~~~~~~~~~~~~~~~~~~
move-fd.c:55:27: error: implicit declaration of function 'CMSG_LEN' is invalid
in C99 [-Werror,-Wimplicit-function-declaration]
control->cmsg_len = CMSG_LEN(sizeof(fd));
^
move-fd.c:81:17: error: implicit declaration of function 'CMSG_SPACE' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
char buffer[CMSG_SPACE(sizeof(fd))];
^
4 errors generated.
make[2]: *** [guacd-move-fd.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2---------------
my gcc version is:
MacBook-Pro guacamole-server-1.2.0 % gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.2)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Seems CMSG_SPACE and CMSG_LEN definitions are missing.
Any ideas? Appreciate your input.
Thanks,Srinivas.