Build error with zoneminder 1.24.1-1 help!

Forum for questions and support relating to the 1.24.x releases only.
Locked
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Build error with zoneminder 1.24.1-1 help!

Post by barneyward »

Hi! Sorry if this is in the wrong forum - please change forum if needed..

Having run zoneminder 1.23 versions (including several upgrades) onmy Debian system I tried to upgrade to 1.24.

First I tried the Debian package ZoneMinder 1.24.1-1, which failed due to the following:
Setting up zoneminder (1.24.1-1) ...
Starting ZoneMinder: Undefined subroutine &main::zmMemTidy called at /usr/bin/zmpkg.pl line 159.
failure

so instead I tried building my own version:

./configure --with-webuser=www-data --with-webdir=/var/www/zm --with-cgidir=/usr/local/cgi-bin --with-webgroup=www-data ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local/bin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-libarch option.
This tells configure where to find architecture specific libraries.
The default of 'lib' is usually ok but 64 bit machines may require lib64.
e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --with-mysql option.
This tells configure where to find the MySql C library and headers if configure cannot
locate them automatically.
e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-extralibs option.
Ordinarily you will need to use this option only when your copy of ffmpeg has been built
with support for additional formats and you would use this option to detail which additional
libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
You will need to wrap this option in quotes if it contains any spaces.
e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
This tells configure whether to compile ZoneMinder with debug included. Although debug is included
by default it is not output unless explicitly switched on elsewhere. These checks may induce a
small penalty on performance and if you are after squeezing the maximum possible performance out
of ZoneMinder you may use this switch to prevent debug from being compiled in.
e.g. --enable-debug=yes or --disable-debug
configure: WARNING: You can call configure with the --enable-crashtrace=<yes|no> or --disable-crashtrace option.
This tells configure whether to compile ZoneMinder with crash tracing included. This allows a
dump of the stack trace when a ZoneMinder binary crashes or is killed by an unexpected signal.
Although this should work on most systems it does rely on un(or loosely) documented features and
so should be regarded as experimental. If you experience problems compiling zm_signal.cpp or
ZoneMinder binaries fail to shut down correctly then you should probably disable this feature.
e.g. --enable-crashtrace=yes or --disable-crashtrace
configure: WARNING: You can call configure with the --enable-mmap=<yes|no> or --disable-mmap option.
This tells configure whether to compile ZoneMinder with mmap support rather than IPC shared
memory. This is an experimental feature that uses memory mapped into files which all processes
can share. Memory mapping requires less configuration and is more flexible than shared memory
but may slow down your system unless the mapped files are configured to reside on a fast or
RAM based filesystem.
e.g. --enable-mmap=yes or --disable-mmap
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint8_t... yes
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... yes
checking for struct sigcontext.eip... yes
checking for ucontext_t... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strsignal... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/local/bin/ffmpeg
checking for pnmscale... no
checking for pnmscale... no
dirname: missing operand
Try `dirname --help' for more information.
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for av_malloc in -lavutil... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for sws_scale in -lswscale... no
checking for BZ2_bzCompress in -lbz2... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/socket.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libswscale/swscale.h usability... no
checking libswscale/swscale.h presence... no
checking for libswscale/swscale.h... no
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking whether round is declared... yes
checking whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking for perl... perl
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... ok
checking for perl module LWP::UserAgent... ok
checking for perl module PHP::Serialization... ok
checking for perl module Module::Load... ok
checking for perl module Device::SerialPort... ok
checking for perl module Net::FTP... ok
checking for perl module Archive::Tar... ok
checking for perl module Archive::Zip... ok
checking for perl module Net::SMTP... ok
checking for perl module MIME::Lite... ok
checking for perl module MIME::Entity... ok
checking for perl module X10::ActiveHome... no
configure: WARNING: X10::ActiveHome is required for X.10 support
configure: creating ./config.status
config.status: creating Makefile
config.status: creating zm.conf
config.status: creating db/Makefile
config.status: creating db/zm_create.sql
config.status: creating scripts/Makefile
config.status: creating scripts/zm
config.status: creating scripts/zmdbbackup
config.status: creating scripts/zmdbrestore
config.status: creating scripts/zmeventdump
config.status: creating scripts/zmlogrotate.conf
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Memory.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm
config.status: creating src/Makefile
config.status: creating src/zm_config.h
config.status: creating web/Makefile
config.status: creating web/ajax/Makefile
config.status: creating web/css/Makefile
config.status: creating web/graphics/Makefile
config.status: creating web/includes/Makefile
config.status: creating web/includes/config.php
config.status: creating web/js/Makefile
config.status: creating web/lang/Makefile
config.status: creating web/skins/Makefile
config.status: creating web/skins/classic/Makefile
config.status: creating web/skins/classic/ajax/Makefile
config.status: creating web/skins/classic/css/Makefile
config.status: creating web/skins/classic/graphics/Makefile
config.status: creating web/skins/classic/includes/Makefile
config.status: creating web/skins/classic/js/Makefile
config.status: creating web/skins/classic/lang/Makefile
config.status: creating web/skins/classic/views/Makefile
config.status: creating web/skins/classic/views/css/Makefile
config.status: creating web/skins/classic/views/js/Makefile
config.status: creating web/skins/mobile/Makefile
config.status: creating web/skins/mobile/ajax/Makefile
config.status: creating web/skins/mobile/css/Makefile
config.status: creating web/skins/mobile/graphics/Makefile
config.status: creating web/skins/mobile/includes/Makefile
config.status: creating web/skins/mobile/lang/Makefile
config.status: creating web/skins/mobile/views/Makefile
config.status: creating web/skins/mobile/views/css/Makefile
config.status: creating web/tools/Makefile
config.status: creating web/tools/mootools/Makefile
config.status: creating web/views/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for scripts/ZoneMinder/Makefile... yes


but then a 'make' bombs out with the following:

make
make all-recursive
make[1]: Entering directory `/usr/share/ZoneMinder-1.24.1'
Making all in src
make[2]: Entering directory `/usr/share/ZoneMinder-1.24.1/src'
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
mv -f .deps/zmc.Tpo .deps/zmc.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_box.o -MD -MP -MF .deps/zm_box.Tpo -c -o zm_box.o zm_box.cpp
mv -f .deps/zm_box.Tpo .deps/zm_box.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF .deps/zm_buffer.Tpo -c -o zm_buffer.o zm_buffer.cpp
mv -f .deps/zm_buffer.Tpo .deps/zm_buffer.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_camera.o -MD -MP -MF .deps/zm_camera.Tpo -c -o zm_camera.o zm_camera.cpp
mv -f .deps/zm_camera.Tpo .deps/zm_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_comms.o -MD -MP -MF .deps/zm_comms.Tpo -c -o zm_comms.o zm_comms.cpp
mv -f .deps/zm_comms.Tpo .deps/zm_comms.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_config.o -MD -MP -MF .deps/zm_config.Tpo -c -o zm_config.o zm_config.cpp
mv -f .deps/zm_config.Tpo .deps/zm_config.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_coord.o -MD -MP -MF .deps/zm_coord.Tpo -c -o zm_coord.o zm_coord.cpp
mv -f .deps/zm_coord.Tpo .deps/zm_coord.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_db.o -MD -MP -MF .deps/zm_db.Tpo -c -o zm_db.o zm_db.cpp
mv -f .deps/zm_db.Tpo .deps/zm_db.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
mv -f .deps/zm_event.Tpo .deps/zm_event.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_exception.o -MD -MP -MF .deps/zm_exception.Tpo -c -o zm_exception.o zm_exception.cpp
mv -f .deps/zm_exception.Tpo .deps/zm_exception.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF .deps/zm_file_camera.Tpo -c -o zm_file_camera.o zm_file_camera.cpp
mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In member function ‘void Image::Blend(const Image&, int) const’:
zm_image.cpp:776: warning: operation on ‘pdest’ may be undefined
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include -I/usr/local/bin/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/bin/include -frepo -g -O2 -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
zm_mpeg.cpp: In member function ‘double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)’:
zm_mpeg.cpp:325: error: ‘img_convert’ was not declared in this scope
make[2]: *** [zm_mpeg.o] Error 1
make[2]: Leaving directory `/usr/share/ZoneMinder-1.24.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/share/ZoneMinder-1.24.1'
make: *** [all] Error 2


I know in these cases it's usually something VERY simple, but any suugestions would be appreciated- I REALLY miss having zoneminder working!

Cheers, barney
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What version of ffmpeg do you have installed and are the headers for ffmpeg installed?
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

I downloaded ffmpeg-0.5 source from ffmpeg.org. Would this install headers aswell? If not, where should I look, as they aren't mentioned on the ffmpeg.org download page?

Thanks for getting back to me!

Barney.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

It used to be

Code: Select all

make install-libs
But it seems that they have them installed by default now under make install.

If you didn't specify a prefix then they are likely installed under /usr/local in lib and includes which you will need to specify in ZM configure --with-ffmpeg=/usr/local.

Verify though that they are actually under that path.
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

Yes, the libs seem to be where you suggest, but configuring with --with-ffmpeg=/usr/share still gives the same problem as before (identical build error).
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

(sorry - that last post should read --with-ffmpeg=/usr/local)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Alright from your log above, it's not finding swscaler. Did you build ffmpeg with --enable-gpl and --enable-swscaler ?
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

No - I'll try that tonight and let you know - Thanks for the help!
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

Aha.. progress... but not quite there yet!

(re) building ffmpeg with --enable-gpl and --enable-swscale cures that problem, but now I get a hang-up whilst recompiling and relinking:

Code: Select all

./configure --with-webuser=www-data --with-webdir=/var/www/barneyward/zm --with-cgidir=/usr/local/cgi-bin --with-webgroup=www-data ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: WARNING: You can call configure with the --with-libarch option.
    This tells configure where to find architecture specific libraries.
    The default of 'lib' is usually ok but 64 bit machines may require lib64.
    e.g. --with-libarch=lib or --with-libarch=lib64
configure: WARNING: You can call configure with the --with-mysql option.
    This tells configure where to find the MySql C library and headers if configure cannot
    locate them automatically.
    e.g. --with-mysql=/usr/local or --with-mysql=/usr
configure: WARNING: You can call configure with the --with-extralibs option.
    Ordinarily you will need to use this option only when your copy of ffmpeg has been built
    with support for additional formats and you would use this option to detail which additional
    libraries ffmpeg was built with so that it is able to link successfully with ZoneMinder.
    You will need to wrap this option in quotes if it contains any spaces.
    e.g. --with-extralibs="-lmp3lame"
configure: WARNING: You can call configure with the --enable-debug=<yes|no> or --disable-debug option.
    This tells configure whether to compile ZoneMinder with debug included. Although debug is included
    by default it is not output unless explicitly switched on elsewhere. These checks may induce a
    small penalty on performance and if you are after squeezing the maximum possible performance out
    of ZoneMinder you may use this switch to prevent debug from being compiled in.
    e.g. --enable-debug=yes or --disable-debug
configure: WARNING: You can call configure with the --enable-crashtrace=<yes|no> or --disable-crashtrace option.
    This tells configure whether to compile ZoneMinder with crash tracing included. This allows a
    dump of the stack trace when a ZoneMinder binary crashes or is killed by an unexpected signal.
    Although this should work on most systems it does rely on un(or loosely) documented features and
    so should be regarded as experimental. If you experience problems compiling zm_signal.cpp or
    ZoneMinder binaries fail to shut down correctly then you should probably disable this feature.
    e.g. --enable-crashtrace=yes or --disable-crashtrace
configure: WARNING: You can call configure with the --enable-mmap=<yes|no> or --disable-mmap option.
    This tells configure whether to compile ZoneMinder with mmap support rather than IPC shared
    memory. This is an experimental feature that uses memory mapped into files which all processes
    can share. Memory mapping requires less configuration and is more flexible than shared memory
    but may slow down your system unless the mapped files are configured to reside on a fast or
    RAM based filesystem.
    e.g. --enable-mmap=yes or --disable-mmap
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... no
checking for an ANSI C-conforming const... yes
checking for uid_t in sys/types.h... yes
checking for inline... inline
checking for mode_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for uint8_t... yes
checking return type of signal handlers... void
checking for siginfo_t... yes
checking for struct sigcontext... yes
checking for struct sigcontext.eip... yes
checking for ucontext_t... yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gethostbyname... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for putenv... yes
checking for select... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strcspn... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strsignal... yes
checking for strspn... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoull... yes
checking for ffmpeg... yes
checking for ffmpeg... /usr/local/bin/ffmpeg
checking for pnmscale... no
checking for pnmscale... no
dirname: missing operand
Try `dirname --help' for more information.
checking for jpeg_start_compress in -ljpeg... yes
checking for compress in -lz... yes
checking for dlsym in -ldl... yes
checking for pthread_create in -lpthread... yes
checking for mysql_init in -lmysqlclient... yes
checking for MD5 in -lcrypto... yes
checking for pcre_compile in -lpcre... yes
checking for av_malloc in -lavutil... yes
checking for avcodec_init in -lavcodec... yes
checking for av_new_stream in -lavformat... yes
checking for sws_scale in -lswscale... yes
checking for BZ2_bzCompress in -lbz2... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for sys/socket.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking linux/videodev2.h usability... yes
checking linux/videodev2.h presence... yes
checking for linux/videodev2.h... yes
checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking libavutil/avutil.h usability... yes
checking libavutil/avutil.h presence... yes
checking for libavutil/avutil.h... yes
checking ffmpeg/avutil.h usability... no
checking ffmpeg/avutil.h presence... no
checking for ffmpeg/avutil.h... no
checking libavcodec/avcodec.h usability... yes
checking libavcodec/avcodec.h presence... yes
checking for libavcodec/avcodec.h... yes
checking ffmpeg/avcodec.h usability... no
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes
checking ffmpeg/avformat.h usability... no
checking ffmpeg/avformat.h presence... no
checking for ffmpeg/avformat.h... no
checking libswscale/swscale.h usability... yes
checking libswscale/swscale.h presence... yes
checking for libswscale/swscale.h... yes
checking ffmpeg/swscale.h usability... no
checking ffmpeg/swscale.h presence... no
checking for ffmpeg/swscale.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking whether round is declared... yes
checking whether MD5 is declared... yes
checking whether backtrace is declared... yes
checking for perl... perl
checking for perl version greater than or equal to 5.6.0... ok
checking for perl module Sys::Syslog... ok
checking for perl module DBI... ok
checking for perl module DBD::mysql... ok
checking for perl module Getopt::Long... ok
checking for perl module Time::HiRes... ok
checking for perl module Date::Manip... ok
checking for perl module LWP::UserAgent... ok
checking for perl module PHP::Serialization... ok
checking for perl module Module::Load... ok
checking for perl module Device::SerialPort... ok
checking for perl module Net::FTP... ok
checking for perl module Archive::Tar... ok
checking for perl module Archive::Zip... ok
checking for perl module Net::SMTP... ok
checking for perl module MIME::Lite... ok
checking for perl module MIME::Entity... ok
checking for perl module X10::ActiveHome... no
configure: WARNING: X10::ActiveHome is required for X.10 support
configure: creating ./config.status
config.status: creating Makefile
config.status: creating zm.conf
config.status: creating db/Makefile
config.status: creating db/zm_create.sql
config.status: creating scripts/Makefile
config.status: creating scripts/zm
config.status: creating scripts/zmdbbackup
config.status: creating scripts/zmdbrestore
config.status: creating scripts/zmeventdump
config.status: creating scripts/zmlogrotate.conf
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Base.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Config.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/Memory.pm
config.status: creating scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm
config.status: creating src/Makefile
config.status: creating src/zm_config.h
config.status: creating web/Makefile
config.status: creating web/ajax/Makefile
config.status: creating web/css/Makefile
config.status: creating web/graphics/Makefile
config.status: creating web/includes/Makefile
config.status: creating web/includes/config.php
config.status: creating web/js/Makefile
config.status: creating web/lang/Makefile
config.status: creating web/skins/Makefile
config.status: creating web/skins/classic/Makefile
config.status: creating web/skins/classic/ajax/Makefile
config.status: creating web/skins/classic/css/Makefile
config.status: creating web/skins/classic/graphics/Makefile
config.status: creating web/skins/classic/includes/Makefile
config.status: creating web/skins/classic/js/Makefile
config.status: creating web/skins/classic/lang/Makefile
config.status: creating web/skins/classic/views/Makefile
config.status: creating web/skins/classic/views/css/Makefile
config.status: creating web/skins/classic/views/js/Makefile
config.status: creating web/skins/mobile/Makefile
config.status: creating web/skins/mobile/ajax/Makefile
config.status: creating web/skins/mobile/css/Makefile
config.status: creating web/skins/mobile/graphics/Makefile
config.status: creating web/skins/mobile/includes/Makefile
config.status: creating web/skins/mobile/lang/Makefile
config.status: creating web/skins/mobile/views/Makefile
config.status: creating web/skins/mobile/views/css/Makefile
config.status: creating web/tools/Makefile
config.status: creating web/tools/mootools/Makefile
config.status: creating web/views/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
checking for scripts/ZoneMinder/Makefile... no
Checking if your kit is complete...
Looks good
Writing Makefile for ZoneMinder
fserver:/usr/local/ZoneMinder-1.24.1# make
make  all-recursive
make[1]: Entering directory `/usr/local/ZoneMinder-1.24.1'
Making all in src
make[2]: Entering directory `/usr/local/ZoneMinder-1.24.1/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
mv -f .deps/zmc.Tpo .deps/zmc.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_box.o -MD -MP -MF .deps/zm_box.Tpo -c -o zm_box.o zm_box.cpp
mv -f .deps/zm_box.Tpo .deps/zm_box.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_buffer.o -MD -MP -MF .deps/zm_buffer.Tpo -c -o zm_buffer.o zm_buffer.cpp
mv -f .deps/zm_buffer.Tpo .deps/zm_buffer.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_camera.o -MD -MP -MF .deps/zm_camera.Tpo -c -o zm_camera.o zm_camera.cpp
mv -f .deps/zm_camera.Tpo .deps/zm_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_comms.o -MD -MP -MF .deps/zm_comms.Tpo -c -o zm_comms.o zm_comms.cpp
mv -f .deps/zm_comms.Tpo .deps/zm_comms.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_config.o -MD -MP -MF .deps/zm_config.Tpo -c -o zm_config.o zm_config.cpp
mv -f .deps/zm_config.Tpo .deps/zm_config.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_coord.o -MD -MP -MF .deps/zm_coord.Tpo -c -o zm_coord.o zm_coord.cpp
mv -f .deps/zm_coord.Tpo .deps/zm_coord.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_db.o -MD -MP -MF .deps/zm_db.Tpo -c -o zm_db.o zm_db.cpp
mv -f .deps/zm_db.Tpo .deps/zm_db.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include   -I/usr/local/include  -MT zm_debug.o -MD -MP -MF .deps/zm_debug.Tpo -c -o zm_debug.o zm_debug.c
mv -f .deps/zm_debug.Tpo .deps/zm_debug.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
mv -f .deps/zm_event.Tpo .deps/zm_event.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_exception.o -MD -MP -MF .deps/zm_exception.Tpo -c -o zm_exception.o zm_exception.cpp
mv -f .deps/zm_exception.Tpo .deps/zm_exception.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_file_camera.o -MD -MP -MF .deps/zm_file_camera.Tpo -c -o zm_file_camera.o zm_file_camera.cpp
mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_ffmpeg_camera.o -MD -MP -MF .deps/zm_ffmpeg_camera.Tpo -c -o zm_ffmpeg_camera.o zm_ffmpeg_camera.cpp
mv -f .deps/zm_ffmpeg_camera.Tpo .deps/zm_ffmpeg_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
zm_image.cpp: In member function ‘void Image::Blend(const Image&, int) const’:
zm_image.cpp:776: warning: operation on ‘pdest’ may be undefined
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
gcc -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include   -I/usr/local/include  -MT zm_jpeg.o -MD -MP -MF .deps/zm_jpeg.Tpo -c -o zm_jpeg.o zm_jpeg.c
zm_jpeg.c: In function ‘zm_jpeg_error_exit’:
zm_jpeg.c:42: warning: implicit declaration of function ‘exit’
zm_jpeg.c:42: warning: incompatible implicit declaration of built-in function ‘exit’
mv -f .deps/zm_jpeg.Tpo .deps/zm_jpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_local_camera.o -MD -MP -MF .deps/zm_local_camera.Tpo -c -o zm_local_camera.o zm_local_camera.cpp
mv -f .deps/zm_local_camera.Tpo .deps/zm_local_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_ffmpeg.o -MD -MP -MF .deps/zm_ffmpeg.Tpo -c -o zm_ffmpeg.o zm_ffmpeg.cpp
mv -f .deps/zm_ffmpeg.Tpo .deps/zm_ffmpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
mv -f .deps/zm_mpeg.Tpo .deps/zm_mpeg.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_poly.o -MD -MP -MF .deps/zm_poly.Tpo -c -o zm_poly.o zm_poly.cpp
mv -f .deps/zm_poly.Tpo .deps/zm_poly.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_regexp.o -MD -MP -MF .deps/zm_regexp.Tpo -c -o zm_regexp.o zm_regexp.cpp
mv -f .deps/zm_regexp.Tpo .deps/zm_regexp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_remote_camera.o -MD -MP -MF .deps/zm_remote_camera.Tpo -c -o zm_remote_camera.o zm_remote_camera.cpp
mv -f .deps/zm_remote_camera.Tpo .deps/zm_remote_camera.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_remote_camera_http.o -MD -MP -MF .deps/zm_remote_camera_http.Tpo -c -o zm_remote_camera_http.o zm_remote_camera_http.cpp
mv -f .deps/zm_remote_camera_http.Tpo .deps/zm_remote_camera_http.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_remote_camera_rtsp.o -MD -MP -MF .deps/zm_remote_camera_rtsp.Tpo -c -o zm_remote_camera_rtsp.o zm_remote_camera_rtsp.cpp
mv -f .deps/zm_remote_camera_rtsp.Tpo .deps/zm_remote_camera_rtsp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_rtp.o -MD -MP -MF .deps/zm_rtp.Tpo -c -o zm_rtp.o zm_rtp.cpp
mv -f .deps/zm_rtp.Tpo .deps/zm_rtp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_rtp_ctrl.o -MD -MP -MF .deps/zm_rtp_ctrl.Tpo -c -o zm_rtp_ctrl.o zm_rtp_ctrl.cpp
mv -f .deps/zm_rtp_ctrl.Tpo .deps/zm_rtp_ctrl.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_rtp_data.o -MD -MP -MF .deps/zm_rtp_data.Tpo -c -o zm_rtp_data.o zm_rtp_data.cpp
mv -f .deps/zm_rtp_data.Tpo .deps/zm_rtp_data.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_rtp_source.o -MD -MP -MF .deps/zm_rtp_source.Tpo -c -o zm_rtp_source.o zm_rtp_source.cpp
mv -f .deps/zm_rtp_source.Tpo .deps/zm_rtp_source.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_rtsp.o -MD -MP -MF .deps/zm_rtsp.Tpo -c -o zm_rtsp.o zm_rtsp.cpp
mv -f .deps/zm_rtsp.Tpo .deps/zm_rtsp.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_signal.o -MD -MP -MF .deps/zm_signal.Tpo -c -o zm_signal.o zm_signal.cpp
mv -f .deps/zm_signal.Tpo .deps/zm_signal.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_stream.o -MD -MP -MF .deps/zm_stream.Tpo -c -o zm_stream.o zm_stream.cpp
mv -f .deps/zm_stream.Tpo .deps/zm_stream.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_thread.o -MD -MP -MF .deps/zm_thread.Tpo -c -o zm_thread.o zm_thread.cpp
mv -f .deps/zm_thread.Tpo .deps/zm_thread.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_time.o -MD -MP -MF .deps/zm_time.Tpo -c -o zm_time.o zm_time.cpp
mv -f .deps/zm_time.Tpo .deps/zm_time.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_timer.o -MD -MP -MF .deps/zm_timer.Tpo -c -o zm_timer.o zm_timer.cpp
mv -f .deps/zm_timer.Tpo .deps/zm_timer.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
mv -f .deps/zm_user.Tpo .deps/zm_user.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_utils.o -MD -MP -MF .deps/zm_utils.Tpo -c -o zm_utils.o zm_utils.cpp
mv -f .deps/zm_utils.Tpo .deps/zm_utils.Po
g++ -DHAVE_CONFIG_H -I. -I..  -I/usr/include -I/usr/local/include -Wall -Wno-sign-compare -fno-inline -I/usr/local/include  -frepo -g -O2 -MT zm_zone.o -MD -MP -MF .deps/zm_zone.Tpo -c -o zm_zone.o zm_zone.cpp
mv -f .deps/zm_zone.Tpo .deps/zm_zone.Po
g++ -frepo -g -O2  -L/usr/local/lib -L/usr/lib/mysql   -o zmc zmc.o zm_box.o zm_buffer.o zm_camera.o zm_comms.o zm_config.o zm_coord.o zm.o zm_db.o zm_debug.o zm_event.o zm_exception.o zm_file_camera.o zm_ffmpeg_camera.o zm_image.o zm_jpeg.o zm_local_camera.o zm_monitor.o zm_ffmpeg.o zm_mpeg.o zm_poly.o zm_regexp.o zm_remote_camera.o zm_remote_camera_http.o zm_remote_camera_rtsp.o zm_rtp.o zm_rtp_ctrl.o zm_rtp_data.o zm_rtp_source.o zm_rtsp.o zm_signal.o zm_stream.o zm_thread.o zm_time.o zm_timer.o zm_user.o zm_utils.o zm_zone.o  -lbz2 -lswscale -lavformat -lavcodec -lavutil -lpcre -lcrypto -lmysqlclient -lpthread -ldl -lz -ljpeg 
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_thread.cpp
collect: recompiling zm_rtp_source.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_local_camera.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_utils.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_monitor.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_utils.cpp
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_event.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_rtsp.cpp
collect: recompiling zm_rtp_ctrl.cpp
collect: recompiling zm_comms.cpp
collect: relinking
collect: recompiling zm_comms.cpp
collect: relinking
/usr/local/lib/libavformat.a(matroskadec.o): In function `matroska_decode_buffer':
/usr/local/ffmpeg/libavformat/matroskadec.c:917: undefined reference to `BZ2_bzDecompressInit'
/usr/local/ffmpeg/libavformat/matroskadec.c:926: undefined reference to `BZ2_bzDecompress'
/usr/local/ffmpeg/libavformat/matroskadec.c:929: undefined reference to `BZ2_bzDecompressEnd'
collect2: ld returned 1 exit status
make[2]: *** [zmc] Error 1
make[2]: Leaving directory `/usr/local/ZoneMinder-1.24.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/ZoneMinder-1.24.1'
make: *** [all] Error 2
Where can I go from here? I think I'm maybe almost there...!

Barney.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Looks as if ffmpeg was built with out bz2 support.
Get the headers for bz2 ( usually something like bzip2-devel) and rebuild ffmpeg.
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

Hmmm...

Debian doesn't have a bzip2-devel package....
I tried rebuilding ffmpeg with

Code: Select all

--enable-gpl --enable-swscale --enable-bzlib
without success, so I tried downloading bzip2-devel-1.0.5-1.fc9.i386.rpm and converting it to a .deb using alien. Still no joy...

I realise this is over the boundary into ffmpeg territory, but am I missing something simple?
barneyward
Posts: 21
Joined: Sat Jun 16, 2007 8:51 pm

Post by barneyward »

Aha! Oho! Wait!!
I installed the Debian ffmpeg package and tried

Code: Select all

./configure --with-webuser=www-data --with-webdir=/var/www/barneyward/zm --with-cgidir=/usr/local/cgi-bin --with-webgroup=www-data ZM_SSL_LIB=openssl --with-ffmpeg=/usr/local
Which didn't work, but

Code: Select all

./configure --with-webuser=www-data --with-webdir=/var/www/barneyward/zm --with-cgidir=/usr/local/cgi-bin --with-webgroup=www-data ZM_SSL_LIB=openssl
worked just fine!

Thanks for all your help!!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

bzip2 is a common application, In Debian it's libbz2-dev

That should get you movin movin ;)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Glad to see you got it going and that Debian has updated their ffmpeg package :D
Locked