Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834424 - www-plugins/lightspark-0.8.5 with ffmpeg-5.0: src/backends/decoder.cpp:164:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
Summary: www-plugins/lightspark-0.8.5 with ffmpeg-5.0: src/backends/decoder.cpp:164:43...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chí-Thanh Christopher Nguyễn
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: ffmpeg-5.0
  Show dependency tree
 
Reported: 2022-02-28 21:52 UTC by Kobboi
Modified: 2022-05-15 23:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,5.50 KB, application/gzip)
2022-02-28 21:52 UTC, Kobboi
Details
emerge-info.txt (emerge-info.txt,8.00 KB, text/plain)
2022-02-28 21:52 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2022-02-28 21:52:10 UTC
[20/248] /usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_LIBAVCODEC -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODECID -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVCODEC_RECEIVE_FRAME -DHAVE_AVCODEC_SEND_PACKET -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_AV_FRAME_ALLOC -DHAVE
_AV_FRAME_UNREF -DHAVE_AV_PACKET_UNREF -DHAVE_LIBSWRESAMPLE -DLIGHTSPARK_64 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib64/lightspark\" -Dspark_EXPORTS -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5_build -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/includ
e -I/usr/include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/SDL2 -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src -I/var/tmp/po
rtage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/scripting -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/3rdparty/jxrlib/jxrgluelib  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wdisabled-optimization -Wext
ra -Wno-unused-parameter -Wno-invalid-offsetof -fPIC -MD -MT src/CMakeFiles/spark.dir/backends/decoder.cpp.o -MF src/CMakeFiles/spark.dir/backends/decoder.cpp.o.d -o src/CMakeFiles/spark.dir/backends/decoder.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp
FAILED: src/CMakeFiles/spark.dir/backends/decoder.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DENABLE_LIBAVCODEC -DGNASH_PATH=\"/usr/bin/gnash\" -DHAVE_ATOMIC -DHAVE_AVCODECID -DHAVE_AVCODEC_ALLOC_CONTEXT3 -DHAVE_AVCODEC_OPEN2 -DHAVE_AVCODEC_RECEIVE_FRAME -DHAVE_AVCODEC_SEND_PACKET -DHAVE_AVFORMAT_CLOSE_INPUT -DHAVE_AVFORMAT_FIND_STREAM_INFO -DHAVE_AVIO_ALLOC_CONTEXT -DHAVE_AV_FRAME_ALLOC -DHAVE_AV_FRAME
_UNREF -DHAVE_AV_PACKET_UNREF -DHAVE_LIBSWRESAMPLE -DLIGHTSPARK_64 -DLS_DATADIR=\"/usr/share/lightspark\" -DPRIVATELIBDIR=\"/usr/lib64/lightspark\" -Dspark_EXPORTS -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5_build -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/
include/sysprof-4 -I/usr/lib64/libffi/include -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/SDL2 -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src -I/var/tmp/portage/www
-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/scripting -I/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/3rdparty/jxrlib/jxrgluelib  -O2 -march=znver3 -pipe -g -ggdb3 -Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Wdisabled-optimization -Wextra -Wno-u
nused-parameter -Wno-invalid-offsetof -fPIC -MD -MT src/CMakeFiles/spark.dir/backends/decoder.cpp.o -MF src/CMakeFiles/spark.dir/backends/decoder.cpp.o.d -o src/CMakeFiles/spark.dir/backends/decoder.cpp.o -c /var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp: In member function ‘virtual void lightspark::FFMpegVideoDecoder::switchCodec(lightspark::LS_VIDEO_CODEC, uint8_t*, uint32_t, double)’:
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:164:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  164 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:172:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  172 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:183:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  183 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:194:43: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  194 |                 codec=avcodec_find_decoder(FFMPEGcodecId);
      |                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                                           |
      |                                           const AVCodec*
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp: In constructor ‘lightspark::FFMpegVideoDecoder::FFMpegVideoDecoder(AVCodecParameters*, double)’:
/var/tmp/portage/www-plugins/lightspark-0.8.5/work/lightspark-0.8.5/src/backends/decoder.cpp:245:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
  245 |         AVCodec* codec=avcodec_find_decoder(codecPar->codec_id);
      |                        ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
      |                                            |
      |                                            const AVCodec*


Reproducible: Always
Comment 1 Kobboi 2022-02-28 21:52:33 UTC
Created attachment 766103 [details]
build.log.gz
Comment 2 Kobboi 2022-02-28 21:52:37 UTC
Created attachment 766104 [details]
emerge-info.txt
Comment 3 Kobboi 2022-02-28 21:58:24 UTC
Compiles fine with 
* USE=ffmpeg and ffmpeg-4.4.1
* USE=-ffmpeg and ffmpeg-5.0