You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by ReachNab <re...@gmail.com> on 2017/08/31 04:47:53 UTC

Raspberry Pi3 Debian compile fails for Stable and git versions of Guacamole server

  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,
                                              ^~
typescript.c:133:5: note: 'sprintf' output between 8 and 2055 bytes into a
destination of size 2048
     sprintf(typescript->timing_filename, "%s.%s",
typescript->data_filename,
    
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             GUAC_TERMINAL_TYPESCRIPT_TIMING_SUFFIX);
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:567: recipe for target 'libguac_terminal_la-typescript.lo' failed
make[2]: *** [libguac_terminal_la-typescript.lo] Error 1
make[2]: Leaving directory '/srv/incubator-guacamole-server/src/terminal'
Makefile:493: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/srv/incubator-guacamole-server'
Makefile:425: recipe for target 'all' failed
make: *** [all] Error 2



--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/

Re: Raspberry Pi3 Debian compile fails for Stable and git versions of Guacamole server

Posted by ReachNab <re...@gmail.com>.
Found this on a fedora post, but not sure how it relates:

- Other failures unrelated to libwebp:

guacamole-server-0.9.10-2.fc26
typescript.c:133:46: error: '%s' directive writing 6 bytes into a region of
size between 0 and 2047 [-Werror=format-overflow=]

https://www.spinics.net/lists/fedora-devel/msg230144.html



--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/

Re: Raspberry Pi3 Debian compile fails for Stable and git versions of Guacamole server

Posted by ReachNab <re...@gmail.com>.
Just an update so people are aware, since It seems this will affect a growing
number of people as gcc7 is adopted.. After doing more research it appears
there are a growing number of applications that are getting similar overflow
errors with GCC7 because of how the compiler handles things, one developer
called it "too smart for it's own good" when dealing with size issues in
memory/buffer.

Forcing my system to compile Guacamole server with gcc6 was successful.




--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/

Re: Raspberry Pi3 Debian compile fails for Stable and git versions of Guacamole server

Posted by ReachNab <re...@gmail.com>.
Debian flavor/release is:
Kali Rolling 

Arch: 
arm71

gcc:
Version 7.2.0 (Debian 7.2.0-1)



--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/

Re: Raspberry Pi3 Debian compile fails for Stable and git versions of Guacamole server

Posted by Nick Couchman <ni...@yahoo.com>.
 
What version of Debian are you compiling on, and what version of GCC are you using?
-Nick    On Thursday, August 31, 2017, 12:47:56 AM EDT, ReachNab <re...@gmail.com> wrote:  
 
   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,
                                              ^~
typescript.c:133:5: note: 'sprintf' output between 8 and 2055 bytes into a
destination of size 2048
    sprintf(typescript->timing_filename, "%s.%s",
typescript->data_filename,
    
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            GUAC_TERMINAL_TYPESCRIPT_TIMING_SUFFIX);
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Makefile:567: recipe for target 'libguac_terminal_la-typescript.lo' failed
make[2]: *** [libguac_terminal_la-typescript.lo] Error 1
make[2]: Leaving directory '/srv/incubator-guacamole-server/src/terminal'
Makefile:493: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/srv/incubator-guacamole-server'
Makefile:425: recipe for target 'all' failed
make: *** [all] Error 2



--
Sent from: http://apache-guacamole-incubating-users.2363388.n4.nabble.com/