zoneminder-1.24.2 has a major bug (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608790) and unfunctional with v4l2 cameras. This is fixed in upstream. Version 1.24.4 seems working. There is working build with updated patch in my git repo (http://git.altlinux.org/people/vitty/packages/zoneminder.git).
Using your build i could build on my dev machine, but on git.alt, i have: zm_sdp.cpp: In member function 'AVFormatContext* SessionDescriptor::generateFormatContext() const': zm_sdp.cpp:332:62: error: 'av_alloc_format_context' was not declared in this scope zm_sdp.cpp:337:42: warning: comparison between signed and unsigned integer expressions So, I'm playing with it. If you want to try to build on git.alt, I gave you rights.
Let we ask sbolshakov@ to help us with libav :)
sed -i s,av_alloc_format_context,avformat_alloc_context, src/zm_sdp.cpp
Fixed in 1.24.4-alt2. Please test.