On 2013-08-27 16:00:08, Sebastian Ramacher wrote: > Source: libavg > Version: 1.7.1-3 > Severity: serious > Justification: FTBFS but built successfully in the past > Tags: sid jessie > > While rebuilding libavg against libav 9, libavg failed to build due to > changes in Boost 1.54 (from the amd64 buildd log): > | /bin/bash ../../libtool --tag=CXX --mode=link g++ -Wno-invalid-offsetof > -msse2 -g -O2 -Wall -pipe -rdynamic -rdynamic -o testbase testbase.o > ./libbase.la -lboost_thread > | libtool: link: g++ -Wno-invalid-offsetof -msse2 -g -O2 -Wall -pipe > -rdynamic -rdynamic -o testbase testbase.o ./.libs/libbase.a -lboost_thread > | /usr/bin/ld: testbase.o: undefined reference to symbol > '_ZN5boost6system15system_categoryEv' > | /usr/lib/libboost_system.so.1.54.0: error adding symbols: DSO missing from > command line > | collect2: error: ld returned 1 exit status > | make[4]: *** [testbase] Error 1 > | make[4]: Leaving directory `/«PKGBUILDDIR»/build2.7/src/base' > | make[3]: *** [all-recursive] Error 1 > | make[2]: *** [all] Error 2 > | make[3]: Leaving directory `/«PKGBUILDDIR»/build2.7/src' > | make[2]: Leaving directory `/«PKGBUILDDIR»/build2.7/src' > | make[1]: *** [all-recursive] Error 1 > | dh_auto_build: make -j4 returned exit code 2 > | make[1]: Leaving directory `/«PKGBUILDDIR»/build2.7' > | make: *** [debian/stamp-build2.7] Error 2
This can be fixed with the patch from Ubuntu [1], but it fails later with: | In file included from ../../../src/video/FFMpegDecoder.cpp:22:0: | ../../../src/video/FFMpegDecoder.h:63:31: error: conflicting return type specified for 'virtual AVPixelFormat avg::FFMpegDecoder::getPixelFormat() const' | virtual PixelFormat getPixelFormat() const; | ^ | In file included from ../../../src/video/FFMpegDecoder.h:26:0, | from ../../../src/video/FFMpegDecoder.cpp:22: | ../../../src/video/VideoDecoder.h:69:29: error: overriding 'virtual avg::PixelFormat avg::VideoDecoder::getPixelFormat() const' | virtual PixelFormat getPixelFormat() const = 0; | ^ | ../../../src/video/FFMpegDecoder.cpp: In constructor 'avg::FFMpegDecoder::FFMpegDecoder()': | ../../../src/video/FFMpegDecoder.cpp:76:14: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in initialization | m_FPS(0) | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'int avg::FFMpegDecoder::openCodec(int, bool)': | ../../../src/video/FFMpegDecoder.cpp:132:49: error: 'avcodec_open' was not declared in this scope | if (!pCodec || avcodec_open(pContext, pCodec) < 0) { | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'virtual void avg::FFMpegDecoder::open(const string&, bool, bool)': | ../../../src/video/FFMpegDecoder.cpp:164:47: error: 'av_find_stream_info' was not declared in this scope | err = av_find_stream_info(m_pFormatContext); | ^ | ../../../src/video/FFMpegDecoder.cpp:244:46: error: 'SAMPLE_FMT_S16' was not declared in this scope | if (m_pAStream->codec->sample_fmt != SAMPLE_FMT_S16) { | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'virtual void avg::FFMpegDecoder::close()': | ../../../src/video/FFMpegDecoder.cpp:342:13: warning: 'void audio_resample_close(ReSampleContext*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4126) [-Wdeprecated-declarations] | audio_resample_close(m_pAudioResampleContext); | ^ | ../../../src/video/FFMpegDecoder.cpp:342:57: warning: 'void audio_resample_close(ReSampleContext*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4126) [-Wdeprecated-declarations] | audio_resample_close(m_pAudioResampleContext); | ^ | ../../../src/video/FFMpegDecoder.cpp:373:9: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations] | av_close_input_file(m_pFormatContext); | ^ | ../../../src/video/FFMpegDecoder.cpp:373:45: warning: 'void av_close_input_file(AVFormatContext*)' is deprecated (declared at /usr/include/libavformat/avformat.h:1397) [-Wdeprecated-declarations] | av_close_input_file(m_pFormatContext); | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'virtual double avg::FFMpegDecoder::getDuration() const': | ../../../src/video/FFMpegDecoder.cpp:483:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] | if (duration == AV_NOPTS_VALUE) { | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'virtual avg::FrameAvailableCode avg::FFMpegDecoder::renderToBmps(std::vector<boost::shared_ptr<avg::Bitmap> >&, double)': | ../../../src/video/FFMpegDecoder.cpp:558:37: error: cannot convert 'AVPixelFormat' to 'avg::PixelFormat' for argument '1' to 'bool avg::pixelFormatIsPlanar(avg::PixelFormat)' | if (pixelFormatIsPlanar(m_PF)) { | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'void avg::FFMpegDecoder::resampleAudio()': | ../../../src/video/FFMpegDecoder.cpp:678:35: warning: 'ReSampleContext* av_audio_resample_init(int, int, int, int, AVSampleFormat, AVSampleFormat, int, int, int, double)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4109) [-Wdeprecated-declarations] | m_pAudioResampleContext = av_audio_resample_init( | ^ | ../../../src/video/FFMpegDecoder.cpp:681:17: error: 'SAMPLE_FMT_S16' was not declared in this scope | SAMPLE_FMT_S16, SAMPLE_FMT_S16, | ^ | ../../../src/video/FFMpegDecoder.cpp:700:25: warning: 'int audio_resample(ReSampleContext*, short int*, short int*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4117) [-Wdeprecated-declarations] | int outputSamples = audio_resample(m_pAudioResampleContext, | ^ | ../../../src/video/FFMpegDecoder.cpp:703:25: warning: 'int audio_resample(ReSampleContext*, short int*, short int*, int)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:4117) [-Wdeprecated-declarations] | inputSamples); | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'int avg::FFMpegDecoder::decodeAudio()': | ../../../src/video/FFMpegDecoder.cpp:721:30: warning: 'int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3608) [-Wdeprecated-declarations] | int packetBytesDecoded = avcodec_decode_audio3(m_pAStream->codec, | ^ | ../../../src/video/FFMpegDecoder.cpp:723:20: warning: 'int avcodec_decode_audio3(AVCodecContext*, int16_t*, int*, AVPacket*)' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3608) [-Wdeprecated-declarations] | &packet); | ^ | ../../../src/video/FFMpegDecoder.cpp: In member function 'AVPixelFormat avg::FFMpegDecoder::calcPixelFormat(bool)': | ../../../src/video/FFMpegDecoder.cpp:842:24: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in return | return YCbCr420p; | ^ | ../../../src/video/FFMpegDecoder.cpp:844:24: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in return | return YCbCrJ420p; | ^ | ../../../src/video/FFMpegDecoder.cpp:846:24: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in return | return YCbCrA420p; | ^ | ../../../src/video/FFMpegDecoder.cpp:852:16: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in return | return B8G8R8A8; | ^ | ../../../src/video/FFMpegDecoder.cpp:854:12: error: cannot convert 'avg::PixelFormat' to 'AVPixelFormat' in return | return B8G8R8X8; | ^ | ../../../src/video/FFMpegDecoder.cpp:855:1: warning: control reaches end of non-void function [-Wreturn-type] | } | ^ | make[4]: *** [FFMpegDecoder.lo] Error 1 Regards [1] http://patches.ubuntu.com/liba/libavg/libavg_1.7.1-3ubuntu1.patch -- Sebastian Ramacher
signature.asc
Description: Digital signature