Cannot make
Posted: Sat Jan 17, 2004 5:36 pm
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
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