compile error with 2643
Posted: 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
Code: Select all
zm_event.cpp:386: error: ‘includes’ was not declared in this scope
make[2]: *** [zm_event.o] Error 1
I wonder if it's the gcc version. I have gcc 4.3.2builds fine on RHEL, Cent and Fedora.
Code: Select all
rpm -q gcc glibc
gcc-4.1.2-42.el5
glibc-2.5-24
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"