Date: Fri, 04 Nov 2016 01:40:05 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214178] multimedia/pHash: fails to build with ffmpeg 3.x Message-ID: <bug-214178-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214178 Bug ID: 214178 Summary: multimedia/pHash: fails to build with ffmpeg 3.x Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: freebsd-ports-bugs@FreeBSD.org Blocks: 207547 configure fails early but the rest are as trivial. configure:16037: c++ -o conftest -O2 -pipe -fstack-protector -ffast-math= -O3 -D_THREAD_SAFE -I/usr/local/include -fstack-protector -L/usr/local/lib conftest.cpp -lavcodec -lpthread >&5 /tmp/conftest-07ad8e.o: In function `main': conftest.cpp:(.text+0x5): undefined reference to `avcodec_alloc_frame' c++: error: linker command failed with exit code 1 (use -v to see invocat= ion) configure:16037: $? =3D 1 cimgffmpeg.cpp:42:2: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? PixelFormat ffmpeg_pixfmt; ^~~~~~~~~~~ AVPixelFormat /usr/local/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ cimgffmpeg.cpp:44:22: error: use of undeclared identifier 'PIX_FMT_GRAY8'; did you mean 'AV_PIX_FMT_GRAY8'? ffmpeg_pixfmt =3D PIX_FMT_GRAY8; ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' decl= ared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ cimgffmpeg.cpp:46:22: error: use of undeclared identifier 'PIX_FMT_RGB24'; did you mean 'AV_PIX_FMT_RGB24'? ffmpeg_pixfmt =3D PIX_FMT_RGB24; ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' decl= ared here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ cimgffmpeg.cpp:70:39: warning: 'codec' is deprecated [-Wdeprecated-declarations] =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 if(st_info->pFormatCtx->streams[i]->codec->codec_type=3D=3DAVMEDIA_TYPE_VID= EO) ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ cimgffmpeg.cpp:81:79: warning: 'codec' is deprecated [-Wdeprecated-declarations] st_info->pCodecCtx =3D st_info->pFormatCtx->streams[st_info->videoStream]->codec; =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ cimgffmpeg.cpp:103:9: error: use of undeclared identifier 'avcodec_alloc_frame' pFrame=3Davcodec_alloc_frame(); ^ cimgffmpeg.cpp:108:29: error: use of undeclared identifier 'avcodec_alloc_frame' AVFrame *pConvertedFrame =3D avcodec_alloc_frame(); ^ cimgffmpeg.cpp:115:11: warning: 'avpicture_get_size' is deprecated [-Wdeprecated-declarations] numBytes=3Davpicture_get_size(ffmpeg_pixfmt, st_info->width,st_info->height); ^ /usr/local/include/./libavcodec/avcodec.h:5467:5: note: 'avpicture_get_si= ze' has been explicitly marked deprecated here int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height); ^ cimgffmpeg.cpp:120:2: warning: 'avpicture_fill' is deprecated [-Wdeprecated-declarations] avpicture_fill((AVPicture *)pConvertedFrame,buffer,ffmpeg_pixfmt,st_info->width,st_in... ^ /usr/local/include/./libavcodec/avcodec.h:5452:5: note: 'avpicture_fill' = has been explicitly marked deprecated here int avpicture_fill(AVPicture *picture, const uint8_t *ptr, ^ cimgffmpeg.cpp:126:41: error: use of undeclared identifier 'PIX_FMT_GRAY8= '; did you mean 'AV_PIX_FMT_GRAY8'? int channels =3D ffmpeg_pixfmt =3D=3D PIX_FMT_GRAY8 ? 1 : 3; ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' decl= ared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ cimgffmpeg.cpp:147:4: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] avcodec_decode_video2(st_info->pCodecCtx, pFrame, &frameFinished,&avpkt); ^ /usr/local/include/./libavcodec/avcodec.h:4811:5: note: 'avcodec_decode_video2' has been explicitly marked deprecated here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ cimgffmpeg.cpp:163:8: warning: 'av_free_packet' is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ /usr/local/include/./libavcodec/avcodec.h:4472:6: note: 'av_free_packet' = has been explicitly marked deprecated here void av_free_packet(AVPacket *pkt); ^ cimgffmpeg.cpp:192:9: error: unknown type name 'PixelFormat'; did you mean 'AVPixelFormat'? PixelFormat ffmpeg_pixfmt; ^~~~~~~~~~~ AVPixelFormat /usr/local/include/libavutil/pixfmt.h:60:6: note: 'AVPixelFormat' declared here enum AVPixelFormat { ^ cimgffmpeg.cpp:194:22: error: use of undeclared identifier 'PIX_FMT_GRAY8= '; did you mean 'AV_PIX_FMT_GRAY8'? ffmpeg_pixfmt =3D PIX_FMT_GRAY8; ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' decl= ared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ cimgffmpeg.cpp:196:22: error: use of undeclared identifier 'PIX_FMT_RGB24= '; did you mean 'AV_PIX_FMT_RGB24'? ffmpeg_pixfmt =3D PIX_FMT_RGB24; ^~~~~~~~~~~~~ AV_PIX_FMT_RGB24 /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' decl= ared here AV_PIX_FMT_RGB24, ///< packed RGB 8:8:8, 24bpp, RGBRGB... ^ cimgffmpeg.cpp:224:40: warning: 'codec' is deprecated [-Wdeprecated-declarations] =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 if(st_info->pFormatCtx->streams[i]->codec->codec_type=3D=3DAVMEDIA_TYPE_VID= EO) ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ cimgffmpeg.cpp:236:76: warning: 'codec' is deprecated [-Wdeprecated-declarations] st_info->pCodecCtx =3D st_info->pFormatCtx->streams[st_info->videoStream]->codec; =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20 ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ cimgffmpeg.cpp:257:9: error: use of undeclared identifier 'avcodec_alloc_frame' pFrame=3Davcodec_alloc_frame(); ^ cimgffmpeg.cpp:260:29: error: use of undeclared identifier 'avcodec_alloc_frame' AVFrame *pConvertedFrame =3D avcodec_alloc_frame(); ^ cimgffmpeg.cpp:268:11: warning: 'avpicture_get_size' is deprecated [-Wdeprecated-declarations] numBytes=3Davpicture_get_size(ffmpeg_pixfmt, st_info->width,st_info->height); ^ /usr/local/include/./libavcodec/avcodec.h:5467:5: note: 'avpicture_get_si= ze' has been explicitly marked deprecated here int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height); ^ cimgffmpeg.cpp:274:2: warning: 'avpicture_fill' is deprecated [-Wdeprecated-declarations] avpicture_fill((AVPicture *)pConvertedFrame,buffer,ffmpeg_pixfmt,st_info->width,st_in... ^ /usr/local/include/./libavcodec/avcodec.h:5452:5: note: 'avpicture_fill' = has been explicitly marked deprecated here int avpicture_fill(AVPicture *picture, const uint8_t *ptr, ^ cimgffmpeg.cpp:290:35: error: use of undeclared identifier 'PIX_FMT_GRAY8= '; did you mean 'AV_PIX_FMT_GRAY8'? int channels =3D ffmpeg_pixfmt =3D=3D PIX_FMT_GRAY8 ? 1 := 3; ^~~~~~~~~~~~~ AV_PIX_FMT_GRAY8 /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' decl= ared here AV_PIX_FMT_GRAY8, ///< Y , 8bpp ^ cimgffmpeg.cpp:300:17: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] avcodec_decode_video2(st_info->pCodecCtx, pFrame, &frameFinished,&avpkt); ^ /usr/local/include/./libavcodec/avcodec.h:4811:5: note: 'avcodec_decode_video2' has been explicitly marked deprecated here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ cimgffmpeg.cpp:321:14: warning: 'av_free_packet' is deprecated [-Wdeprecated-declarations] av_free_packet(&packet); ^ /usr/local/include/./libavcodec/avcodec.h:4472:6: note: 'av_free_packet' = has been explicitly marked deprecated here void av_free_packet(AVPacket *pkt); ^ cimgffmpeg.cpp:380:34: warning: 'codec' is deprecated [-Wdeprecated-declarations] =20=20=20=20=20=20=20=20=20=20=20=20=20=20 if(pFormatCtx->streams[i]->codec->codec_type=3D=3DAVMEDIA_TYPE_VIDEO) ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ cimgffmpeg.cpp:425:35: warning: 'codec' is deprecated [-Wdeprecated-declarations] =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 if(pFormatCtx->streams[i]->codec->codec_type=3D=3DAVMEDIA_TYPE_VIDEO) ^ /usr/local/include/./libavformat/avformat.h:893:21: note: 'codec' has been explicitly marked deprecated here AVCodecContext *codec; ^ 14 warnings and 12 errors generated. http://package23.nyi.freebsd.org/data/103i386-default-PR207547/2016-10-04_1= 8h24m30s/logs/errors/pHash-0.9.6.log Referenced Bugs: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207547 [Bug 207547] [exp-run] Update ffmpeg to 3.2 --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214178-13>