Fedora 11 problems 1.24.2 [SOLVED]

Forum for questions and support relating to the 1.24.x releases only.
Locked
johnc10
Posts: 15
Joined: Wed Aug 10, 2005 9:28 pm

Fedora 11 problems 1.24.2 [SOLVED]

Post 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.
Last edited by johnc10 on Fri Dec 11, 2009 6:02 pm, edited 1 time in total.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I will try and get a Fedora 11 VM up to test this out.
Phil
cgutierrez
Posts: 24
Joined: Fri Aug 14, 2009 6:30 am
Location: Puerto Rico (Various Locations)

Post by cgutierrez »

In zm_utils.h, insert the line:

#include <cstdio>

recompile...
sef1976
Posts: 46
Joined: Sun Aug 16, 2009 5:24 am

Post by sef1976 »

yum install zonemider :lol:
johnc10
Posts: 15
Joined: Wed Aug 10, 2005 9:28 pm

Post 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 !
mcleandl
Posts: 15
Joined: Sun Jan 06, 2008 4:08 pm
Location: Orlando, Florida USA

Post 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
johnc10
Posts: 15
Joined: Wed Aug 10, 2005 9:28 pm

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