guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Couchman <vn...@apache.org>
Subject Re: 9.14 - Built failed with 2 error
Date Thu, 24 May 2018 20:40:29 GMT
On Thu, May 24, 2018 at 4:38 PM, sebastienbeausoleil <
sebastien@nubilogic.com> wrote:

> Hi, I tried to build the guacamole-server 9.14 but here is the 2 errors
> happening during the make process:
>
> make  all-recursive
> make[1]: Entering directory '/guacamole/guacamole-server-0.9.14'
> Making all in src/libguac
> make[2]: Entering directory '/guacamole/guacamole-server-0.9.14/src/libguac'
>   CC       libguac_la-audio.lo
>   CC       libguac_la-client.lo
>   CC       libguac_la-encode-jpeg.lo
>   CC       libguac_la-encode-png.lo
>   CC       libguac_la-error.lo
>   CC       libguac_la-hash.lo
>   CC       libguac_la-id.lo
>   CC       libguac_la-palette.lo
>   CC       libguac_la-parser.lo
>   CC       libguac_la-pool.lo
>   CC       libguac_la-protocol.lo
>   CC       libguac_la-raw_encoder.lo
>   CC       libguac_la-socket.lo
>   CC       libguac_la-socket-broadcast.lo
>   CC       libguac_la-socket-fd.lo
>   CC       libguac_la-socket-nest.lo
>   CC       libguac_la-socket-tee.lo
>   CC       libguac_la-timestamp.lo
>   CC       libguac_la-unicode.lo
>   CC       libguac_la-user.lo
>   CC       libguac_la-user-handlers.lo
>   CC       libguac_la-user-handshake.lo
>   CC       libguac_la-wait-fd.lo
>   CC       libguac_la-encode-webp.lo
>   CC       libguac_la-socket-ssl.lo
>   CCLD     libguac.la
> ar: `u' modifier ignored since `D' is the default (see `U')
> make[2]: Leaving directory '/guacamole/guacamole-server-0.9.14/src/libguac'
> Making all in src/common
> make[2]: Entering directory '/guacamole/guacamole-server-0.9.14/src/common'
>   CC       libguac_common_la-io.lo
>   CC       libguac_common_la-blank_cursor.lo
>   CC       libguac_common_la-clipboard.lo
>   CC       libguac_common_la-cursor.lo
>   CC       libguac_common_la-display.lo
>   CC       libguac_common_la-dot_cursor.lo
>   CC       libguac_common_la-ibar_cursor.lo
>   CC       libguac_common_la-iconv.lo
>   CC       libguac_common_la-json.lo
>   CC       libguac_common_la-list.lo
>   CC       libguac_common_la-pointer_cursor.lo
>   CC       libguac_common_la-recording.lo
>   CC       libguac_common_la-rect.lo
>   CC       libguac_common_la-string.lo
>   CC       libguac_common_la-surface.lo
>   CCLD     libguac_common.la
> ar: `u' modifier ignored since `D' is the default (see `U')
> make[2]: Leaving directory '/guacamole/guacamole-server-0.9.14/src/common'
> Making all in tests
> make[2]: Entering directory '/guacamole/guacamole-server-0.9.14/tests'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/guacamole/guacamole-server-0.9.14/tests'
> Making all in src/common-ssh
> make[2]: Entering directory '/guacamole/guacamole-server-0.9.14/src/common-ssh'
>   CC       libguac_common_ssh_la-buffer.lo
>   CC       libguac_common_ssh_la-dsa-compat.lo
>   CC       libguac_common_ssh_la-rsa-compat.lo
>   CC       libguac_common_ssh_la-sftp.lo
>   CC       libguac_common_ssh_la-ssh.lo
>   CC       libguac_common_ssh_la-key.lo
>   CC       libguac_common_ssh_la-user.lo
>   CCLD     libguac_common_ssh.la
> ar: `u' modifier ignored since `D' is the default (see `U')
> make[2]: Leaving directory '/guacamole/guacamole-server-0.9.14/src/common-ssh'
> Making all in src/terminal
> make[2]: Entering directory '/guacamole/guacamole-server-0.9.14/src/terminal'
>   CC       libguac_terminal_la-buffer.lo
>   CC       libguac_terminal_la-char_mappings.lo
>   CC       libguac_terminal_la-common.lo
>   CC       libguac_terminal_la-display.lo
>   CC       libguac_terminal_la-named-colors.lo
>   CC       libguac_terminal_la-palette.lo
>   CC       libguac_terminal_la-scrollbar.lo
>   CC       libguac_terminal_la-terminal.lo
>   CC       libguac_terminal_la-terminal_handlers.lo
>   CC       libguac_terminal_la-typescript.lo
> typescript.c: In function ‘guac_terminal_typescript_alloc’:
> typescript.c:133:46: error: ‘%s’ directive writing 6 bytes into a region of size
between 0 and 2047 [-Werror=format-overflow=]
>      sprintf(typescript->timing_filename, "%s.%s", typescript->data_filename,
>                                               ^~
> In file included from /usr/include/stdio.h:862:0,
>                  from typescript.c:28:
> /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’
output between 8 and 2055 bytes into a destination of size 2048
>    return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
>           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>        __bos (__s), __fmt, __va_arg_pack ());
>        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
>
I'm guessing that you're using a new-ish version of GCC - 7.x, maybe?  I
believe this issue was fixed in a commit to the master - can you try
checking out the git master branch and see if that compiles cleanly?

-Nick

Mime
View raw message