compile error with 2643

Forum for questions and support relating to the 1.24.x releases only.
Locked
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

compile error with 2643

Post by rdmelin »

Code: Select all

zm_event.cpp:386: error: ‘includes’ was not declared in this scope
make[2]: *** [zm_event.o] Error 1
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Is indeed, builds fine on RHEL, Cent and Fedora.
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

builds fine on RHEL, Cent and Fedora.
I wonder if it's the gcc version. I have gcc 4.3.2
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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.
Phil
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
monex
Posts: 169
Joined: Mon Jan 22, 2007 1:10 pm

Post 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 ;)
Image
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Excellent, Thank you monex.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

New version up now, with includes call removed.
Phil
Locked