Created attachment 385054 [details] build.log codec/avcodec/avcodec.c: In function ‘OpenDecoder’: codec/avcodec/avcodec.c:316:9: error: implicit declaration of function ‘avcodec_free_context’ [-Werror=implicit-function-declaration] avcodec_free_context( &avctx ); ^ cc1: some warnings being treated as errors Makefile:7906: recipe for target 'codec/avcodec/libavcodec_plugin_la-avcodec.lo' failed make[4]: *** [codec/avcodec/libavcodec_plugin_la-avcodec.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B codec/.libs/libx265_plugin_la-x265.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libx265_plugin.exp libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B video_chroma/.libs/libvaapi_drm_plugin_la-copy.o codec/avcodec/.libs/libvaapi_drm_plugin_la-vaapi.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libvaapi_drm_plugin.exp libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libx265_plugin.exp" > ".libs/libx265_plugin.expT" libtool: link: mv -f ".libs/libx265_plugin.expT" ".libs/libx265_plugin.exp" libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libvaapi_drm_plugin.exp" > ".libs/libvaapi_drm_plugin.expT" libtool: link: mv -f ".libs/libvaapi_drm_plugin.expT" ".libs/libvaapi_drm_plugin.exp" libtool: link: echo "{ global:" > .libs/libx265_plugin.ver libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B video_chroma/.libs/libvaapi_x11_plugin_la-copy.o codec/avcodec/.libs/libvaapi_x11_plugin_la-vaapi.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libvaapi_x11_plugin.exp libtool: link: cat .libs/libx265_plugin.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libx265_plugin.ver libtool: link: echo "{ global:" > .libs/libvaapi_drm_plugin.ver libtool: link: cat .libs/libvaapi_drm_plugin.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libvaapi_drm_plugin.ver libtool: link: echo "local: *; };" >> .libs/libvaapi_drm_plugin.ver libtool: link: echo "local: *; };" >> .libs/libx265_plugin.ver libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC video_chroma/.libs/libvaapi_drm_plugin_la-copy.o codec/avcodec/.libs/libvaapi_drm_plugin_la-vaapi.o -Wl,-rpath -Wl,/tmp/portage/media-video/vlc-9999/work/vlc-9999/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -lm -ldbus-1 -Wl,--as-needed -lva-drm -lva -march=native -mtune=native -O2 -Wl,-O1 -Wl,-soname -Wl,libvaapi_drm_plugin.so -Wl,-version-script -Wl,.libs/libvaapi_drm_plugin.ver -o .libs/libvaapi_drm_plugin.so libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC codec/.libs/libx265_plugin_la-x265.o -Wl,-rpath -Wl,/tmp/portage/media-video/vlc-9999/work/vlc-9999/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -lm -ldbus-1 -Wl,--as-needed -lx265 -march=native -mtune=native -O2 -Wl,-O1 -Wl,-soname -Wl,libx265_plugin.so -Wl,-version-script -Wl,.libs/libx265_plugin.ver -o .libs/libx265_plugin.so libtool: link: /usr/bin/x86_64-pc-linux-gnu-nm -B codec/.libs/libx264_plugin_la-x264.o | sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' | /bin/sed 's/.* //' | sort | uniq > .libs/libx264_plugin.exp libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libvaapi_x11_plugin.exp" > ".libs/libvaapi_x11_plugin.expT" libtool: link: mv -f ".libs/libvaapi_x11_plugin.expT" ".libs/libvaapi_x11_plugin.exp" libtool: link: /bin/grep -E -e "^vlc_entry" ".libs/libx264_plugin.exp" > ".libs/libx264_plugin.expT" libtool: link: mv -f ".libs/libx264_plugin.expT" ".libs/libx264_plugin.exp" libtool: link: echo "{ global:" > .libs/libvaapi_x11_plugin.ver libtool: link: echo "{ global:" > .libs/libx264_plugin.ver libtool: link: cat .libs/libvaapi_x11_plugin.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libvaapi_x11_plugin.ver libtool: link: cat .libs/libx264_plugin.exp | sed -e "s/\(.*\)/\1;/" >> .libs/libx264_plugin.ver libtool: link: echo "local: *; };" >> .libs/libvaapi_x11_plugin.ver libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC video_chroma/.libs/libvaapi_x11_plugin_la-copy.o codec/avcodec/.libs/libvaapi_x11_plugin_la-vaapi.o -Wl,-rpath -Wl,/tmp/portage/media-video/vlc-9999/work/vlc-9999/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -lm -ldbus-1 -Wl,--as-needed -lva-x11 -lva -lSM -lICE -lX11 -march=native -mtune=native -O2 -Wl,-O1 -Wl,-soname -Wl,libvaapi_x11_plugin.so -Wl,-version-script -Wl,.libs/libvaapi_x11_plugin.ver -o .libs/libvaapi_x11_plugin.so libtool: link: ( cd ".libs" && rm -f "libx265_plugin.la" && ln -s "../libx265_plugin.la" "libx265_plugin.la" ) libtool: link: ( cd ".libs" && rm -f "libvaapi_drm_plugin.la" && ln -s "../libvaapi_drm_plugin.la" "libvaapi_drm_plugin.la" ) libtool: link: echo "local: *; };" >> .libs/libx264_plugin.ver libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared -fPIC -DPIC codec/.libs/libx264_plugin_la-x264.o -Wl,-rpath -Wl,/tmp/portage/media-video/vlc-9999/work/vlc-9999/src/.libs ../compat/.libs/libcompat.a -L/usr/lib64/sidplay/builders/ ../src/.libs/libvlccore.so -lrt -lidn -lpthread -ldl -ldbus-1 -Wl,--as-needed -lx264 -lm -march=native -mtune=native -O2 -Wl,-Bsymbolic -Wl,-O1 -Wl,-soname -Wl,libx264_plugin.so -Wl,-version-script -Wl,.libs/libx264_plugin.ver -o .libs/libx264_plugin.so libtool: link: ( cd ".libs" && rm -f "libx264_plugin.la" && ln -s "../libx264_plugin.la" "libx264_plugin.la" ) libtool: link: ( cd ".libs" && rm -f "libvaapi_x11_plugin.la" && ln -s "../libvaapi_x11_plugin.la" "libvaapi_x11_plugin.la" ) make[4]: Leaving directory '/tmp/portage/media-video/vlc-9999/work/vlc-9999/modules' Makefile:9815: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/tmp/portage/media-video/vlc-9999/work/vlc-9999/modules' Makefile:4577: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/tmp/portage/media-video/vlc-9999/work/vlc-9999/modules' Makefile:1952: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/tmp/portage/media-video/vlc-9999/work/vlc-9999' Makefile:1836: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: media-video/vlc-9999::gentoo failed (compile phase): * emake failed ----------------------------------------------------------------------------- but vanilla version builds fine
Created attachment 385056 [details] emerge.info
please remove from ebuild -------------------------- # _FORTIFY_SOURCE is set to 2 by default on Gentoo, remove redefine warnings. sed -i '/_FORTIFY_SOURCE.*, 2,/d' configure.ac || die -------------------------- because building fails with that patching.
(In reply to Perfect Gentleman from comment #2) > please remove from ebuild > -------------------------- > # _FORTIFY_SOURCE is set to 2 by default on Gentoo, remove redefine > warnings. > sed -i '/_FORTIFY_SOURCE.*, 2,/d' configure.ac || die > -------------------------- > because building fails with that patching. Are you sure that this is a real solution? I don't see a connection between FORTIFY_SOURCE and "implicit declaration of function". I have similar configuration to yours and tried the same USE flags that you had - could not reproduce original problem. Please try again - we fixed some avcodec issue in VLC ebuilds few days ago, that may be related to your problem. Also, it is possible that Git version was broken for some time.
I have absolutely no idea what the change mentioned in comment 2 does, but I was also having the same problem and it is now fixed with the change...
(In reply to Mehmet Giritli from comment #4) > I have absolutely no idea what the change mentioned in comment 2 does, but I > was also having the same problem and it is now fixed with the change... Have you also tried vlc-9999? What is the package version that fullfils virtual/ffmpeg requirement (media-video/libav or media-video/ffmpeg)?
Should be ok for some time. Forgot to close it.