From owner-freebsd-ports-bugs@freebsd.org Fri Nov 4 01:40:06 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2FE43C2EE2F for ; Fri, 4 Nov 2016 01:40:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F37F123F for ; Fri, 4 Nov 2016 01:40:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uA41e5Zw021194 for ; Fri, 4 Nov 2016 01:40:05 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 214178] multimedia/pHash: fails to build with ffmpeg 3.x Date: Fri, 04 Nov 2016 01:40:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc blocked Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2016 01:40:06 -0000 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.=