Bug#694131: FTBFS against libav 9

Reinhard Tartler siretart at tauware.de
Sat Nov 24 08:54:51 UTC 2012


Package: zoneminder
Version: 1.25.0-3
Severity: important
Tags: patch

Dear Maintainer,

The zoneminder package currently FTBFS against libav9 because it uses an
outdated API. I have attached a quick patch that allows
compilation. Please test the patch and discuss it with upstream.

x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D_FORTIFY_SOURCE=2 -D__STDC_CONSTANT_MACROS -D__STDC_CONSTANT_MACROS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
In file included from zm_local_camera.cpp:24:0:
zm_local_camera.h:101:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:102:5: error: 'PixelFormat' does not name a type
zm_local_camera.h:103:12: error: 'AVFrame' does not name a type
zm_local_camera.cpp:44:8: error: 'PixelFormat' does not name a type
zm_local_camera.cpp:259:1: error: 'AVFrame' does not name a type
zm_local_camera.cpp: In constructor 'LocalCamera::LocalCamera(int, const string&, int, int, const string&, int, int, int, int, int, int, int, bool)':
zm_local_camera.cpp:324:9: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:324:39: error: 'PIX_FMT_GRAY8' was not declared in this scope
zm_local_camera.cpp:324:53: error: 'PIX_FMT_RGB24' was not declared in this scope
zm_local_camera.cpp:325:9: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:325:79: error: 'getFfPixFormatFromV4lPalette' was not declared in this scope
zm_local_camera.cpp: In member function 'void LocalCamera::Initialise()':
zm_local_camera.cpp:341:27: error: 'AV_LOG_DEBUG' was not declared in this scope
zm_local_camera.cpp:341:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:343:27: error: 'AV_LOG_QUIET' was not declared in this scope
zm_local_camera.cpp:343:40: error: 'av_log_set_level' was not declared in this scope
zm_local_camera.cpp:464:9: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:464:31: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:464:31: error: expected ';' before 'AVFrame'
zm_local_camera.cpp:488:18: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:488:36: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:490:58: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:493:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:493:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:493:187: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:631:9: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:631:31: error: expected type-specifier before 'AVFrame'
zm_local_camera.cpp:631:31: error: expected ';' before 'AVFrame'
zm_local_camera.cpp:639:18: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:639:36: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:641:58: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:644:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:644:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:644:161: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp: In static member function 'static bool LocalCamera::GetCurrentSettings(const char*, char*, int, bool)':
zm_local_camera.cpp:775:22: error: 'PATH_MAX' was not declared in this scope
zm_local_camera.cpp:780:21: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:782:22: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:783:29: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:800:67: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:802:54: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:812:92: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:937:91: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:962:82: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp:1087:90: error: 'queryDevice' was not declared in this scope
zm_local_camera.cpp: In member function 'virtual int LocalCamera::Capture(Image&)':
zm_local_camera.cpp:1644:16: error: 'AVFrame' does not name a type
zm_local_camera.cpp:1646:14: error: 'imagePixFormat' was not declared in this scope
zm_local_camera.cpp:1646:32: error: 'capturePixFormat' was not declared in this scope
zm_local_camera.cpp:1650:146: error: 'SWS_BICUBIC' was not declared in this scope
zm_local_camera.cpp:1650:176: error: 'sws_getCachedContext' was not declared in this scope
zm_local_camera.cpp:1654:17: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1654:50: error: 'avcodec_alloc_frame' was not declared in this scope
zm_local_camera.cpp:1657:85: error: 'avpicture_get_size' was not declared in this scope
zm_local_camera.cpp:1658:74: error: 'av_malloc' was not declared in this scope
zm_local_camera.cpp:1661:34: error: 'AVPicture' was not declared in this scope
zm_local_camera.cpp:1661:45: error: expected primary-expression before ')' token
zm_local_camera.cpp:1661:103: error: 'avpicture_fill' was not declared in this scope
zm_local_camera.cpp:1663:46: error: 'capturePictures' was not declared in this scope
zm_local_camera.cpp:1663:137: error: 'tmpPicture' was not declared in this scope
zm_local_camera.cpp:1663:176: error: 'sws_scale' was not declared in this scope
make[3]: *** [zm_local_camera.o] Error 1

Thank you very much for your assistance
Reinhard


-- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 'precise-proposed'), (500, 'precise')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-33-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-ftbfs-libav9.patch
Type: text/x-diff
Size: 6322 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20121124/17784cda/attachment-0001.patch>


More information about the pkg-multimedia-maintainers mailing list