Page 1 of 1

Problems installing.

Posted: Mon Feb 22, 2010 7:27 pm
by matt91
Hi

I've been following the guide at http://www.zoneminder.com/forums/viewtopic.php?t=14281 for my Ubuntu 9.10 server and I'm having problems compiling. I didn't use the svn but instead the 1.24.2 download from the website. All goes well until the make and I get the error:

Code: Select all

g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline   -I/usr/include  -frepo -g -O2 -MT zm_utils.o -MD -MP -MF .deps/zm_utils.Tpo -c -o zm_utils.o z  m_utils.cpp
zm_utils.cpp: In function âconst std::string stringtf(const char*, ...)â:
zm_utils.cpp:32: error: âvsnprintfâ was not declared in this scope
zm_utils.cpp: In function âconst std::string stringtf(const std::string&, ...)â:
zm_utils.cpp:47: error: âvsnprintfâ was not declared in this scope
make[2]: *** [zm_utils.o] Error 1
make[2]: Leaving directory `/usr/src/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/ZoneMinder-1.24.2'
make: *** [all] Error 2
I am running the make as:

Code: Select all

sudo ./configure --with-webdir=/data/storage/SHARE/web/zoneminder --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zoneminder ZM_DB_USER=zoneminder ZM_DB_PASS=[MY PASSWORD] --enable-debug=yes --with-webgroup=www-data --with-webuser=www-data
Does anybody know how to fix this?

Thanks, Matt.

Re: Problems installing.

Posted: Tue Feb 23, 2010 6:34 am
by th
matt91 wrote:Hi

I've been following the guide at http://www.zoneminder.com/forums/viewtopic.php?t=14281 for my Ubuntu 9.10 server and I'm having problems compiling. I didn't use the svn but instead the 1.24.2 download from the website. All goes well until the make and I get the error:

Does anybody know how to fix this?

Thanks, Matt.
http://www.zoneminder.com/forums/viewtopic.php?p=57467 had a suggestion for that same error (under SuSE). Unfortunately the person asking the question never wrote back to state if it helped.

Posted: Fri Feb 26, 2010 5:53 pm
by matt91
Thank you for the help, that worked a treat.
... adding #include <cstdio> to zm_utils.cpp ...

Posted: Sat Feb 27, 2010 5:51 am
by Grischuna
Hello,
matt91 wrote:Thank you for the help, that worked a treat.
... adding #include <cstdio> to zm_utils.cpp ...
This helped me also. Just had the same issue on a Slackware current.

Thanks,
Grischuna