Problems installing.

Forum for questions and support relating to the 1.24.x releases only.
Locked
matt91
Posts: 12
Joined: Wed Mar 28, 2007 7:09 am

Problems installing.

Post 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.
th
Posts: 23
Joined: Wed Dec 30, 2009 4:05 am
Location: Iowa

Re: Problems installing.

Post 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.
matt91
Posts: 12
Joined: Wed Mar 28, 2007 7:09 am

Post by matt91 »

Thank you for the help, that worked a treat.
... adding #include <cstdio> to zm_utils.cpp ...
Grischuna
Posts: 3
Joined: Sat Oct 31, 2009 6:11 pm

Post 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
Locked