Page 1 of 1

build failure on Debian

Posted: Wed Nov 13, 2013 6:43 pm
by Harri
Hi folks,

building version 1.8.6 on Debian (sid) fails with

Code: Select all

gcc -Os -D_GNU_SOURCE -D_linux_ -D_REENTRANT -shared -Wl,-z,defs -oout/libmakemkv.so.1.full -Ilibebml/inc -DEBML_NO_READ -DEBML_STRICT_API -Ilibmatroska/inc \
        -Ilibmakemkv/inc -Isstring/inc -Imakemkvgui/inc -Ilibabi/inc -Ilibffabi/inc \
        libebml/src/EbmlBinary.cpp libebml/src/EbmlContexts.cpp libebml/src/EbmlCrc32.cpp libebml/src/EbmlDate.cpp libebml/src/EbmlDummy.cpp libebml/src/EbmlElement.cpp libebml/src/EbmlFloat.cpp libebml/src/EbmlHead.cpp libebml/src/EbmlMaster.cpp libebml/src/EbmlSInteger.cpp libebml/src/EbmlString.cpp libebml/src/EbmlSubHead.cpp libebml/src/EbmlUInteger.cpp libebml/src/EbmlUnicodeString.cpp libebml/src/EbmlVersion.cpp libebml/src/EbmlVoid.cpp libebml/src/IOCallback.cpp libebml/src/MemIOCallback.cpp  libmatroska/src/FileKax.cpp libmatroska/src/KaxAttached.cpp libmatroska/src/KaxAttachments.cpp libmatroska/src/KaxBlock.cpp libmatroska/src/KaxBlockData.cpp libmatroska/src/KaxChapters.cpp libmatroska/src/KaxCluster.cpp libmatroska/src/KaxClusterData.cpp libmatroska/src/KaxContentEncoding.cpp libmatroska/src/KaxContexts.cpp libmatroska/src/KaxCues.cpp libmatroska/src/KaxCuesData.cpp libmatroska/src/KaxInfo.cpp libmatroska/src/KaxInfoData.cpp libmatroska/src/KaxSeekHead.cpp libmatroska/src/KaxSegment.cpp libmatroska/src/KaxTag.cpp libmatroska/src/KaxTags.cpp libmatroska/src/KaxTrackAudio.cpp libmatroska/src/KaxTrackEntryData.cpp libmatroska/src/KaxTracks.cpp libmatroska/src/KaxTrackVideo.cpp libmatroska/src/KaxVersion.cpp libmakemkv/src/ebmlwrite.cpp libmakemkv/src/libmkv.cpp libmakemkv/src/version.cpp libmakemkv/src/world.cpp  sstring/src/sstring.cpp \
        libabi/src/ossl_aes.c libabi/src/ossl_sha.c libabi/src/ossl_ec.c libabi/src/zlib.c libabi/src/xpat.c libabi/pssl/ec_key.c libabi/pssl/ec_lib.c libabi/pssl/ec_cvt.c libabi/pssl/ec_mult.c libabi/pssl/ecp_mont.c libabi/pssl/ecp_smpl.c libabi/pssl/ecs_ossl.c libabi/pssl/ecs_sign.c libabi/pssl/ecs_vrf.c libabi/src/httplinux.cpp makemkvgui/src/api_linux.cpp libabi/src/sys_linux.c makemkvgui/src/spawn_posix.cpp libffabi/src/ffabi.c libffabi/src/mlp.c libffabi/src/log.c libffabi/src/audio_convert.c \
        -DHAVE_BUILDINFO_H -Itmp \
        -fPIC -Xlinker -dy -Xlinker --version-script=libmakemkv/src/libmakemkv.vers \
        -Xlinker -soname=libmakemkv.so.1 -lc -lstdc++ -lcrypto -lz -lexpat -lavcodec -lavutil -lm
libffabi/src/ffabi.c: In function 'ffm_audio_decode_init':
libffabi/src/ffabi.c:146:9: warning: assignment makes pointer from integer without a cast [enabled by default]
     ctx = av_mallocz(sizeof(FFM_AudioDecodeContext));
         ^
libffabi/src/ffabi.c:166:15: error: 'AVCodecContext' has no member named 'refcounted_frames'
     ctx->avctx->refcounted_frames = 1;
               ^
libffabi/src/ffabi.c: In function 'ffm_audio_encode_init':
libffabi/src/ffabi.c:300:9: warning: assignment makes pointer from integer without a cast [enabled by default]
     ctx = av_mallocz(sizeof(FFM_AudioEncodeContext));
         ^
libffabi/src/ffabi.c:321:15: error: 'AVCodecContext' has no member named 'refcounted_frames'
     ctx->avctx->refcounted_frames = 1;
               ^
make[2]: *** [out/libmakemkv.so.1.full] Error 1
make[2]: Leaving directory `/tmp/buildd/raw-makemkv-1.8.6/build/makemkv-oss-1.8.6'
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory `/tmp/buildd/raw-makemkv-1.8.6'
make: *** [build] Error 2
Installed is libavcodec-dev 6:9.10-1, as provided by Debian. Which version of avcodec does it expect?

Any helpful comment would be highly appreciated.
Harri

Re: build failure on Debian

Posted: Wed Nov 13, 2013 9:08 pm
by belegdol
refcounted_frames was added to avcodec.h in ffmpeg-2.0.

Re: build failure on Debian

Posted: Fri Nov 15, 2013 7:59 am
by mike admin