[Bug 214178] multimedia/pHash: fails to build with ffmpeg 3.x

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 4 01:40:06 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214178

            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 at FreeBSD.org
          Reporter: jbeich at FreeBSD.org
                CC: freebsd-ports-bugs at 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 invocation)
  configure:16037: $? = 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 = PIX_FMT_GRAY8;
                              ^~~~~~~~~~~~~
                              AV_PIX_FMT_GRAY8
  /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared
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 = PIX_FMT_RGB24;
                              ^~~~~~~~~~~~~
                              AV_PIX_FMT_RGB24
  /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared
here
      AV_PIX_FMT_RGB24,     ///< packed RGB 8:8:8, 24bpp, RGBRGB...
      ^
  cimgffmpeg.cpp:70:39: warning: 'codec' is deprecated
[-Wdeprecated-declarations]
                 
if(st_info->pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
                                                      ^
  /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 =
st_info->pFormatCtx->streams[st_info->videoStream]->codec;
                                                                               
       ^
  /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=avcodec_alloc_frame();
                 ^
  cimgffmpeg.cpp:108:29: error: use of undeclared identifier
'avcodec_alloc_frame'
          AVFrame *pConvertedFrame = avcodec_alloc_frame();
                                     ^
  cimgffmpeg.cpp:115:11: warning: 'avpicture_get_size' is deprecated
[-Wdeprecated-declarations]
          numBytes=avpicture_get_size(ffmpeg_pixfmt,
st_info->width,st_info->height);
                   ^
  /usr/local/include/./libavcodec/avcodec.h:5467:5: note: 'avpicture_get_size'
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 = ffmpeg_pixfmt == PIX_FMT_GRAY8 ? 1 : 3;
                                          ^~~~~~~~~~~~~
                                          AV_PIX_FMT_GRAY8
  /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared
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 = PIX_FMT_GRAY8;
                              ^~~~~~~~~~~~~
                              AV_PIX_FMT_GRAY8
  /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared
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 = PIX_FMT_RGB24;
                              ^~~~~~~~~~~~~
                              AV_PIX_FMT_RGB24
  /usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared
here
      AV_PIX_FMT_RGB24,     ///< packed RGB 8:8:8, 24bpp, RGBRGB...
      ^
  cimgffmpeg.cpp:224:40: warning: 'codec' is deprecated
[-Wdeprecated-declarations]
                         
if(st_info->pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
                                                              ^
  /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 =
st_info->pFormatCtx->streams[st_info->videoStream]->codec;
                                                                               
           ^
  /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=avcodec_alloc_frame();
                 ^
  cimgffmpeg.cpp:260:29: error: use of undeclared identifier
'avcodec_alloc_frame'
          AVFrame *pConvertedFrame = avcodec_alloc_frame();
                                     ^
  cimgffmpeg.cpp:268:11: warning: 'avpicture_get_size' is deprecated
[-Wdeprecated-declarations]
          numBytes=avpicture_get_size(ffmpeg_pixfmt,
st_info->width,st_info->height);
                   ^
  /usr/local/include/./libavcodec/avcodec.h:5467:5: note: 'avpicture_get_size'
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 = ffmpeg_pixfmt == PIX_FMT_GRAY8 ? 1 : 3;
                                                  ^~~~~~~~~~~~~
                                                  AV_PIX_FMT_GRAY8
  /usr/local/include/libavutil/pixfmt.h:70:5: note: 'AV_PIX_FMT_GRAY8' declared
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]
              
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_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]
                      
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_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_18h24m30s/logs/errors/pHash-0.9.6.log


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207547
[Bug 207547] [exp-run] Update ffmpeg to 3.2
-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-ports-bugs mailing list