Bug#667154: dvbcut: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:08:39 UTC 2012


Package: dvbcut
Version: 0.5.4+svn178-1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

main.cpp:152:23: error: 'STDIN_FILENO' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/dvbcut_0.5.4+svn178-1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:128:3: warning: 'void dump_format(AVFormatContext*, int, const char*, int)' is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:128:35: warning: 'void dump_format(AVFormatContext*, int, const char*, int)' is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:130:3: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:130:23: warning: 'int av_write_header(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1676) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp: In destructor 'virtual lavfmuxer::~lavfmuxer()':
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:141:9: warning: 'int url_fclose(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/lavfmuxer.cpp:141:28: warning: 'int url_fclose(AVIOContext*)' is deprecated (declared at /usr/include/libavformat/avio.h:317) [-Wdeprecated-declarations]
/usr/bin/cmake -E cmake_progress_report /«BUILDDIR»/dvbcut-0.5.4+svn178/build/CMakeFiles 11
[ 53%] Building CXX object src/CMakeFiles/dvbcut.dir/logoutput.o
cd /«BUILDDIR»/dvbcut-0.5.4+svn178/build/src && /usr/bin/c++   -DQT_NO_DEBUG -DQT3_SUPPORT -DQT_3SUPPORT_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_LIB_SWSCALE -DHAVE_LIB_AO -DHAVE_LIB_MAD -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtCore -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/«BUILDDIR»/dvbcut-0.5.4+svn178/build/src    -o CMakeFiles/dvbcut.dir/logoutput.o -c /«BUILDDIR»/dvbcut-0.5.4+svn178/src/logoutput.cpp
/usr/bin/cmake -E cmake_progress_report /«BUILDDIR»/dvbcut-0.5.4+svn178/build/CMakeFiles 12
[ 56%] Building CXX object src/CMakeFiles/dvbcut.dir/main.o
cd /«BUILDDIR»/dvbcut-0.5.4+svn178/build/src && /usr/bin/c++   -DQT_NO_DEBUG -DQT3_SUPPORT -DQT_3SUPPORT_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_CORE_LIB -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_LIB_SWSCALE -DHAVE_LIB_AO -DHAVE_LIB_MAD -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtCore -I/usr/include/libavcodec -I/usr/include/libavformat -I/usr/include/libswscale -I/«BUILDDIR»/dvbcut-0.5.4+svn178/build/src    -o CMakeFiles/dvbcut.dir/main.o -c /«BUILDDIR»/dvbcut-0.5.4+svn178/src/main.cpp
In file included from /«BUILDDIR»/dvbcut-0.5.4+svn178/src/mpgfile.h:34:0,
                 from /«BUILDDIR»/dvbcut-0.5.4+svn178/src/dvbcut.h:27,
                 from /«BUILDDIR»/dvbcut-0.5.4+svn178/src/main.cpp:40:
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/stream.h: In member function 'void stream::allocavcc()':
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/stream.h:55:10: warning: 'AVCodecContext* avcodec_alloc_context()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3905) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/stream.h:55:32: warning: 'AVCodecContext* avcodec_alloc_context()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3905) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/stream.h:56:5: warning: 'void avcodec_get_context_defaults(AVCodecContext*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3875) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/stream.h:56:38: warning: 'void avcodec_get_context_defaults(AVCodecContext*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3875) [-Wdeprecated-declarations]
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/main.cpp: In function 'int main(int, char**)':
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/main.cpp:152:23: error: 'STDIN_FILENO' was not declared in this scope
/«BUILDDIR»/dvbcut-0.5.4+svn178/src/main.cpp:184:21: error: 'STDOUT_FILENO' was not declared in this scope
make[3]: *** [src/CMakeFiles/dvbcut.dir/main.o] Error 1
make[3]: Leaving directory `/«BUILDDIR»/dvbcut-0.5.4+svn178/build'
make[2]: *** [src/CMakeFiles/dvbcut.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the pkg-multimedia-maintainers mailing list