Compilation on Ubuntu 9.10

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
joshuanekl
Posts: 5
Joined: Sun Nov 15, 2009 3:19 am

Compilation on Ubuntu 9.10

Post by joshuanekl »

I received the following error when compiling on Ubuntu 9.10

Code: Select all

zm_utils.cpp:32: error: ‘vsnprintf’ was not declared in this scope
Fix was simply to include stdio.h

Code: Select all

diff -ur orig/ZoneMinder-1.24.2/src/zm_utils.cpp ZoneMinder-1.24.2/src/zm_utils.cpp
--- orig/ZoneMinder-1.24.2/src/zm_utils.cpp     2009-05-28 04:47:59.000000000 -0400
+++ ZoneMinder-1.24.2/src/zm_utils.cpp  2009-11-06 21:16:24.884248777 -0500
@@ -20,6 +20,7 @@
 //#include "zm_debug.h"
 #include "zm_utils.h"

+#include <stdio>
 #include <stdarg>

 const std::string stringtf( const char *format, ... )
Post Reply