checking for perl module Sys::Mmap... no
configure: error: zm requires Sys::Mmap for mapped memory - set --enable-mmap=no to use IPC shared memory instead
root@zmsrv:/usr/src/zm# make
make all-recursive
make[1]: Entering directory `/usr/src/zm'
Making all in src
make[2]: Entering directory `/usr/src/zm/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/include -Wall -Wno-sign-compare -fno-inline -I/usr/include -D__STDC_CONSTANT_MACROS -g -O2 -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
zm_user.cpp: In constructor 'User::User(char**&)':
zm_user.cpp:38:54: error: 'strncpy' was not declared in this scope
zm_user.cpp:40:39: error: 'atoi' was not declared in this scope
zm_user.cpp:50:47: error: 'strlen' was not declared in this scope
zm_user.cpp: In function 'User* zmLoadUser(const char*, const char*)':
zm_user.cpp:117:32: error: 'exit' was not declared in this scope
zm_user.cpp:124:32: error: 'exit' was not declared in this scope
zm_user.cpp: In function 'User* zmLoadAuthUser(const char*, bool)':
zm_user.cpp:161:39: error: 'getenv' was not declared in this scope
zm_user.cpp:176:32: error: 'exit' was not declared in this scope
zm_user.cpp:183:32: error: 'exit' was not declared in this scope
zm_user.cpp:220:51: error: 'strlen' was not declared in this scope
zm_user.cpp:228:33: error: 'strcmp' was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
zm_user.cpp: In constructor ‘User::User(char**&)’:
zm_user.cpp:40:54: error: ‘strncpy’ was not declared in this scope
zm_user.cpp:42:39: error: ‘atoi’ was not declared in this scope
zm_user.cpp:52:47: error: ‘strlen’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadUser(const char*, const char*)’:
zm_user.cpp:119:32: error: ‘exit’ was not declared in this scope
zm_user.cpp:126:32: error: ‘exit’ was not declared in this scope
zm_user.cpp: In function ‘User* zmLoadAuthUser(const char*, bool)’:
zm_user.cpp:163:39: error: ‘getenv’ was not declared in this scope
zm_user.cpp:178:32: error: ‘exit’ was not declared in this scope
zm_user.cpp:185:32: error: ‘exit’ was not declared in this scope
zm_user.cpp:222:51: error: ‘strlen’ was not declared in this scope
zm_user.cpp:230:33: error: ‘strcmp’ was not declared in this scope
make[2]: *** [zm_user.o] Erreur 1
make[2]: quittant le répertoire « /usr/src/zm/src »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /usr/src/zm »
make: *** [all] Erreur 2
I've followed "Ubuntu Server 11.04 64-bit with ZoneMinder 1.24.x from SVN" instructions error free until I get to the ./configure zoneminder step and receive similar zm_user.cpp errors regarding some basic 'c' function calls. Could there be a missing 'Include' statement in the zm_user.h header file?
zm_user.cpp:38:54: error: 'strncpy' was not declared in this scope
zm_user.cpp:40:39: error: 'atoi' was not declared in this scope
zm_user.cpp:50:47: error: 'strlen' was not declared in this scope
zm_user.cpp: In function âUser* zmLoadUser(const char*, const char*)â:
zm_user.cpp:117:32: error: 'exit' was not declared in this scope
zm_user.cpp:124:32: error: 'exit' was not declared in this scope
zm_user.cpp: In function âUser* zmLoadAuthUser(const char*, bool)â:
zm_user.cpp:161:39: error: 'getenv' was not declared in this scope
zm_user.cpp:176:32: error: 'exit' was not declared in this scope
zm_user.cpp:183:32: error: 'exit' was not declared in this scope
zm_user.cpp:220:51: error: 'strlen' was not declared in this scope
zm_user.cpp:228:33: error: 'strcmp' was not declared in this scope
make[2]: *** [zm_user.o] Error 1
make[2]: Leaving directory `/usr/src/zm/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/zm'
make: *** [all] Error 2
root@Conbuntu:/usr/src/zm#