Guacamole Compilation Error on Fedora 24
-
Computing Apache Guacamole 0.9.9 on Fedora 24 or Korora 24 with GCC 6 results in:
/usr/include/glib-2.0/gobject/gparam.h:166:33: error: enumerator value for 'G_PARAM_DEPRECATED' is not an integer constant expression [-Werror=pedantic] G_PARAM_DEPRECATED = 1 << 31 ^ cc1: all warnings being treated as errors Makefile:523: recipe for target 'libguac_terminal_la-display.lo' failed make[2]: *** [libguac_terminal_la-display.lo] Error 1 make[2]: Leaving directory '/tmp/guacamole-server-0.9.9/src/terminal' Makefile:463: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/tmp/guacamole-server-0.9.9' Makefile:394: recipe for target 'all' failed make: *** [all] Error 2
This is caused by a compatibility issue with GCC 6.
-
Looks like a known issue.
https://glyptodon.org/jira/browse/GUAC-1530
Looks like you can work around that by compiling with "-Wno-error=pedantic".
-
@tiagom said in Guacamole Compilation Error on Fedora 24:
Looks like a known issue.
https://glyptodon.org/jira/browse/GUAC-1530
Looks like you can work around that by compiling with "-Wno-error=pedantic".
Yeah, tried that and no luck.
-
oh duh, it was off screen. I guess i need some sleep..
-
So strange even the GCC 6 documentation implies that -Wno-error=pedantic should cause -Werror=pedantic warnings to not be treated as errors.
"This switch takes a negative form, to be used to negate -Werror for specific warnings; for example -Wno-error=switch makes -Wswitch warnings not be errors, even when -Werror is in effect."
https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/Warning-Options.html#Warning-Options
I would guess if you really want to install you could remove -Werror from AM_INIT_AUTOMAKE (or add -Wno-error=pedantic)
https://github.com/apache/incubator-guacamole-server/blob/master/configure.ac#L22