Cannot make

Support and queries relating to all previous versions of ZoneMinder
Locked
fr3ndl1n
Posts: 1
Joined: Mon Jan 12, 2004 1:57 am

Cannot make

Post by fr3ndl1n »

The system is an updated Libranet Debian GNU/Linux version 2.8. Kernel is 2.4.20.

The problem is make gives the output below

Others have noted the same problem for other applications, and is apparently
caused by conflicts between time.h files in e.g. /usr/include/linux/ and
/usr/include/. (See Bug#220399 and Bug#218438 discussions)

I have been able to force make to complete by meddling with /usr/include/linux/videodev.h
so that it does not include /usr/include/linux/videodev2.h.

Then I'm able to install zoneminder, and all appears to work except the
video window is "broken" (no video}

xawtv runs okay, and gspy does too so I think if I could somehow tell zoneminder
where to look for the right header files, it would run too.

Suggestions, anyone?

Thanks!,
-Warner
------------------------------------------------------------------------------
fr3ndl1n@olga:~/zm-1.17.0$ make
make all-recursive
make[1]: Entering directory `/home/fr3ndl1n/zm-1.17.0'
Making all in src
make[2]: Entering directory `/home/fr3ndl1n/zm-1.17.0/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -g -O2 -MT zmc.o -MD -MP -MF ".deps/zmc.Tpo" \
-c -o zmc.o `test -f 'zmc.cpp' || echo './'`zmc.cpp; \
then mv ".deps/zmc.Tpo" ".deps/zmc.Po"; \
else rm -f ".deps/zmc.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/videodev2.h:16,
from /usr/include/linux/videodev.h:8,
from zm_camera.h:25,
from zm_monitor.h:30,
from zmc.cpp:26:
/usr/include/linux/time.h:9: error: redefinition of `struct timespec'
/usr/include/time.h:119: error: previous definition of `struct timespec'
/usr/include/linux/time.h:15: error: redefinition of `struct timeval'
/usr/include/bits/time.h:70: error: previous definition of `struct timeval'
/usr/include/linux/time.h:20: error: redefinition of `struct timezone'
/usr/include/sys/time.h:57: error: previous definition of `struct timezone'
/usr/include/linux/time.h:354: error: redefinition of `struct itimerspec'
/usr/include/time.h:160: error: previous definition of `struct itimerspec'
/usr/include/linux/time.h:359: error: redefinition of `struct itimerval'
/usr/include/sys/time.h:108: error: previous definition of `struct itimerval'
cc1plus: Permission denied: opening dependency file .deps/zmc.Tpo
make[2]: *** [zmc.o] Error 1
make[2]: Leaving directory `/home/fr3ndl1n/zm-1.17.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fr3ndl1n/zm-1.17.0'
make: *** [all] Error 2
snakebyte
Posts: 45
Joined: Sun Dec 07, 2003 1:51 am

Re: Cannot make

Post by snakebyte »

I don't have debian installed but I can tell you a bit about how redhat/fedora has things set up.
First, there is no videodev2.h file. the only two include files in videodev.h are:
#include <linux/types.h>
#include <linux/version.h>
the /usr/include/linux/videodev.h file is part of the glibc-kernheaders-2.4-8.36 rpm package.
This package is responsible for everything in /usr/include/linux and /usr/include/asm
glibc-headers-2.3.2-101.4 rpm package is responsible for almost everything in /usr/include/sys
and the /usr/include/time.h file.

So maybe that might help you determine if one of debian's packages is out of whack...

As to your video window being broken, that might not be related to this at all.. check your main messages log file (in redhat it's /var/log/messages) as well as any /tmp/zm* files for errors.
Locked