Page 1 of 1

Fedora 11 problems 1.24.2 [SOLVED]

Posted: Mon Aug 31, 2009 8:11 pm
by johnc10
SOLVED: Upgraded to Fedora 12 and finally sorted out installing ZM with and without ffmpeg. Updated wiki

http://www.zoneminder.com/wiki/index.ph ... _11_and_12

Has anyone got Fedora 11 with ffmpeg-0.5-2.fc11.i586 to compile? I get this error :-

./configure --with-mysql=/usr --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-ffmpeg=/usr/bin --with-lame=/usr/lib --with-webuser=apache --with-webgroup=apache

make

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/bin/include -frepo -g -O2 -MT zm_utils.o -MD -MP -MF ".deps/zm_utils.Tpo" -c -o zm_utils.o zm_utils.cpp; \
then mv -f ".deps/zm_utils.Tpo" ".deps/zm_utils.Po"; else rm -f ".deps/zm_utils.Tpo"; exit 1; fi
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 `/data/ZoneMinder-1.24.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/ZoneMinder-1.24.2'
make: *** [all] Error 2

Compiling 1.23.3 is ok.

Posted: Mon Aug 31, 2009 8:14 pm
by zoneminder
I will try and get a Fedora 11 VM up to test this out.

Posted: Mon Aug 31, 2009 11:26 pm
by cgutierrez
In zm_utils.h, insert the line:

#include <cstdio>

recompile...

Posted: Thu Sep 03, 2009 10:38 am
by sef1976
yum install zonemider :lol:

Posted: Sun Sep 13, 2009 8:23 pm
by johnc10
Tried adding "#include <cstdio>" and just got another compile error.

Tried yum install zoneminder and got this error :-

sudo service zoneminder start
Bareword "ZM_PATH_DATA" not allowed while "strict subs" in use at /usr/bin/zmupdate.pl line 406.
BEGIN not safe after errors--compilation aborted at /usr/bin/zmupdate.pl line 612.

I'm still stuck with v 1.22.3 !

Posted: Tue Sep 15, 2009 12:23 am
by mcleandl
I had similar problems with getting 1.24.2 up on Fedora 11 x86_64 and fix that particular error by:

vi /usr/local/ZoneMinder-1.24.2/src/zm_utils.cpp

add following:

#include <cstdio>

Similar to message above but I guess in a different place.

If you want to go wtih x86_64 I have all the steps that I had to do.

Dave

Posted: Tue Sep 15, 2009 4:22 pm
by johnc10
Dave, yes please. I'm building a new Fedora 11 server so can test it there. It may be my old installation is causing issues as I upgraded from F. 10.