In addition to the patch provided, I added a +1 to the strncpy length
and that got rid of that compile.  The last byte will be overwritten by the
NULL added by the patch so it won't hurt anything.

Now I've got another compile error having to do with a incorrect definition that I'm not sure how to fix:

jpeg.c: In function ‘guacenc_jpeg_decoder’:
jpeg.c:94:5: error: implicit declaration of function ‘jpeg_mem_src’; did you mean ‘jpeg_stdio_src’? [-Werror=implicit-function-declaration]
     jpeg_mem_src(&cinfo, data, length);
     ^~~~~~~~~~~~
     jpeg_stdio_src


-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
 Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting.
   Knowledgeable human assistance, not telephone trees or script readers.
 See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.

On Sun, 24 Feb 2019, Robert Dinse wrote:

Date: Sun, 24 Feb 2019 15:46:39 -0800 (PST)
From: Robert Dinse <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: Compile Error


    That patch isn't going to fix it, at leat not under Ubuntu, as I applied
it and still got the same compile error.

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Eskimo North Linux Friendly Internet Access, Shell Accounts, and Hosting.
  Knowledgeable human assistance, not telephone trees or script readers.
See our web site: http://www.eskimo.com/ (206) 812-0051 or (800) 246-6874.

On Sun, 24 Feb 2019, Nick Couchman wrote:

Date: Sun, 24 Feb 2019 07:13:17 -0500
From: Nick Couchman <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: Re: Compile Error

On Sun, Feb 24, 2019 at 5:48 AM Robert Dinse <[email protected]> wrote:


      Pulled the source from github and attempted to compile on Ubuntu
18.10 but
got the following error:

guac_svc/svc_service.c: In function VirtualChannelEntry:
guac_svc/svc_service.c:56:5: error: strncpy output may be truncated
copying 7 bytes from a string of length 7 [-Werror=stringop-truncation]
      strncpy(svc_plugin->plugin.channel_def.name, svc->name,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              GUAC_RDP_SVC_MAX_LENGTH);
              ~~~~~~~~~~~~~~~~~~~~~~~~

      Any suggestions as to how to fix?  Normally an error like this would
not stop a compile but directives are given that cause all warnings to be
treated as errors so this stops the compile.


Looks like you're hitting this issue:

https://issues.apache.org/jira/browse/GUACAMOLE-637

which has an active pull request that is being review and will hopefully be
merged, soon.  Should be fixed in version 1.1.0.

https://github.com/apache/guacamole-server/pull/209

-Nick

Reply via email to