Trouble building ZoneMinder 1.19.4 on Debian kernel 2.6.8

Support and queries relating to all previous versions of ZoneMinder
Locked
rogerdahl
Posts: 8
Joined: Mon Sep 06, 2004 6:00 am

Trouble building ZoneMinder 1.19.4 on Debian kernel 2.6.8

Post by rogerdahl »

Hello everyone,

I'm having trouble building ZoneMinder 1.19.4 on Debian with kernel 2.6.8. I've been unable to find anything to help me in the faq or in the forums. I've included the error message below. Any help would me much appreciated.

Thanks,

Roger Dahl
make all-recursive
make[1]: Entering directory `/share/zm-1.19.4'
Making all in src
make[2]: Entering directory `/share/zm-1.19.4/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/include -g -O2 -MT zm_event.o -MD -MP -MF ".deps/zm_event.Tpo" \
-c -o zm_event.o `test -f 'zm_event.cpp' || echo './'`zm_event.cpp; \
then mv ".deps/zm_event.Tpo" ".deps/zm_event.Po"; \
else rm -f ".deps/zm_event.Tpo"; exit 1; \
fi
In file included from /usr/include/linux/videodev.h:8,
from zm_camera.h:25,
from zm_monitor.h:30,
from zm_event.cpp:31:
/usr/include/linux/videodev2.h:436: error: parse error before `*' token
/usr/include/linux/videodev2.h:438: error: variable or field `__user' declared
void
/usr/include/linux/videodev2.h:438: error: declaration of `int
v4l2_window::__user'
/usr/include/linux/videodev2.h:436: error: conflicts with previous declaration
`v4l2_clip v4l2_window::__user'
/usr/include/linux/videodev2.h:438: error: parse error before `*' token
In file included from zm_camera.h:25,
from zm_monitor.h:30,
from zm_event.cpp:31:
/usr/include/linux/videodev.h:225: error: parse error before `*' token
make[2]: *** [zm_event.o] Error 1
make[2]: Leaving directory `/share/zm-1.19.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/share/zm-1.19.4'
make: *** [all] Error 2
rogerdahl
Posts: 8
Joined: Mon Sep 06, 2004 6:00 am

Problem solved

Post by rogerdahl »

Just in case anyone else runs into the same problem, the solution was to use kernel headers from 2.6.7. Don't ask me why...

I had upgraded the system from 2.4.18 to 2.6.8. It left the kernel headers at 2.4.18 and that wouldn't compile, so I symlinked /usr/include/linux and /usr/include/asm into the 2.6.8 source tree. That didn't work either, so I installed separate 2.6.7 headers and symlinked into those instead. That worked.

Roger
Locked