#1772 closed defect (fixed)
Deprecated declarations
Reported by: | Antonio | Owned by: | Antoine Martin |
---|---|---|---|
Priority: | minor | Milestone: | 2.3 |
Component: | packaging | Version: | 2.2.x |
Keywords: | Cc: | devurandom@… |
Description
Hello.
xpra/codecs/dec_avcodec2/decoder.c is not compiled for a "deprecated declaration" error:
building 'xpra.codecs.dec_avcodec2.decoder' extension creating build/temp.linux-x86_64-2.7/xpra/codecs/dec_avcodec2 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -mcet -fcf-protection -fPIC -I/usr/include/ffmpeg -I/usr/include/python2.7 -c xpra/codecs/dec_avcodec2/decoder.c -o build/temp.linux-x86_64-2.7/xpra/codecs/dec_avcodec2/decoder.o -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror -fPIC xpra/codecs/dec_avcodec2/decoder.c: In function '__pyx_pf_4xpra_6codecs_12dec_avcodec2_7decoder_7Decoder_init_context': xpra/codecs/dec_avcodec2/decoder.c:5218:3: error: 'avcodec_register_all' is deprecated [-Werror=deprecated-declarations] avcodec_register_all(); ^~~~~~~~~~~~~~~~~~~~ In file included from xpra/codecs/dec_avcodec2/decoder.c:579: /usr/include/ffmpeg/libavcodec/avcodec.h:4044:6: note: declared here void avcodec_register_all(void); ^~~~~~~~~~~~~~~~~~~~ xpra/codecs/dec_avcodec2/decoder.c: In function 'initdecoder': xpra/codecs/dec_avcodec2/decoder.c:13996:3: error: 'avcodec_register_all' is deprecated [-Werror=deprecated-declarations] avcodec_register_all(); ^~~~~~~~~~~~~~~~~~~~ In file included from xpra/codecs/dec_avcodec2/decoder.c:579: /usr/include/ffmpeg/libavcodec/avcodec.h:4044:6: note: declared here void avcodec_register_all(void); ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors error: command 'gcc' failed with exit status 1
xpra-2.2.4
ffmpeg-3.5
gcc-8.0.1
Change History (6)
comment:1 Changed 3 years ago by
Keywords: | 2.2.4 removed |
---|---|
Milestone: | → future |
Priority: | critical → minor |
Status: | new → assigned |
comment:2 Changed 3 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 3 years ago by
Milestone: | future → 2.3 |
---|
comment:4 Changed 2 years ago by
Cc: | devurandom@… added |
---|
comment:5 Changed 2 years ago by
@devurandom: this ticket is closed as fixed, it will not receive further updates.
comment:6 Changed 8 months ago by
Workaround removed in r26267 as xpra v4 no longer supports older versions of ffmpeg.
Note: See
TracTickets for help on using
tickets.
As far as I can tell, there is no replacement for this function.
We'll deal with it when ffmpeg 4.0 comes out, hopefully they will have fixed their own code and provided an alternative by then.
Until then, you can silence the warnings with
--without-strict
.