You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@guacamole.apache.org by Shawn Qureshi <th...@gmail.com> on 2019/07/30 12:47:05 UTC

Make errors on Fedora 30

Hi, I'm getting make errors on Fedora 30 (kernel 5.1.17-300.fc30.x86_64),
was hoping someone could help isolate what's going on here, I'm not a C
developer so I'm not sure how to fix this:

make[2]: Entering directory '/root/guacamole-server-0.9.14/src/common-ssh'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/common-ssh'
Making all in src/terminal
make[2]: Entering directory '/root/guacamole-server-0.9.14/src/terminal'
  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=]
  133 |     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
  133 |     sprintf(typescript->timing_filename, "%s.%s",
typescript->data_filename,
      |
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  134 |             GUAC_TERMINAL_TYPESCRIPT_TIMING_SUFFIX);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:566: libguac_terminal_la-typescript.lo] Error 1
make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/terminal'
make[1]: *** [Makefile:503: all-recursive] Error 1
make[1]: Leaving directory '/root/guacamole-server-0.9.14'
make: *** [Makefile:427: all] Error 2


- Shawn Q
"Nature is so Complex, it's Simply beautiful."

Re: Make errors on Fedora 30

Posted by Shawn Qureshi <th...@gmail.com>.
On Tue, Jul 30, 2019 at 5:41 PM Mike Jumper <mj...@apache.org> wrote:

> On Tue, Jul 30, 2019 at 11:33 AM Shawn Qureshi <th...@gmail.com>
> wrote:
>
>> ...
>>>
>>
>> Thanks, that brought me a long further, but now there seems to be an
>> error with using the libavcodec, I am using  ffmpeg-4.1.4-1.fc30-x86_64
>>
>> make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacd'
>> Making all in src/guacenc
>> make[2]: Entering directory '/root/guacamole-server-1.0.0/src/guacenc'
>>   CC       guacenc-buffer.o
>>   CC       guacenc-cursor.o
>>   CC       guacenc-display.o
>>   CC       guacenc-display-buffers.o
>>   CC       guacenc-display-image-streams.o
>>   CC       guacenc-display-flatten.o
>>   CC       guacenc-display-layers.o
>>   CC       guacenc-display-sync.o
>>   CC       guacenc-encode.o
>>   CC       guacenc-ffmpeg-compat.o
>>   CC       guacenc-guacenc.o
>> guacenc.c: In function âmainâ:
>> guacenc.c:79:5: error: âavcodec_register_allâ is deprecated
>> [-Werror=deprecated-declarations]
>>    79 |     avcodec_register_all();
>>       |     ^~~~~~~~~~~~~~~~~~~~
>> In file included from guacenc.c:27:
>> /usr/include/ffmpeg/libavcodec/avcodec.h:4102:6: note: declared here
>>  4102 | void avcodec_register_all(void);
>>       |      ^~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>> make[2]: *** [Makefile:761: guacenc-guacenc.o] Error 1
>> make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacenc'
>>
>
> See: https://issues.apache.org/jira/browse/GUACAMOLE-638
>
> As noted in JIRA, the above has been resolved for the upcoming 1.1.0
> release. In the meantime, you can either build off git (if interested in
> testing) or disable the guacenc part of the build by passing
> "--disable-guacenc" to ./configure.
>
> - Mike
>
>
Brilliant, that worked!

This is a tiny home network anyway, thanks so much for your help!

Re: Make errors on Fedora 30

Posted by Mike Jumper <mj...@apache.org>.
On Tue, Jul 30, 2019 at 11:33 AM Shawn Qureshi <th...@gmail.com>
wrote:

> ...
>>
>
> Thanks, that brought me a long further, but now there seems to be an error
> with using the libavcodec, I am using  ffmpeg-4.1.4-1.fc30-x86_64
>
> make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacd'
> Making all in src/guacenc
> make[2]: Entering directory '/root/guacamole-server-1.0.0/src/guacenc'
>   CC       guacenc-buffer.o
>   CC       guacenc-cursor.o
>   CC       guacenc-display.o
>   CC       guacenc-display-buffers.o
>   CC       guacenc-display-image-streams.o
>   CC       guacenc-display-flatten.o
>   CC       guacenc-display-layers.o
>   CC       guacenc-display-sync.o
>   CC       guacenc-encode.o
>   CC       guacenc-ffmpeg-compat.o
>   CC       guacenc-guacenc.o
> guacenc.c: In function âmainâ:
> guacenc.c:79:5: error: âavcodec_register_allâ is deprecated
> [-Werror=deprecated-declarations]
>    79 |     avcodec_register_all();
>       |     ^~~~~~~~~~~~~~~~~~~~
> In file included from guacenc.c:27:
> /usr/include/ffmpeg/libavcodec/avcodec.h:4102:6: note: declared here
>  4102 | void avcodec_register_all(void);
>       |      ^~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:761: guacenc-guacenc.o] Error 1
> make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacenc'
>

See: https://issues.apache.org/jira/browse/GUACAMOLE-638

As noted in JIRA, the above has been resolved for the upcoming 1.1.0
release. In the meantime, you can either build off git (if interested in
testing) or disable the guacenc part of the build by passing
"--disable-guacenc" to ./configure.

- Mike

Re: Make errors on Fedora 30

Posted by Shawn Qureshi <th...@gmail.com>.
On Tue, Jul 30, 2019 at 1:15 PM Mike Jumper <mj...@apache.org> wrote:

> On Tue, Jul 30, 2019, 05:47 Shawn Qureshi <th...@gmail.com> wrote:
>
>> Hi, I'm getting make errors on Fedora 30 (kernel 5.1.17-300.fc30.x86_64),
>> was hoping someone could help isolate what's going on here, I'm not a C
>> developer so I'm not sure how to fix this:
>>
>> make[2]: Entering directory '/root/guacamole-server-0.9.14/src/common-ssh'
>> make[2]: Nothing to be done for 'all'.
>> make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/common-ssh'
>> Making all in src/terminal
>> make[2]: Entering directory '/root/guacamole-server-0.9.14/src/terminal'
>>   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=]
>>   133 |     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
>>   133 |     sprintf(typescript->timing_filename, "%s.%s",
>> typescript->data_filename,
>>       |
>>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>   134 |             GUAC_TERMINAL_TYPESCRIPT_TIMING_SUFFIX);
>>       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> cc1: all warnings being treated as errors
>> make[2]: *** [Makefile:566: libguac_terminal_la-typescript.lo] Error 1
>> make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/terminal'
>> make[1]: *** [Makefile:503: all-recursive] Error 1
>> make[1]: Leaving directory '/root/guacamole-server-0.9.14'
>> make: *** [Makefile:427: all] Error 2
>>
>
> Rather than build 0.9.14, you should instead build the latest release.
> This was fixed in 1.0.0:
>
> https://issues.apache.org/jira/browse/GUACAMOLE-500
>
> https://guacamole.apache.org/releases/1.0.0/
>
> - Mike
>
>
Thanks, that brought me a long further, but now there seems to be an error
with using the libavcodec, I am using  ffmpeg-4.1.4-1.fc30-x86_64

make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacd'
Making all in src/guacenc
make[2]: Entering directory '/root/guacamole-server-1.0.0/src/guacenc'
  CC       guacenc-buffer.o
  CC       guacenc-cursor.o
  CC       guacenc-display.o
  CC       guacenc-display-buffers.o
  CC       guacenc-display-image-streams.o
  CC       guacenc-display-flatten.o
  CC       guacenc-display-layers.o
  CC       guacenc-display-sync.o
  CC       guacenc-encode.o
  CC       guacenc-ffmpeg-compat.o
  CC       guacenc-guacenc.o
guacenc.c: In function âmainâ:
guacenc.c:79:5: error: âavcodec_register_allâ is deprecated
[-Werror=deprecated-declarations]
   79 |     avcodec_register_all();
      |     ^~~~~~~~~~~~~~~~~~~~
In file included from guacenc.c:27:
/usr/include/ffmpeg/libavcodec/avcodec.h:4102:6: note: declared here
 4102 | void avcodec_register_all(void);
      |      ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:761: guacenc-guacenc.o] Error 1
make[2]: Leaving directory '/root/guacamole-server-1.0.0/src/guacenc'

Re: Make errors on Fedora 30

Posted by Mike Jumper <mj...@apache.org>.
On Tue, Jul 30, 2019, 05:47 Shawn Qureshi <th...@gmail.com> wrote:

> Hi, I'm getting make errors on Fedora 30 (kernel 5.1.17-300.fc30.x86_64),
> was hoping someone could help isolate what's going on here, I'm not a C
> developer so I'm not sure how to fix this:
>
> make[2]: Entering directory '/root/guacamole-server-0.9.14/src/common-ssh'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/common-ssh'
> Making all in src/terminal
> make[2]: Entering directory '/root/guacamole-server-0.9.14/src/terminal'
>   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=]
>   133 |     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
>   133 |     sprintf(typescript->timing_filename, "%s.%s",
> typescript->data_filename,
>       |
>  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   134 |             GUAC_TERMINAL_TYPESCRIPT_TIMING_SUFFIX);
>       |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:566: libguac_terminal_la-typescript.lo] Error 1
> make[2]: Leaving directory '/root/guacamole-server-0.9.14/src/terminal'
> make[1]: *** [Makefile:503: all-recursive] Error 1
> make[1]: Leaving directory '/root/guacamole-server-0.9.14'
> make: *** [Makefile:427: all] Error 2
>

Rather than build 0.9.14, you should instead build the latest release. This
was fixed in 1.0.0:

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

https://guacamole.apache.org/releases/1.0.0/

- Mike