FreeBSD port for 1.23.3

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

IPC and jail are a rather peculiar combination.
be sure to set
security.jail.sysvipc_allowed to 1
(however, "officially" the above is not recommended, security wise).
In FreeBSD IPC and jails are a long unsolved problem (which has affected
the use of PostgreSQL under jails), and is inherent due to the fact that jails
were rather a security concept than a full blown virtual machine.
Having said that, it is amazing how much things jails can do compared
to chroot. Their only limitation, from my point of view is IPC.
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

achix wrote:IPC and jail are a rather peculiar combination.
be sure to set
security.jail.sysvipc_allowed to 1
(however, "officially" the above is not recommended, security wise).
In FreeBSD IPC and jails are a long unsolved problem (which has affected
the use of PostgreSQL under jails), and is inherent due to the fact that jails
were rather a security concept than a full blown virtual machine.
Having said that, it is amazing how much things jails can do compared
to chroot. Their only limitation, from my point of view is IPC.

Yeah jails have a few silly limitations.

This explains why my tinkering with kern.ip* sysctl's was not able to solve the "unknown shared memory id" issue, I'll post more tomorrow along with the results from your new make file. Thanks.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

Ok, we must leave jails out for the moment, and be sure that we have a full working
zoneminder port.
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

When using the new Makefile, I get this

Code: Select all

"Makefile", line 69: Need an operator
"Makefile", line 70: Need an operator
"Makefile", line 71: Need an operator
"Makefile", line 75: Missing dependency operator
"Makefile", line 76: Missing dependency operator
"Makefile", line 77: Missing dependency operator
"Makefile", line 78: Missing dependency operator
"Makefile", line 79: Missing dependency operator
"Makefile", line 80: Missing dependency operator
"Makefile", line 81: Missing dependency operator
"Makefile", line 82: Missing dependency operator
"Makefile", line 83: Missing dependency operator
"Makefile", line 84: Missing dependency operator
"Makefile", line 86: Need an operator
make: fatal errors encountered -- cannot continue
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

now I can't seem to make it compile with the old make file on a new system.

uname

Code: Select all

 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:18:52 UTC 2008     root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
Installed ports

Code: Select all

zoneminder# pkg_info
apache-1.3.41       The extremely popular Apache http server. Very fast, very c
autoconf-2.61_2     Automatically configure source code on many Un*x platforms
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.5_4,1    GNU Standards-compliant Makefile generator (1.5)
automake-wrapper-20071109 Wrapper script for GNU automake
djbfft-0.76_2       An extremely fast library for floating-point convolution
expat-2.0.1         XML 1.0 parser written in C
faad2-2.6.1,1       MPEG-2 and MPEG-4 AAC audio decoder
ffmpeg-2008.07.27_1 Hyper fast realtime audio/video encoder/converter, streamin
gettext-0.17_1      GNU gettext package
gmake-3.81_3        GNU version of 'make' utility
gnutls-2.4.1        GNU Transport Layer Security library
gpac-libgpac-0.4.4,1 Gpac MPEG-4 Systems library and headers
help2man-1.36.4_2   Automatically generating simple manual pages from program o
jbigkit-1.6         Lossless compression for bi-level images such as scanned pa
jpeg-6b_4           IJG's jpeg compression utilities
liba52-0.7.4_2      A free library for decoding ATSC A/52 streams, aka AC-3
libexecinfo-1.1_1   A library for inspecting program's backtrace
libgcrypt-1.4.1_1   General purpose crypto library based on code used in GnuPG
libgpg-error-1.6_1  Common error values for all GnuPG components
libiconv-1.11_1     A character set conversion library
libogg-1.1.3,4      Ogg bitstream library
libtheora-1.0.b2    Theora video codec for the Ogg multimedia streaming system
libtool-1.5.26      Generic shared library support script
libvorbis-1.2.0_2,3 Audio compression codec library
libxml2-2.6.32      XML parser library for GNOME
m4-1.4.11,1         GNU m4
mysql-client-5.0.51a Multithreaded SQL database (client)
mysql-server-5.0.51a Multithreaded SQL database (server)
netpbm-10.26.55     A toolkit for conversion of images between different format
p5-Archive-Tar-1.38_1 Perl module for creation and manipulation of tar files
p5-Archive-Zip-1.23 Perl module to create, manipulate, read, and write Zip arch
p5-Authen-SASL-2.12 Perl5 module for SASL authentication
p5-Compress-Raw-Zlib-2.012 Low-Level Interface to zlib compression library
p5-Compress-Zlib-2.012 Perl5 interface to zlib compression library
p5-Convert-BinHex-1.119 Perl module to extract data from Macintosh BinHex files
p5-DBD-mysql50-4.006 MySQL 5.0 driver for the Perl5 Database Interface (DBI)
p5-DBI-1.60.4       The perl5 Database Interface.  Required for DBD::* modules
p5-Date-Manip-5.44  Perl5 module containing date manipulation routines
p5-Digest-1.15      Modules that calculate message digests
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.36  Perl5 interface to the MD5 algorithm
p5-Digest-SHA1-2.11 Perl interface to the SHA-1 Algorithm
p5-Email-Date-Format-1.002 Produce RFC 2822 date strings
p5-File-Temp-0.20   Perl5 module to generate temporary files or directories saf
p5-File-Which-0.05  Portable implementation of `which' in Perl
p5-HTML-Parser-3.56_1 Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20 Some useful data table in parsing HTML
p5-IO-Compress-Base-2.012 Base Class for IO::Uncompress modules
p5-IO-Compress-Zlib-2.012 Perl5 interface for reading and writing of (g)zip files
p5-IO-String-1.08   Simplified Perl5 module to handle I/O on in-core strings
p5-IO-Zlib-1.09     IO:: style interface to Compress::Zlib
p5-IO-stringy-2.110 Perl5 module for using IO handles with non-file objects
p5-MIME-Base64-3.07 Perl5 module for Base64 and Quoted-Printable encodings
p5-MIME-Lite-3.02.1 A simple interface for creating (not parsing!) MIME message
p5-MIME-Tools-5.427,2 A set of perl5 modules for MIME
p5-MIME-Types-1.24  Perl extension for determining MIME types
p5-Mail-Tools-2.02  Perl5 modules for dealing with Internet e-mail messages
p5-Net-1.22,1       Perl5 modules to access and use network protocols
p5-PHP-Serialization-0.27 Converting the output of PHP serialize() into the Perl
p5-PathTools-3.2701 A Perl module for portably manipulating file specifications
p5-Storable-2.18    Persistency for perl data structures
p5-URI-1.37         Perl5 interface to Uniform Resource Identifier (URI) refere
p5-gettext-1.05_2   Message handling functions
p5-libwww-5.805     Perl5 library for WWW access
pcre-7.7            Perl Compatible Regular Expressions library
perl-5.8.8_1        Practical Extraction and Report Language
php5-5.2.6          PHP Scripting Language
pkg-config-0.23_1   A utility to retrieve information about installed libraries
png-1.2.28          Library for manipulating PNG images
screen-4.0.3_5      A multi-screen window manager
texi2html-1.76_1,1  Texinfo to HTML converter
tiff-3.8.2_1        Tools and library routines for working with TIFF images
x264-0.0.20080409_2 Multimedia library and tool for encoding H.264/AVC video st
yasm-0.7.1_1        A complete rewrite of the NASM assembler
zoneminder#
Compile error:

Code: Select all

zoneminder# make
===>  Building for zoneminder-1.23.3,1
/bin/cp /usr/ports/multimedia/zoneminder/files/videodev.h /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
/bin/cp /usr/ports/multimedia/zoneminder/files/zm_fbsd_camera.cpp /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
/bin/cp /usr/ports/multimedia/zoneminder/files/zm_fbsd_camera.h /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
make  all-recursive
Making all in src
cd .. && /bin/sh ./config.status src/zm_config.h
config.status: creating src/zm_config.h
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_monitor.h:26,
                 from zmc.cpp:27:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zmc.cpp:24:
../config.h:74:1: warning: this is the location of the previous definition
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_stream.h:27,
                 from zm_event.h:36,
                 from zm_zone.h:27,
                 from zm_monitor.h:27,
                 from zmc.cpp:27:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
mv -f .deps/zmc.Tpo .deps/zmc.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_image.cpp:21:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_image.cpp:19:
../config.h:74:1: warning: this is the location of the previous definition
zm_image.cpp: In member function `bool Image::ReadRaw(const char*)':
zm_image.cpp:273: warning: long int format, different type arg (arg 3)
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_stream.o -MD -MP -MF .deps/zm_stream.Tpo -c -o zm_stream.o zm_stream.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_stream.cpp:23:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_monitor.h:26,
                 from zm_stream.cpp:24:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_stream.cpp:22:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_stream.Tpo .deps/zm_stream.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_event.cpp:32:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_event.h:35,
                 from zm_event.cpp:34:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_event.cpp:30:
../config.h:74:1: warning: this is the location of the previous definition
zm_event.cpp: In constructor `Event::Event(Monitor*, timeval, const char*, const char*)':
zm_event.cpp:58: error: invalid conversion from `long int*' to `const time_t*'
zm_event.cpp:58: error:   initializing argument 1 of `tm* localtime(const time_t*)'
zm_event.cpp: In destructor `Event::~Event()':
zm_event.cpp:168: error: invalid conversion from `long int*' to `const time_t*'
zm_event.cpp:168: error:   initializing argument 1 of `tm* localtime(const time_t*)'
zm_event.cpp: In member function `bool EventStream::loadInitialEventData_t(int, time_t)':
zm_event.cpp:474: warning: long int format, time_t arg (arg 5)
zm_event.cpp:474: warning: long int format, time_t arg (arg 5)
zm_event.cpp: In member function `virtual void EventStream::processCommand(const StreamBase::CmdMsg*)':
zm_event.cpp:897: warning: long int format, time_t arg (arg 4)
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder.
zoneminder#
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

6.3 amd64 seems to fail now also.

uname

Code: Select all

6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 01:31:10 UTC 2008     root@palmer.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
Installed ports

Code: Select all

zoneminder64# pkg_info
apache-1.3.41       The extremely popular Apache http server. Very fast, very c
autoconf-2.61_2     Automatically configure source code on many Un*x platforms
autoconf-wrapper-20071109 Wrapper script for GNU autoconf
automake-1.5_4,1    GNU Standards-compliant Makefile generator (1.5)
automake-wrapper-20071109 Wrapper script for GNU automake
djbfft-0.76_2       An extremely fast library for floating-point convolution
expat-2.0.1         XML 1.0 parser written in C
faad2-2.6.1,1       MPEG-2 and MPEG-4 AAC audio decoder
ffmpeg-2008.07.27_1 Hyper fast realtime audio/video encoder/converter, streamin
gettext-0.17_1      GNU gettext package
gmake-3.81_3        GNU version of 'make' utility
gnutls-2.4.1        GNU Transport Layer Security library
gpac-libgpac-0.4.4,1 Gpac MPEG-4 Systems library and headers
help2man-1.36.4_2   Automatically generating simple manual pages from program o
jbigkit-1.6         Lossless compression for bi-level images such as scanned pa
jpeg-6b_4           IJG's jpeg compression utilities
liba52-0.7.4_2      A free library for decoding ATSC A/52 streams, aka AC-3
libexecinfo-1.1_1   A library for inspecting program's backtrace
libgcrypt-1.4.1_1   General purpose crypto library based on code used in GnuPG
libgpg-error-1.6_1  Common error values for all GnuPG components
libiconv-1.11_1     A character set conversion library
libogg-1.1.3,4      Ogg bitstream library
libtheora-1.0.b2    Theora video codec for the Ogg multimedia streaming system
libtool-1.5.26      Generic shared library support script
libvorbis-1.2.0_2,3 Audio compression codec library
libxml2-2.6.32      XML parser library for GNOME
m4-1.4.11,1         GNU m4
mysql-client-5.0.51a Multithreaded SQL database (client)
mysql-server-5.0.51a Multithreaded SQL database (server)
netpbm-10.26.55     A toolkit for conversion of images between different format
p5-Archive-Tar-1.38_1 Perl module for creation and manipulation of tar files
p5-Archive-Zip-1.23 Perl module to create, manipulate, read, and write Zip arch
p5-Authen-SASL-2.12 Perl5 module for SASL authentication
p5-Compress-Raw-Zlib-2.012 Low-Level Interface to zlib compression library
p5-Compress-Zlib-2.012 Perl5 interface to zlib compression library
p5-Convert-BinHex-1.119 Perl module to extract data from Macintosh BinHex files
p5-DBD-mysql50-4.006 MySQL 5.0 driver for the Perl5 Database Interface (DBI)
p5-DBI-1.60.4       The perl5 Database Interface.  Required for DBD::* modules
p5-Date-Manip-5.44  Perl5 module containing date manipulation routines
p5-Digest-1.15      Modules that calculate message digests
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.36  Perl5 interface to the MD5 algorithm
p5-Digest-SHA1-2.11 Perl interface to the SHA-1 Algorithm
p5-Email-Date-Format-1.002 Produce RFC 2822 date strings
p5-File-Temp-0.20   Perl5 module to generate temporary files or directories saf
p5-File-Which-0.05  Portable implementation of `which' in Perl
p5-HTML-Parser-3.56_1 Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20 Some useful data table in parsing HTML
p5-IO-Compress-Base-2.012 Base Class for IO::Uncompress modules
p5-IO-Compress-Zlib-2.012 Perl5 interface for reading and writing of (g)zip files
p5-IO-String-1.08   Simplified Perl5 module to handle I/O on in-core strings
p5-IO-Zlib-1.09     IO:: style interface to Compress::Zlib
p5-IO-stringy-2.110 Perl5 module for using IO handles with non-file objects
p5-MIME-Base64-3.07 Perl5 module for Base64 and Quoted-Printable encodings
p5-MIME-Lite-3.02.1 A simple interface for creating (not parsing!) MIME message
p5-MIME-Tools-5.427,2 A set of perl5 modules for MIME
p5-MIME-Types-1.24  Perl extension for determining MIME types
p5-Mail-Tools-2.02  Perl5 modules for dealing with Internet e-mail messages
p5-Net-1.22,1       Perl5 modules to access and use network protocols
p5-PHP-Serialization-0.27 Converting the output of PHP serialize() into the Perl
p5-PathTools-3.2701 A Perl module for portably manipulating file specifications
p5-Storable-2.18    Persistency for perl data structures
p5-URI-1.37         Perl5 interface to Uniform Resource Identifier (URI) refere
p5-gettext-1.05_2   Message handling functions
p5-libwww-5.805     Perl5 library for WWW access
pcre-7.7            Perl Compatible Regular Expressions library
perl-5.8.8_1        Practical Extraction and Report Language
php5-5.2.6          PHP Scripting Language
pkg-config-0.23_1   A utility to retrieve information about installed libraries
png-1.2.28          Library for manipulating PNG images
texi2html-1.76_1,1  Texinfo to HTML converter
tiff-3.8.2_1        Tools and library routines for working with TIFF images
x264-0.0.20080409_2 Multimedia library and tool for encoding H.264/AVC video st
yasm-0.7.1_1        A complete rewrite of the NASM assembler
zoneminder64#
Compile error:

Code: Select all

zoneminder64# make
===>  Building for zoneminder-1.23.3,1
/bin/cp /usr/ports/multimedia/zoneminder/files/videodev.h /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
/bin/cp /usr/ports/multimedia/zoneminder/files/zm_fbsd_camera.cpp /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
/bin/cp /usr/ports/multimedia/zoneminder/files/zm_fbsd_camera.h /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src
make  all-recursive
Making all in src
cd .. && /bin/sh ./config.status src/zm_config.h
config.status: creating src/zm_config.h
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zmc.o -MD -MP -MF .deps/zmc.Tpo -c -o zmc.o zmc.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_monitor.h:26,
                 from zmc.cpp:27:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zmc.cpp:24:
../config.h:74:1: warning: this is the location of the previous definition
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_stream.h:27,
                 from zm_event.h:36,
                 from zm_zone.h:27,
                 from zm_monitor.h:27,
                 from zmc.cpp:27:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
mv -f .deps/zmc.Tpo .deps/zmc.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm.o -MD -MP -MF .deps/zm.Tpo -c -o zm.o zm.cpp
mv -f .deps/zm.Tpo .deps/zm.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_image.o -MD -MP -MF .deps/zm_image.Tpo -c -o zm_image.o zm_image.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_image.cpp:21:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_image.cpp:19:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_image.Tpo .deps/zm_image.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_stream.o -MD -MP -MF .deps/zm_stream.Tpo -c -o zm_stream.o zm_stream.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_stream.cpp:23:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_monitor.h:26,
                 from zm_stream.cpp:24:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_stream.cpp:22:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_stream.Tpo .deps/zm_stream.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_event.o -MD -MP -MF .deps/zm_event.Tpo -c -o zm_event.o zm_event.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_event.cpp:32:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_event.h:35,
                 from zm_event.cpp:34:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_event.cpp:30:
../config.h:74:1: warning: this is the location of the previous definition
zm_event.cpp: In member function `bool Event::SendFrameImage(const Image*, bool)':
zm_event.cpp:298: warning: int format, different type arg (arg 2)
zm_event.cpp:298: warning: int format, different type arg (arg 3)
mv -f .deps/zm_event.Tpo .deps/zm_event.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_zone.o -MD -MP -MF .deps/zm_zone.Tpo -c -o zm_zone.o zm_zone.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_zone.h:26,
                 from zm_zone.cpp:22:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_zone.cpp:20:
../config.h:74:1: warning: this is the location of the previous definition
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_stream.h:27,
                 from zm_event.h:36,
                 from zm_zone.h:27,
                 from zm_zone.cpp:22:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
mv -f .deps/zm_zone.Tpo .deps/zm_zone.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_camera.o -MD -MP -MF .deps/zm_camera.Tpo -c -o zm_camera.o zm_camera.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_camera.h:27,
                 from zm_camera.cpp:21:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_camera.cpp:20:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_camera.Tpo .deps/zm_camera.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_fbsd_camera.o -MD -MP -MF .deps/zm_fbsd_camera.Tpo -c -o zm_fbsd_camera.o zm_fbsd_camera.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_camera.h:27,
                 from zm_local_camera.h:26,
                 from zm_fbsd_camera.cpp:33:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_fbsd_camera.cpp:32:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_fbsd_camera.Tpo .deps/zm_fbsd_camera.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_remote_camera.o -MD -MP -MF .deps/zm_remote_camera.Tpo -c -o zm_remote_camera.o zm_remote_camera.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_camera.h:27,
                 from zm_remote_camera.h:25,
                 from zm_remote_camera.cpp:39:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_remote_camera.cpp:38:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_remote_camera.Tpo .deps/zm_remote_camera.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_file_camera.o -MD -MP -MF .deps/zm_file_camera.Tpo -c -o zm_file_camera.o zm_file_camera.cpp
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_camera.h:27,
                 from zm_file_camera.h:23,
                 from zm_file_camera.cpp:35:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_file_camera.cpp:34:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_file_camera.Tpo .deps/zm_file_camera.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_monitor.o -MD -MP -MF .deps/zm_monitor.Tpo -c -o zm_monitor.o zm_monitor.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_monitor.cpp:26:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
In file included from jinclude.h:20,
                 from zm_jpeg.h:22,
                 from zm_image.h:33,
                 from zm_monitor.h:26,
                 from zm_monitor.cpp:28:
/usr/local/include/jconfig.h:12:1: warning: "HAVE_STDLIB_H" redefined
In file included from zm_config.h:20,
                 from zm.h:28,
                 from zm_monitor.cpp:24:
../config.h:74:1: warning: this is the location of the previous definition
mv -f .deps/zm_monitor.Tpo .deps/zm_monitor.Po
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -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
c++ -DHAVE_CONFIG_H -I. -I..   -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include  -I/usr/local/include/ -MT zm_mpeg.o -MD -MP -MF .deps/zm_mpeg.Tpo -c -o zm_mpeg.o zm_mpeg.cpp
In file included from /usr/local/include/ffmpeg/avformat.h:40,
                 from zm_mpeg.h:29,
                 from zm_mpeg.cpp:24:
/usr/local/include/libavcodec/avcodec.h:2353: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
/usr/local/include/libavcodec/avcodec.h:2363: warning: `ImgReSampleContext' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2347)
zm_mpeg.cpp: In destructor `VideoStream::~VideoStream()':
zm_mpeg.cpp:281: error: cannot convert `ByteIOContext**' to `ByteIOContext*' for argument `1' to `int url_fclose(ByteIOContext*)'
zm_mpeg.cpp: In member function `double VideoStream::EncodeFrame(uint8_t*, int, bool, unsigned int)':
zm_mpeg.cpp:325: warning: `img_convert' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2515)
zm_mpeg.cpp:325: warning: `img_convert' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:2515)
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/src.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3.
*** Error code 1

Stop in /usr/ports/multimedia/zoneminder.
zoneminder64#
:(
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

ffmpeg was JUST updated Sunday, I bet that has something to do with it, although I've disabled --with-ffmpeg.

EDIT:

Confirmed, it appears zoneminder's code needs udpated to support the current version of ffmpeg.

ffmpeg-2007.10.04_4 works for me.
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

Thats the version of ffmpeg in my 7.0 as well.
So you have it working in 6.3?

P.S.
Hehe, it seems FreeBSD ports are getting updated too fast, for the rest of the world
to follow :P
Novice
Posts: 11
Joined: Sat Jul 26, 2008 1:10 am

Post by Novice »

I was not able to get it to compile with --with-ffmpeg, although the new version being installed still would not let zoneminder compile, and I seemed to only be able to install it on amd64 6.3, not i386. I'll continue monkeying and post some results.

Thanks
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

If you downgrade ffmpeg then i guess you have no problem compiling?
vess
Posts: 1
Joined: Wed Jul 30, 2008 4:58 pm
Location: Bulgaria, Sofia

ffmpeg-2008.07.27_1 and zoneminder

Post by vess »

Hi,
I installed zoneminder 1.23.3 today, after last update of ffmpeg.
---
FreeBSD cs 7.0-STABLE FreeBSD 7.0-STABLE #7: Fri Jul 11 17:21:05 EEST 2008
---
FFmpeg version SVN-r14424, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --cc=cc --prefix=/usr/local --enable-swscale --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad --enable-libfaadbin --disable-libamr-nb --disable-libamr-wb --disable-mmx --enable-libgsm --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
libavutil version: 49.7.0
libavcodec version: 51.61.0
libavformat version: 52.18.0
libavdevice version: 52.0.0
built on Jul 30 2008 19:43:33, gcc: 4.2.1 20070719 [FreeBSD]
FFmpeg SVN-r14424
libavutil 3213056
libavcodec 3357952
libavformat 3412480
libavdevice 3407872

:idea:
Successful compilation require to build ffmpeg with --enable-swscale. Remove files/patch_zm_mpeg.cpp and apply this path:

Code: Select all

-- /usr/ports/multimedia/ffmpeg/Makefile.orig  2008-07-30 19:52:43.000000000 +0300
+++ /usr/ports/multimedia/ffmpeg/Makefile       2008-07-30 19:39:10.000000000 +0300
@@ -59,11 +59,13 @@
        libavutil/random.h \
        libavutil/rational.h \
        libavutil/sha1.h \
+       libswscale/swscale.h \
        libpostproc/postprocess.h

 .include <bsd>

 CONFIGURE_ARGS+=--cc="${CC}" --prefix="${PREFIX}" \
+               --enable-swscale \
                --disable-debug \
                --enable-memalign-hack \
                --enable-shared \
I hope it's useful for you.
:wink:
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

In the case of 6.3 the following changes must be made:
Whenever the compiler complaints about smth like:
zm_monitor.cpp:2218: error: invalid conversion from `const long int*' to `const time_t*'
zm_monitor.cpp:2218: error: initializing argument 1 of `tm* localtime(const time_t*)'
then the following change must be made:
strftime( label_time_text, sizeof(label_time_text), label_format, localtime( (time_t *)&ts_time->tv_sec ) );
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

The differences in the two systems is that
in 6.3 (most probably not so correctly) struct timeval resolves to
struct timeval {



long tv_sec;

suseconds_t tv_usec;
};
while in 7.0
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* and microseconds */
};
time_t is defined as int in both systems (i386 always).

i believe if someone defines -D__arm__ in the compilation of the programs which have
the above error, will solve the problem without altering the code.
Or one could make a new patch in the place of the old the patch for src/Makefile.in adding -D__arm__ to the DEFS variable.
That should get the compilation going.
This a harmless hack, i believe.
mch
Posts: 5
Joined: Wed Nov 07, 2007 6:37 pm

Floating point exception ...

Post by mch »

hi
I have installed Your port on my freeBSD7 and it looks work, but I have an another problem with using it.
After new monitor configuration I try to use monitor and I'm getting following error in /var/log/messages:

zms[975]: ERR [Got signal (Floating point exception: 8), crashing]

I'm using IVC-200G cards (Conexant FusionTM 878A x 4)
(http://www.voxtechnologies.com/Industri ... vc200g.htm)

dmesg show my cards properly:

pci2: <PCI bus> on pcib2
bktr0: <BrookTree 878> mem 0xdf000000-0xdf000fff irq 5 at device 4.0 on pci2
bktr0: [GIANT-LOCKED]
bktr0: [ITHREAD]
bktr0: Warning - card vendor 0x0000 (model 0xa155) unknown.
bktr0: Pinnacle/Miro TV, <no> tuner.
...


I've no idea what to do. Please help

Regards
mch
achix
Posts: 146
Joined: Tue Oct 02, 2007 9:38 am
Location: Greece

Post by achix »

did you try with both 'nph-zms' and zms in options->paths?
Does your cam(s)/card(s) work with xawtv (you must stop zm to test that)?
Does your cam(s)/card(s) work at all with zm?

please also, post your monitor definition in zm.
Post Reply