On Thu, Jul 27, 2023 at 5:08 AM Slava <volga...@networklab.ca.invalid> wrote:
>
> Hello Everyone,
> I am trying build 1.5.2 version RPMS and it failing
>
>   CC       guacenc-webp.o
> video.c: In function 'guacenc_video_alloc':
> video.c:63:22: error: assignment discards 'const' qualifier from pointer 
> target type [-Werror=discarded-qualifiers]
>    63 |     container_format = container_format_context->oformat;
>       |                      ^
> video.c:66:22: error: initialization discards 'const' qualifier from pointer 
> target type [-Werror=discarded-qualifiers]
>    66 |     AVCodec* codec = avcodec_find_encoder_by_name(codec_name);
>       |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:1130: guacenc-video.o] Error 1
> make[2]: Leaving directory 
> '/home/volga629/rpmbuild/BUILD/guacamole-server-1.5.2/src/guacenc'
> make[1]: *** [Makefile:544: all-recursive] Error 1
> make[1]: Leaving directory 
> '/home/volga629/rpmbuild/BUILD/guacamole-server-1.5.2'
> make: *** [Makefile:464: all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.SEAEtq (%build)
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.SEAEtq (%build)
>
>
>
> Build command
>
> %build
> autoreconf -if
> ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu 
> --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 
> --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
> --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec 
> --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man 
> --infodir=/usr/share/info --with-systemd-dir=%{_unitdir} 
> --with-guacd-conf=/etc/guacamole/guacd.conf
>
> Any help thank you, volga629

I believe you're running into this issue:

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

The fix for it has been merged and will likely be included in 1.6.0,
whenever that is released. For the time being you have a few options:
* Build against the master branch, which will include this fix and
other items slated for the future 1.6.0 release.
* Back-port the patch from the pull request into your RPM build
(https://github.com/apache/guacamole-server/pull/399).
* Disable guacenc during the build.

-Nick
  • RPM build Slava
    • Re: RPM build Nick Couchman

Reply via email to