make problem

Support and queries relating to all previous versions of ZoneMinder
Locked
yrma
Posts: 1
Joined: Thu Jan 29, 2004 7:29 pm

make problem

Post by yrma »

Hi,

We have Linux Debian 3.0. We are trying to install zm-1.17.1. We run:

- ./configure --with-mysql=/usr --with-webdir=/var/www --with-cgidir=/usr/lib/cgi-bin --prefix=/usr

No problem.

- perl zmconfig.pl

Fine

- mysql -u root -p < db/zmschema.sql

Great.

- perl zmconfig.pl

Superfine

- make
(...)
make all-recursive
make[1]: Entering directory `/root/zm-1.17.1'
Making all in src
make[2]: Entering directory `/root/zm-1.17.1/src'
source='zma.cpp' object='zma.o' libtool=no \
depfile='.deps/zma.Po' tmpdepfile='.deps/zma.TPo' \
depmode=gcc /bin/sh ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -c -o zma.o `test -f 'zma.cpp' || echo './'`zma.cpp
zma.cpp: In function `void zm_die_handler(int)':
zma.cpp:29: implicit declaration of function `int strsignal(...)'
zma.cpp:29: initialization to `char *' from `int' lacks a cast
zma.cpp: In function `void zm_term_handler(int)':
zma.cpp:43: initialization to `char *' from `int' lacks a cast
make[2]: *** [zma.o] Error 1
make[2]: Leaving directory `/root/zm-1.17.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zm-1.17.1'
make: *** [all] Error 2

What's the problem?

Thank you very much,

Yrma
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Re: make problem

Post by snakebyte »

the strsignal function is defined in /usr/include/string.h and is part of the glibc-headers rpm package as part of the Redhat distro. It looks like your version of linux doesn't have that function defined. Phil offers a patch to this problem in another thread:
http://www.zoneminder.com/forum_general ... 92a83a10ea
Locked