Can't start zm

Support and queries relating to all previous versions of ZoneMinder
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

I get these error messages when invoking
/etc/init.d/zm start
Everything else in the build seemed ok.
Any clues?

Use of uninitialized value in transliteration (tr///) at /usr/lib/perl5/site_perl/5.8.0/ZoneMinder/Config.pm line 81, <CONFIG> line 51.
Can't use an undefined value as a symbol reference at /usr/lib/perl5/site_perl/5.8.0/ZoneMinder/Config.pm line 82, <CONFIG> line 51.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/ZoneMinder/Config.pm line 99, <CONFIG> line 51.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.0/ZoneMinder.pm line 33, <CONFIG> line 51.

BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.0/ZoneMinder.pm line 33, <CONFIG> line 51.
Compilation failed in require at /usr/local/bin/zmpkg.pl line 45, <CONFIG> line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmpkg.pl line 45, <CONFIG> line 51.


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by zm configure 1.22.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure --with-webdir=/var/www/htdocs/ZM --with-cgidir=/var/www/cgi-bin --sysconfdir=/etc --with-webuser=nobody --with-webgroup=nobody

## --------- ##
## Platform. ##
## --------- ##

hostname = rod1
uname -m = i686
uname -r = 2.6.15rod2
uname -s = Linux
uname -v = #1 PREEMPT Tue Jan 10 09:41:28 EST 2006

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/X11R6/bin
PATH: /usr/games
PATH: /opt/kde/bin
PATH: /opt/www/htdig/bin
PATH: /opt/kde/bin
PATH: /usr/lib/qt/bin
PATH: /usr/share/texmf/bin
PATH: /root/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1401: checking for a BSD-compatible install
configure:1456: result: /usr/bin/ginstall -c
configure:1467: checking whether build environment is sane
configure:1510: result: yes
configure:1534: WARNING: `missing' script is too old or missing
configure:1575: checking for gawk
configure:1591: found /usr/bin/gawk
configure:1601: result: gawk
configure:1611: checking whether make sets $(MAKE)
configure:1631: result: yes
configure:1839: WARNING: You can call configure with the --with-libarch option.
This tells configure where to find architecture specific libraries.
The default of 'lib' is usually ok but 64 bit machines may require lib64.
e.g. --with-libarch=lib or --with-libarch=lib64
configure:1858: WARNING: You can call configure with the --with-mysql option.
This tells configure where to find the MySql C library and headers if configure cannot
locate them automatically.
e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure:1887: WARNING: You can call configure with the --with-ffmpeg option.
This tells configure where to find the ffmpeg root directory within which are the libavcodec
and libavformat files that can be used to build true MPEG streaming into ZoneMinder. Ensure that
your copy of ffmpeg has installed libraries as well as binaries (use 'make installlib'). If you
are using a local install of ffmpeg you may have to remove or rename a previous real installation
as the headers and libraries from that will probably be picked up before your local copy.
e.g. --with-ffmpeg=/usr/local
configure:1918: WARNING: You can call configure with the --with-extralibs option.
Ordinarily you will need to use this option only when your copy of ffmpeg has been built
with support for additional formats and you would use this option to detail which additional
libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
You will need to wrap this option in quotes if it contains any spaces.
e.g. --with-extralibs="-lmp3lame"
configure:2015: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
This tells configure whether to compile ZoneMinder with debug included. Although debug is included
by default it is not output unless explicitly switched on elsewhere. These checks may induce a
small penalty on performance and if you are after squeezing the maximum possible performance out
of ZoneMinder you may use this switch to prevent debug from being compiled in.
e.g. --enable-debug=yes or --disable-debug
configure:2078: checking for gcc
configure:2094: found /usr/bin/gcc
configure:2104: result: gcc
configure:2348: checking for C compiler version
configure:2351: gcc --version </dev/null >&5
gcc (GCC) 3.4.5
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2354: $? = 0
configure:2356: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.5
configure:2359: $? = 0
configure:2361: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:2364: $? = 1
configure:2387: checking for C compiler default output file name
configure:2390: gcc -L/usr/lib -L/usr/lib/mysql conftest.c >&5
configure:2393: $? = 0
configure:2439: result: a.out
configure:2444: checking whether the C compiler works
configure:2450: ./a.out
configure:2453: $? = 0
configure:2470: result: yes
configure:2477: checking whether we are cross compiling
configure:2479: result: no
configure:2482: checking for suffix of executables
configure:2484: gcc -o conftest -L/usr/lib -L/usr/lib/mysql conftest.c >&5
configure:2487: $? = 0
configure:2512: result:
configure:2518: checking for suffix of object files
configure:2539: gcc -c conftest.c >&5
configure:2542: $? = 0
configure:2564: result: o
configure:2568: checking whether we are using the GNU C compiler
configure:2592: gcc -c conftest.c >&5
configure:2598: $? = 0
configure:2602: test -z
|| test ! -s conftest.err
configure:2605: $? = 0
configure:2608: test -s conftest.o
configure:2611: $? = 0
configure:2624: result: yes
configure:2630: checking whether gcc accepts -g
configure:2651: gcc -c -g conftest.c >&5
configure:2657: $? = 0
configure:2661: test -z
|| test ! -s conftest.err
configure:2664: $? = 0
configure:2667: test -s conftest.o
configure:2670: $? = 0
configure:2681: result: yes
configure:2698: checking for gcc option to accept ANSI C
configure:2768: gcc -c -g -O2 conftest.c >&5
configure:2774: $? = 0
configure:2778: test -z
|| test ! -s conftest.err
configure:2781: $? = 0
configure:2784: test -s conftest.o
configure:2787: $? = 0
configure:2805: result: none needed
configure:2823: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: syntax error before "me"
configure:2829: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2973: checking for style of include used by make
configure:3001: result: GNU
configure:3029: checking dependency style of gcc
configure:3119: result: gcc3
configure:3188: checking for g++
configure:3204: found /usr/bin/g++
configure:3214: result: g++
configure:3230: checking for C++ compiler version
configure:3233: g++ --version </dev/null >&5
g++ (GCC) 3.4.5
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3236: $? = 0
configure:3238: g++ -v </dev/null >&5
Reading specs from /usr/lib/gcc/i486-slackware-linux/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
Thread model: posix
gcc version 3.4.5
configure:3241: $? = 0
configure:3243: g++ -V </dev/null >&5
g++: `-V' option must have argument
configure:3246: $? = 1
configure:3249: checking whether we are using the GNU C++ compiler
configure:3273: g++ -c conftest.cc >&5
configure:3279: $? = 0
configure:3283: test -z
|| test ! -s conftest.err
configure:3286: $? = 0
configure:3289: test -s conftest.o
configure:3292: $? = 0
configure:3305: result: yes
configure:3311: checking whether g++ accepts -g
configure:3332: g++ -c -g conftest.cc >&5
configure:3338: $? = 0
configure:3342: test -z
|| test ! -s conftest.err
configure:3345: $? = 0
configure:3348: test -s conftest.o
configure:3351: $? = 0
configure:3362: result: yes
configure:3404: g++ -c -g -O2 conftest.cc >&5
configure:3410: $? = 0
configure:3414: test -z
|| test ! -s conftest.err
configure:3417: $? = 0
configure:3420: test -s conftest.o
configure:3423: $? = 0
configure:3449: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function `int main()':
conftest.cc:16: error: `exit' was not declared in this scope
configure:3455: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:3404: g++ -c -g -O2 conftest.cc >&5
configure:3410: $? = 0
configure:3414: test -z
|| test ! -s conftest.err
configure:3417: $? = 0
configure:3420: test -s conftest.o
configure:3423: $? = 0
configure:3449: g++ -c -g -O2 conftest.cc >&5
configure:3455: $? = 0
configure:3459: test -z
|| test ! -s conftest.err
configure:3462: $? = 0
configure:3465: test -s conftest.o
configure:3468: $? = 0
configure:3493: checking dependency style of g++
configure:3583: result: gcc3
configure:3613: checking for a BSD-compatible install
configure:3668: result: /usr/bin/ginstall -c
configure:3679: checking whether make sets $(MAKE)
configure:3699: result: yes
configure:3715: checking how to run the C preprocessor
configure:3750: gcc -E conftest.c
configure:3756: $? = 0
configure:3788: gcc -E conftest.c
conftest.c:15:28: ac_nonexistent.h: No such file or directory
configure:3794: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3833: result: gcc -E
configure:3857: gcc -E conftest.c
configure:3863: $? = 0
configure:3895: gcc -E conftest.c
conftest.c:15:28: ac_nonexistent.h: No such file or directory
configure:3901: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3945: checking for egrep
configure:3955: result: grep -E
configure:3960: checking for ANSI C header files
configure:3985: gcc -c -g -O2 conftest.c >&5
configure:3991: $? = 0
configure:3995: test -z
|| test ! -s conftest.err
configure:3998: $? = 0
configure:4001: test -s conftest.o
configure:4004: $? = 0
configure:4093: gcc -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.c >&5
configure:4096: $? = 0
configure:4098: ./conftest
configure:4101: $? = 0
configure:4116: result: yes
configure:4151: checking for sys/types.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for sys/stat.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for stdlib.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for string.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for memory.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for strings.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for inttypes.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for stdint.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4151: checking for unistd.h
configure:4167: g++ -c -g -O2 conftest.cc >&5
configure:4173: $? = 0
configure:4177: test -z
|| test ! -s conftest.err
configure:4180: $? = 0
configure:4183: test -s conftest.o
configure:4186: $? = 0
configure:4197: result: yes
configure:4214: checking how to run the C++ preprocessor
configure:4245: g++ -E conftest.cc
configure:4251: $? = 0
configure:4283: g++ -E conftest.cc
conftest.cc:25:28: ac_nonexistent.h: No such file or directory
configure:4289: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4328: result: g++ -E
configure:4352: g++ -E conftest.cc
configure:4358: $? = 0
configure:4390: g++ -E conftest.cc
conftest.cc:25:28: ac_nonexistent.h: No such file or directory
configure:4396: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4454: checking mysql/mysql.h usability
configure:4466: g++ -c -g -O2 conftest.cc >&5
configure:4472: $? = 0
configure:4476: test -z
|| test ! -s conftest.err
configure:4479: $? = 0
configure:4482: test -s conftest.o
configure:4485: $? = 0
configure:4495: result: yes
configure:4499: checking mysql/mysql.h presence
configure:4509: g++ -E conftest.cc
configure:4515: $? = 0
configure:4535: result: yes
configure:4570: checking for mysql/mysql.h
configure:4577: result: yes
configure:4608: checking pcre/pcre.h usability
configure:4620: g++ -c -g -O2 conftest.cc >&5
conftest.cc:60:23: pcre/pcre.h: No such file or directory
configure:4626: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_MYSQL_MYSQL_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <pcre/pcre.h>
configure:4649: result: no
configure:4653: checking pcre/pcre.h presence
configure:4663: g++ -E conftest.cc
conftest.cc:26:23: pcre/pcre.h: No such file or directory
configure:4669: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "zm"
| #define PACKAGE_TARNAME "ZoneMinder"
| #define PACKAGE_VERSION "1.22.0"
| #define PACKAGE_STRING "zm 1.22.0"
| #define PACKAGE_BUGREPORT "support@zoneminder.com"
| #define PACKAGE "ZoneMinder"
| #define VERSION "1.22.0"
| #define ZM_DBG_OFF 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_MYSQL_MYSQL_H 1
| /* end confdefs.h. */
| #include <pcre/pcre.h>
configure:4689: result: no
configure:4724: checking for pcre/pcre.h
configure:4731: result: no
configure:4758: checking pcre.h usability
configure:4770: g++ -c -g -O2 conftest.cc >&5
configure:4776: $? = 0
configure:4780: test -z
|| test ! -s conftest.err
configure:4783: $? = 0
configure:4786: test -s conftest.o
configure:4789: $? = 0
configure:4799: result: yes
configure:4803: checking pcre.h presence
configure:4813: g++ -E conftest.cc
configure:4819: $? = 0
configure:4839: result: yes
configure:4874: checking for pcre.h
configure:4881: result: yes
configure:4894: checking whether round is declared
configure:4919: g++ -c -g -O2 conftest.cc >&5
configure:4925: $? = 0
configure:4929: test -z
|| test ! -s conftest.err
configure:4932: $? = 0
configure:4935: test -s conftest.o
configure:4938: $? = 0
configure:4949: result: yes
configure:4967: checking whether strsignal is declared
configure:4992: g++ -c -g -O2 conftest.cc >&5
configure:4998: $? = 0
configure:5002: test -z
|| test ! -s conftest.err
configure:5005: $? = 0
configure:5008: test -s conftest.o
configure:5011: $? = 0
configure:5022: result: yes
configure:5040: checking whether MD5 is declared
configure:5065: g++ -c -g -O2 conftest.cc >&5
configure:5071: $? = 0
configure:5075: test -z
|| test ! -s conftest.err
configure:5078: $? = 0
configure:5081: test -s conftest.o
configure:5084: $? = 0
configure:5095: result: yes
configure:5116: checking for jpeg_start_compress in -ljpeg
configure:5146: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -ljpeg >&5
configure:5152: $? = 0
configure:5156: test -z
|| test ! -s conftest.err
configure:5159: $? = 0
configure:5162: test -s conftest
configure:5165: $? = 0
configure:5178: result: yes
configure:5194: checking for compress in -lz
configure:5224: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lz -ljpeg >&5
configure:5230: $? = 0
configure:5234: test -z
|| test ! -s conftest.err
configure:5237: $? = 0
configure:5240: test -s conftest
configure:5243: $? = 0
configure:5256: result: yes
configure:5272: checking for dlsym in -ldl
configure:5302: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -ldl -lz -ljpeg >&5
configure:5308: $? = 0
configure:5312: test -z
|| test ! -s conftest.err
configure:5315: $? = 0
configure:5318: test -s conftest
configure:5321: $? = 0
configure:5334: result: yes
configure:5350: checking for mysql_init in -lmysqlclient
configure:5380: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lmysqlclient -ldl -lz -ljpeg >&5
configure:5386: $? = 0
configure:5390: test -z
|| test ! -s conftest.err
configure:5393: $? = 0
configure:5396: test -s conftest
configure:5399: $? = 0
configure:5412: result: yes
configure:5428: checking for MD5 in -lcrypto
configure:5458: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lcrypto -lmysqlclient -ldl -lz -ljpeg >&5
configure:5464: $? = 0
configure:5468: test -z
|| test ! -s conftest.err
configure:5471: $? = 0
configure:5474: test -s conftest
configure:5477: $? = 0
configure:5490: result: yes
configure:5505: checking for pcre_compile in -lpcre
configure:5535: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg >&5
configure:5541: $? = 0
configure:5545: test -z
|| test ! -s conftest.err
configure:5548: $? = 0
configure:5551: test -s conftest
configure:5554: $? = 0
configure:5567: result: yes
configure:5582: checking for ff_gcd in -lavutil
configure:5612: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg >&5
configure:5618: $? = 0
configure:5622: test -z
|| test ! -s conftest.err
configure:5625: $? = 0
configure:5628: test -s conftest
configure:5631: $? = 0
configure:5644: result: yes
configure:5659: checking for avcodec_init in -lavcodec
configure:5689: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg >&5
configure:5695: $? = 0
configure:5699: test -z
|| test ! -s conftest.err
configure:5702: $? = 0
configure:5705: test -s conftest
configure:5708: $? = 0
configure:5721: result: yes
configure:5736: checking for av_new_stream in -lavformat
configure:5766: g++ -o conftest -g -O2 -L/usr/lib -L/usr/lib/mysql conftest.cc -lavformat -lavcodec -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg >&5
configure:5772: $? = 0
configure:5776: test -z
|| test ! -s conftest.err
configure:5779: $? = 0
configure:5782: test -s conftest
configure:5785: $? = 0
configure:5798: result: yes
configure:5817: checking for perl
configure:5833: found /usr/bin/perl
configure:5843: result: perl
configure:5856: checking for perl version greater than or equal to 5.6.0
configure:5866: result: ok
configure:5919: checking for perl module Sys::Syslog
configure:5929: result: ok
configure:5991: checking for perl module DBI
configure:6001: result: ok
configure:6063: checking for perl module DBD::mysql
configure:6073: result: ok
configure:6135: checking for perl module Getopt::Long
configure:6145: result: ok
configure:6207: checking for perl module Time::HiRes
configure:6217: result: ok
configure:6279: checking for perl module Date::Manip
configure:6289: result: ok
configure:6351: checking for perl module LWP::UserAgent
configure:6361: result: ok
configure:6424: checking for perl module Device::SerialPort
configure:6434: result: ok
configure:6495: checking for perl module Net::FTP
configure:6505: result: ok
configure:6566: checking for perl module Archive::Tar
configure:6576: result: ok
configure:6637: checking for perl module Archive::Zip
configure:6647: result: ok
configure:6708: checking for perl module Net::SMTP
configure:6718: result: ok
configure:6779: checking for perl module MIME::Lite
configure:6789: result: ok
configure:6850: checking for perl module MIME::Entity
configure:6860: result: ok
configure:6921: checking for perl module X10::ActiveHome
configure:6927: result: no
configure:6942: WARNING: X10::ActiveHome is required for X.10 support
configure:7127: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by zm config.status 1.22.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on rod1

config.status:727: creating Makefile
config.status:727: creating src/Makefile
config.status:727: creating web/Makefile
config.status:727: creating web/graphics/Makefile
config.status:727: creating scripts/Makefile
config.status:727: creating db/Makefile
config.status:831: creating config.h
config.status:973: config.h is unchanged
config.status:1153: executing depfiles commands
configure:8567: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by zm config.status 1.22.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on rod1

config.status:732: creating Makefile
config.status:732: creating src/Makefile
config.status:732: creating web/Makefile
config.status:732: creating web/graphics/Makefile
config.status:732: creating scripts/Makefile
config.status:732: creating db/Makefile
config.status:732: creating zm.conf
config.status:732: creating src/zm_config.h
config.status:732: creating web/zm_config.php
config.status:732: creating scripts/zm
config.status:732: creating db/zm_create.sql
config.status:836: creating config.h
config.status:978: config.h is unchanged
config.status:1158: executing depfiles commands
configure:10012: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by zm config.status 1.22.0, which was
generated by GNU Autoconf 2.59. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on rod1

config.status:735: creating Makefile
config.status:735: creating src/Makefile
config.status:735: creating web/Makefile
config.status:735: creating web/graphics/Makefile
config.status:735: creating scripts/Makefile
config.status:735: creating db/Makefile
config.status:735: creating zm.conf
config.status:735: creating src/zm_config.h
config.status:735: creating web/zm_config.php
config.status:735: creating scripts/zm
config.status:735: creating db/zm_create.sql
config.status:735: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status:735: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status:735: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm
config.status:839: creating config.h
config.status:981: config.h is unchanged
config.status:1161: executing depfiles commands
configure:11344: checking for scripts/ZoneMinder/Makefile
configure:11359: result: no

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_ZM_DB_HOST_set=set
ac_cv_env_ZM_DB_HOST_value=rod1.transport
ac_cv_env_ZM_DB_NAME_set=set
ac_cv_env_ZM_DB_NAME_value=zm
ac_cv_env_ZM_DB_PASS_set=set
ac_cv_env_ZM_DB_PASS_value=zmpass
ac_cv_env_ZM_DB_USER_set=set
ac_cv_env_ZM_DB_USER_value=zmuser
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_file_scripts_ZoneMinder_Makefile=no
ac_cv_have_decl_MD5=yes
ac_cv_have_decl_round=yes
ac_cv_have_decl_strsignal=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_mysql_mysql_h=yes
ac_cv_header_pcre_h=yes
ac_cv_header_pcre_pcre_h=no
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_lib_avcodec_avcodec_init=yes
ac_cv_lib_avformat_av_new_stream=yes
ac_cv_lib_avutil_ff_gcd=yes
ac_cv_lib_crypto_MD5=yes
ac_cv_lib_dl_dlsym=yes
ac_cv_lib_jpeg_jpeg_start_compress=yes
ac_cv_lib_mysqlclient_mysql_init=yes
ac_cv_lib_pcre_pcre_compile=yes
ac_cv_lib_z_compress=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/ginstall -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP='g++ -E'
ac_cv_prog_PERL=perl
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_cxx_g=yes
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=gcc3

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='tar'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.9'
AWK='gawk'
BINDIR='/usr/local/bin'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-g -O2'
CGI_PREFIX='/var/www/cgi-bin'
CPP='gcc -E'
CPPFLAGS=''
CXX='g++'
CXXCPP='g++ -E'
CXXDEPMODE='depmode=gcc3'
CXXFLAGS='-g -O2'
CYGPATH_W='echo'
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
EXTRA_LIBS=''
FFMPEG_CFLAGS='-I/usr/include'
FFMPEG_LIBS='-L/usr/lib'
FFMPEG_PREFIX='/usr'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/usr/lib -L/usr/lib/mysql '
LIBDIR='/usr/local/lib'
LIBOBJS=''
LIBS='-lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -ldl -lz -ljpeg '
LIB_ARCH='lib'
LTLIBOBJS=''
MAKEINFO='makeinfo'
MYSQL_CFLAGS='-I/usr/include'
MYSQL_LIBS='-L/usr/lib/mysql'
MYSQL_PREFIX='/usr'
OBJEXT='o'
PACKAGE='ZoneMinder'
PACKAGE_BUGREPORT='support@zoneminder.com'
PACKAGE_NAME='zm'
PACKAGE_STRING='zm 1.22.0'
PACKAGE_TARNAME='ZoneMinder'
PACKAGE_VERSION='1.22.0'
PATH_BUILD='/usr/src/disks/home automation/ZoneMinder-1.22.0'
PATH_SEPARATOR=':'
PERL='perl'
RUNDIR='/var/run'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
SYSCONFDIR='/etc'
TIME_BUILD='1145090226'
VERSION='1.22.0'
WEB_GROUP='nobody'
WEB_PREFIX='/var/www/htdocs/ZM'
WEB_USER='nobody'
ZM_CONFIG='/etc/zm.conf'
ZM_DB_HOST='rod1.transport'
ZM_DB_NAME='zm'
ZM_DB_PASS='zmpass'
ZM_DB_USER='zmuser'
ZM_PID='/var/run/zm/zm.pid'
ZM_RUNDIR='/var/run/zm'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
ac_ct_STRIP=''
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE='#'
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='${prefix}'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/usr/src/disks/home automation/ZoneMinder-1.22.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

configure: exit 0
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Assuming this was a new install, did you create and populate your database? What is in your installed zm.conf?
Phil
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

I followed the Installation instructions w.r.t. DataBase initialisation:


Installation

For a new installation the next thing you will need to do is
create your database and database users. So type the commands
as follows,

mysql mysql < db/zm_create.sql

mysql mysql

grant select,insert,update,delete on <database name>.* to
'<database user>'@localhost identified by '<database
password>';

quit

mysqladmin reload




# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2005/12/16 10:12:40 $, $Revision: 1.1 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.22.0

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/usr/src/disks/home automation/ZoneMinder-1.22.0

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1145090226

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/local/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/local/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc

# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/htdocs/ZM

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/var/www/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=nobody
ZM_WEB_GROUP=nobody

# ZoneMinder database hostname or ip address
ZM_DB_HOST=rod1.transport

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=zmpass
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That looks ok provided that in this step
grant select,insert,update,delete on <database name>.* to
'<database user>'@localhost identified by '<database
password>';
you did replace '<database user>' with 'zmuser' for instance.

Can you do a 'locate zm.conf' to confirm that there are no bogus versions of that file around?
Phil
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Post by rodj59 »

Used :

grant select,insert,update,delete on zm.* to
'zmuser'@rod1 identified by 'zmpass'; ... etc


mysql user table is :
mysql> select host,user from user;
+-----------+--------+
| host | user |
+-----------+--------+
| localhost | |
| localhost | root |
| localhost | zmuser |
| rod1 | |
| rod1 | root |
| rod1 | zmuser |
+-----------+--------+
6 rows in set (0.05 sec)

The only other zm.conf is in the build directory.

Have rebuilt all the perl modules too without any change.

Could there be an issue with the host name/address? The machine has two network interfaces 192.168.0.1 & 10.0.0.1 with names rod1.transport , rod1.transport.wlan.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Something to check is your path for zm.sock in your options under the paths tab, make sure the path exists and that the sock file is able to be created.

Regards,
Corey
User avatar
diablo43000
Posts: 5
Joined: Fri Apr 14, 2006 1:00 am
Location: Romania

Post by diablo43000 »

chech your /etc/zm.conf

there might ber the problem
when you folowed the instructions u copied and passwd, am i right ?
if so the you gor aline like this in there
ZM_PATH_BUILD => /usr/share/zoneminder


change it to ZM_PATH_BUILD=/usr/share/zoneminder

and with the other 2 lines do the same.


let me know if im right ...
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

Think zm.sock should be created under /var/run/zm : made it world writable.

I can't see where the path to zm.sock is specified? Can't find a zm.sock on the system.

There was an error in the specification of the web directory: should have been /var/www/htdocs/ZM was /var/www/htmldocs/ZM: still doesn't work though.

Invoking the .php scripts in /var/www/htfocs/ZM gives the error:

Call to undefined function:mysql_pconnect() in /var/www/htdocs/ZM/zm_db.php on line 21.

ZM_PATH_BUILD=/usr/share/zoneminder was specified in zm.conf.
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

Part of the problem seems to be capabilities of the webuser name : nobody has no login shell. There are other issues.

I have gotten the 1.21 version to at least start but I now find a message
call to undefined function mysql_pconnect() in /var/www/htdocs/ZM/zm_db.php.

Does anyone know where this function resides please ???
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

try installing php-mysql.

Regards,
Corey
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

Well, I'm back to where I started.

Unfortunately I don't speak perl so this is not easy for me.

The earlier version of ZM 1.21 didn't have a Config.pm which makes comparison difficult.

I have managed to get the 1.21 running but there are still issues w.r.t the loading of the initial ZM database: it mostly works if I use the version 1.22 database but not the version 1.21 database .... strange?

Back to the problem: my version of perl simply doesn't set the value of $name or $value
in Config.pm line 80 when it reaches the end of the zm.conf file:
my ( $name, $value ) = $str =~ /^\s([^=\\s]+)\s*=\s(\S+)\s*$/;

hence the case changing statement which follows croaks on an uninitialised value.

What I don't understand is why everyone else isn' having the same problem?
I used the latest versions of perl5 & its modules. Are there any special options you used when building perl w.r.t. regular expressions?
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Can't start zm

Post by rodj59 »

Now I understand why not everyone else isn't having the same trouble:
one of the values in zm.conf contains whitespace : ie. ZM_PATH_BUILD=/usr/src/disks/home automation/ZoneMinder-1.22.0 : this doesn't get parsed properly & hence returns name & value either unset or null at line 80.

I ?suggest? this should be called a bug since zm should be able to parse all valid linux pathnames including those containing whitespace. A test such as "if ( ! $value ) ..." could at least warn of a configuration file problem if not actually fix it.

It is apparently a quirk of perl that it processes the whole file even if it bombs out somewhere before the end: my apologies I don't speak perl.

Still can't get my camera out of "idle" state though: for a while it "idling" at 5 or six (invisible) frames per second ?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Aaah, penny drops! :)

I will check this and get a fix in for the next release.
Phil
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have attached a small patch which seems to work here if you want to try that and confirm whether it fixes your problem.

Code: Select all

*** scripts/ZoneMinder/lib/ZoneMinder/Config.pm.in      23 Jan 2006 16:25:53 -0000      1.9
--- scripts/ZoneMinder/lib/ZoneMinder/Config.pm.in      3 May 2006 14:12:07 -0000
***************
*** 78,84 ****
        {
                next if ( $str =~ /^\s*$/ );
                next if ( $str =~ /^\s*#/ );
!               my ( $name, $value ) = $str =~ /^\s*([^=\\s]+)\s*=\s*(\S+)\s*$/;
                $name =~ tr/a-z/A-Z/;
                *{$name} = sub { $value };
                push( @EXPORT_CONFIG, $name );
--- 78,84 ----
        {
                next if ( $str =~ /^\s*$/ );
                next if ( $str =~ /^\s*#/ );
!               my ( $name, $value ) = $str =~ /^\s*([^=\\s]+)\s*=\s*(.+)\s*$/;
                $name =~ tr/a-z/A-Z/;
                *{$name} = sub { $value };
                push( @EXPORT_CONFIG, $name );
*** web/zm_config.php.in        31 Mar 2006 15:34:16 -0000      1.9
--- web/zm_config.php.in        3 May 2006 14:13:01 -0000
***************
*** 29,35 ****
        $str = fgets( $cfg, 256 );
        if ( preg_match( '/^\s*$/', $str )) { continue; }
        elseif ( preg_match( '/^\s*#/', $str )) { continue; }
!       elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*([^=\s]+)\s*$/', $str, $matches ))
        {
                define( $matches[1], $matches[2] );
        }
--- 29,35 ----
        $str = fgets( $cfg, 256 );
        if ( preg_match( '/^\s*$/', $str )) { continue; }
        elseif ( preg_match( '/^\s*#/', $str )) { continue; }
!       elseif ( preg_match( '/^\s*([^=\s]+)\s*=\s*(.+)\s*$/', $str, $matches ))
        {
                define( $matches[1], $matches[2] );
        }
Phil
rodj59
Posts: 18
Joined: Sat Apr 15, 2006 9:57 am

Post by rodj59 »

It seems to start OK but I can't verify anything else since I can' get the rest of it working. That's not quite true but in effective terms it is. There doesn't appear to be any way I can switch a camera on: when put into monitor or any other mode zmdc gives the message it can't find any process with the name "zma -m 1" ... shared memory errors start popping up thereafter too.

If not for this I would say it was just a browser configuration problem. The system as it stands is running xawtv OK ( though it is possible to crash it with replays). It can also read a web feed out of Motion OK. The only thing it can't do is stream video/images out of ZoneMinder. I also have xine, mplayer & realplay running OK.

Actually ZM is streaming the images: I can "save image" by clicking over the blank/broken ZM monitor window, truncate the stream by copying it to another file, amputate the html header stuff of the beginning , name the resulting file according to the stream type that has been set & then view it as video in the appropriate tool. I just cannot seemingly get ZM to display the stream in a manner the browser will recognise as a video stream. :(
Locked