Bug#720797: libphash: FTBFS with libav9: cimgffmpeg.cpp:57:82: error: 'av_open_input_file' was not declared in this scope

David Suárez david.sephirot at gmail.com
Sun Aug 25 13:14:24 UTC 2013


Source: libphash
Version: 0.9.4-1.2
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20130825 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Related to current libav9 transition (see #706798).

Relevant part (hopefully):
> /bin/bash ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -O2 -pthread -I/usr/local/include -I/usr/include/ffmpeg -Dcimg_use_jpeg -Dcimg_use_png  -D__STDC_CONSTANT_MACROS -ffast-math -O3 -c -o cimgffmpeg.lo cimgffmpeg.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -O2 -pthread -I/usr/local/include -I/usr/include/ffmpeg -Dcimg_use_jpeg -Dcimg_use_png -D__STDC_CONSTANT_MACROS -ffast-math -O3 -c cimgffmpeg.cpp  -fPIC -DPIC -o .libs/cimgffmpeg.o
> In file included from cimgffmpeg.cpp:26:0:
> cimgffmpeg.h:35:0: warning: "__STDC_CONSTANT_MACROS" redefined [enabled by default]
>  #define __STDC_CONSTANT_MACROS
>  ^
> <command-line>:0:0: note: this is the location of the previous definition
> cimgffmpeg.cpp: In function 'void vfinfo_close(VFInfo*)':
> cimgffmpeg.cpp:32:2: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(vfinfo->pFormatCtx);
>   ^
> cimgffmpeg.cpp:32:40: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(vfinfo->pFormatCtx);
>                                         ^
> cimgffmpeg.cpp: In function 'int ReadFrames(VFInfo*, cimg_library::CImgList<unsigned char>*, unsigned int, unsigned int)':
> cimgffmpeg.cpp:57:82: error: 'av_open_input_file' was not declared in this scope
>       if(av_open_input_file(&st_info->pFormatCtx, st_info->filename, NULL, 0, NULL)!=0)
>                                                                                   ^
> cimgffmpeg.cpp:61:48: error: 'av_find_stream_info' was not declared in this scope
>       if(av_find_stream_info(st_info->pFormatCtx)<0)
>                                                 ^
> cimgffmpeg.cpp:93:57: error: 'avcodec_open' was not declared in this scope
>       if(avcodec_open(st_info->pCodecCtx, st_info->pCodec)<0)
>                                                          ^
> cimgffmpeg.cpp:169:6: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>       av_close_input_file(st_info->pFormatCtx);
>       ^
> cimgffmpeg.cpp:169:45: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>       av_close_input_file(st_info->pFormatCtx);
>                                              ^
> cimgffmpeg.cpp: In function 'int NextFrames(VFInfo*, cimg_library::CImgList<unsigned char>*)':
> cimgffmpeg.cpp:209:78: error: 'av_open_input_file' was not declared in this scope
>     if(av_open_input_file(&(st_info->pFormatCtx),st_info->filename,NULL,0,NULL)!=0){
>                                                                               ^
> cimgffmpeg.cpp:214:45: error: 'av_find_stream_info' was not declared in this scope
>    if(av_find_stream_info(st_info->pFormatCtx)<0){
>                                              ^
> cimgffmpeg.cpp:244:54: error: 'avcodec_open' was not declared in this scope
>    if(avcodec_open(st_info->pCodecCtx, st_info->pCodec)<0){
>                                                       ^
> cimgffmpeg.cpp:336:3: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>    av_close_input_file(st_info->pFormatCtx);
>    ^
> cimgffmpeg.cpp:336:42: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>    av_close_input_file(st_info->pFormatCtx);
>                                           ^
> cimgffmpeg.cpp: In function 'int GetNumberStreams(const char*)':
> cimgffmpeg.cpp:352:57: error: 'av_open_input_file' was not declared in this scope
>   if (av_open_input_file(&pFormatCtx, file, NULL, 0, NULL))
>                                                          ^
> cimgffmpeg.cpp:356:35: error: 'av_find_stream_info' was not declared in this scope
>   if(av_find_stream_info(pFormatCtx)<0)
>                                    ^
> cimgffmpeg.cpp:359:2: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(pFormatCtx);
>   ^
> cimgffmpeg.cpp:359:32: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(pFormatCtx);
>                                 ^
> cimgffmpeg.cpp: In function 'long int GetNumberVideoFrames(const char*)':
> cimgffmpeg.cpp:370:57: error: 'av_open_input_file' was not declared in this scope
>   if (av_open_input_file(&pFormatCtx, file, NULL, 0, NULL))
>                                                          ^
> cimgffmpeg.cpp:374:35: error: 'av_find_stream_info' was not declared in this scope
>   if(av_find_stream_info(pFormatCtx)<0)
>                                    ^
> cimgffmpeg.cpp:394:6: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>       av_close_input_file(pFormatCtx);
>       ^
> cimgffmpeg.cpp:394:36: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>       av_close_input_file(pFormatCtx);
>                                     ^
> cimgffmpeg.cpp:401:3: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>    av_close_input_file(pFormatCtx); 
>    ^
> cimgffmpeg.cpp:401:33: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>    av_close_input_file(pFormatCtx); 
>                                  ^
> cimgffmpeg.cpp: In function 'float fps(const char*)':
> cimgffmpeg.cpp:412:61: error: 'av_open_input_file' was not declared in this scope
>   if (av_open_input_file(&pFormatCtx, filename, NULL, 0, NULL))
>                                                              ^
> cimgffmpeg.cpp:416:35: error: 'av_find_stream_info' was not declared in this scope
>   if(av_find_stream_info(pFormatCtx)<0)
>                                    ^
> cimgffmpeg.cpp:436:2: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(pFormatCtx);
>   ^
> cimgffmpeg.cpp:436:32: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations]
>   av_close_input_file(pFormatCtx);
>                                 ^
> make[3]: *** [cimgffmpeg.lo] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2013/08/25/libphash_0.9.4-1.2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the forensics-devel mailing list