Page 1 of 1

compile error with 2643

Posted: Tue Sep 30, 2008 8:02 pm
by rdmelin

Code: Select all

zm_event.cpp:386: error: ‘includes’ was not declared in this scope
make[2]: *** [zm_event.o] Error 1

Posted: Tue Sep 30, 2008 8:45 pm
by zoneminder
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.

Posted: Tue Sep 30, 2008 9:03 pm
by cordel
Is indeed, builds fine on RHEL, Cent and Fedora.

Posted: Tue Sep 30, 2008 9:31 pm
by rdmelin
builds fine on RHEL, Cent and Fedora.
I wonder if it's the gcc version. I have gcc 4.3.2

Posted: Tue Sep 30, 2008 9:38 pm
by zoneminder
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.

Posted: Wed Oct 01, 2008 7:16 am
by cordel
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

Posted: Wed Oct 01, 2008 3:52 pm
by monex
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 ;)

Posted: Thu Oct 02, 2008 10:28 pm
by cordel
Excellent, Thank you monex.

Posted: Sun Oct 05, 2008 8:14 pm
by zoneminder
New version up now, with includes call removed.