Forum for questions and support relating to the 1.24.x releases only.
rdmelin
Posts: 863 Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA
Post
by rdmelin » Tue Sep 30, 2008 8:02 pm
Code: Select all
zm_event.cpp:386: error: ‘includes’ was not declared in this scope
make[2]: *** [zm_event.o] Error 1
zoneminder
Site Admin
Posts: 5215 Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:
Post
by zoneminder » Tue Sep 30, 2008 8:45 pm
Interesting. It is an STL algorithm function but not critical. I don't know why only that is not showing up. I will rewrite that little section and update tomorrow.
Phil
cordel
Posts: 5210 Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Post
by cordel » Tue Sep 30, 2008 9:03 pm
Is indeed, builds fine on RHEL, Cent and Fedora.
rdmelin
Posts: 863 Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA
Post
by rdmelin » Tue Sep 30, 2008 9:31 pm
builds fine on RHEL, Cent and Fedora.
I wonder if it's the gcc version. I have gcc 4.3.2
zoneminder
Site Admin
Posts: 5215 Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:
Post
by zoneminder » Tue Sep 30, 2008 9:38 pm
It's not a big deal. It's the first time I've ever used that function and I was in two minds whether to use it anyway as it doesn't save much, if anything.
Phil
cordel
Posts: 5210 Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Post
by cordel » Wed Oct 01, 2008 7:16 am
Cent had the oldest:
Code: Select all
rpm -q gcc glibc
gcc-4.1.2-42.el5
glibc-2.5-24
And fedora is at gcc-4.3.0-8 and glibc-2.8-3
monex
Posts: 169 Joined: Mon Jan 22, 2007 1:10 pm
Post
by monex » Wed Oct 01, 2008 3:52 pm
Hi,
to compile zm with gcc 4.3 you have to apply the following patch:
Code: Select all
diff -U 3 -H -d -r -N -- ZoneMinder-1.24.0_rc1_rev2643/src/zm_event.cpp ZoneMinder-1.24.0_rc1_rev2643-patch/src/zm_event.cpp
--- ZoneMinder-1.24.0_rc1_rev2643/src/zm_event.cpp 2008-09-30 16:39:02.000000000 +0200
+++ ZoneMinder-1.24.0_rc1_rev2643-patch/src/zm_event.cpp 2008-10-01 17:45:18.000000000 +0200
@@ -25,6 +25,7 @@
#include <sys/msg.h>
#include <getopt.h>
#include <glob.h>
+#include <algorithm>
#include "zm.h"
#include "zm_db.h"
diff -U 3 -H -d -r -N -- ZoneMinder-1.24.0_rc1_rev2643/src/zm_user.cpp ZoneMinder-1.24.0_rc1_rev2643-patch/src/zm_user.cpp
--- ZoneMinder-1.24.0_rc1_rev2643/src/zm_user.cpp 2008-07-25 11:33:24.000000000 +0200
+++ ZoneMinder-1.24.0_rc1_rev2643-patch/src/zm_user.cpp 2008-10-01 17:45:51.000000000 +0200
@@ -21,6 +21,7 @@
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
+#include <openssl/md5.h>
#include "zm.h"
#include "zm_db.h"
otherwise it didn't work for me
cordel
Posts: 5210 Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle
Post
by cordel » Thu Oct 02, 2008 10:28 pm
Excellent, Thank you monex.
zoneminder
Site Admin
Posts: 5215 Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:
Post
by zoneminder » Sun Oct 05, 2008 8:14 pm
New version up now, with includes call removed.
Phil