Package: zoneminder
Version: 1.24.1-1
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.4
Tags: patch

Your package fails to build with GCC 4.4, which has cleaned up some more
C++ headers.  You always have to #include headers directly and cannot
rely for things to be included indirectly.

You can reproduce this problem with gcc-4.4/g++-4.4 from unstable.

> Automatic build of zoneminder_1.24.1-1 on em64t by sbuild/amd64 0.53
...
> 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  -frepo -DZM_FFMPEG_CVS 
> -DHAVE_LIBCRYPTO -MT zm_utils.o -MD -MP -MF .deps/zm_utils.Tpo -c -o 
> zm_utils.o zm_utils.cpp
> zm_utils.cpp: In function 'const std::string stringtf(const char*, ...)':
> zm_utils.cpp:31: error: 'vsnprintf' was not declared in this scope
> zm_utils.cpp: In function 'const std::string stringtf(const std::string&, 
> ...)':
> zm_utils.cpp:46: error: 'vsnprintf' was not declared in this scope
> make[3]: *** [zm_utils.o] Error 1
> make[3]: Leaving directory `/build/tbm/zoneminder-1.24.1/src'

--- src/zm_utils.cpp~   2009-06-03 13:24:13.000000000 +0000
+++ src/zm_utils.cpp    2009-06-03 13:24:21.000000000 +0000
@@ -20,6 +20,7 @@
 #include "zm_utils.h"
 
 #include <stdarg.h>
+#include <stdio.h>
 
 const std::string stringtf( const char *format, ... )
 {

-- 
Martin Michlmayr
http://www.cyrius.com/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to