ok for MAXINT, i defined it from INT_MAX in limits.h
next error is
Code: Select all
c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/local/include -Wbounded -Wformat -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:36,
from zm_mpeg.h:29,
from zm_event.cpp:32:
/usr/local/include/ffmpeg/avcodec.h:2472: warning: `ImgReSampleContext' is
deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2469)
/usr/local/include/ffmpeg/avcodec.h:2479: warning: `ImgReSampleContext' is
deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2469)
/usr/local/include/ffmpeg/avcodec.h:2483: warning: `ImgReSampleContext' is
deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2469)
/usr/local/include/ffmpeg/avcodec.h:2485: warning: `ImgReSampleContext' is
deprecated (declared at /usr/local/include/ffmpeg/avcodec.h:2469)
In file included from zm_mpeg.h:29,
from zm_event.cpp:32:
/usr/local/include/ffmpeg/avformat.h:292: warning: `AVFrac' is deprecated
(declared at /usr/local/include/ffmpeg/avformat.h:118)
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:83: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: In destructor `Event::~Event()':
zm_event.cpp:168: error: invalid conversion from `long int*' to `const time_t*'
zm_event.cpp: In member function `bool Event::SendFrameImage(const Image*,
bool)':
zm_event.cpp:298: warning: int format, ssize_t arg (arg 2)
zm_event.cpp:298: warning: int format, ssize_t arg (arg 3)
zm_event.cpp: In member function `bool EventStream::loadInitialEventData_t(int,
int)':
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
problem in constructor / destrictor
(like here
http://www.zoneminder.com/forums/viewtopic.php?p=44028)
l.58 is
Code: Select all
struct tm *stime = localtime( &start_time.tv_sec );
i changed it to
Code: Select all
struct tm *stime = localtime( (const time_t *)(&start_time.tv_sec) );
same on line 158
=> solved
next, another header problem, need sys/types.h to defined uid_t for ipc.h here
=> include in configure.in
next
Code: Select all
c++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/local/include -Wall -Wno-sign-compare -I/usr/include -I/usr/l
ocal/include -Wbounded -Wformat -MT zm_user.o -MD -MP -MF .deps/zm_user.Tpo -c -o zm_user.o zm_user.cpp
zm_user.cpp: In function `User* zmLoadAuthUser(const char*, bool)':
zm_user.cpp:193: error: `MD5_DIGEST_LENGTH' undeclared (first use this
function)
zm_user.cpp:193: error: (Each undeclared identifier is reported only once for
each function it appears in.)
zm_user.cpp:213: error: `md5sum' undeclared (first use this function)
*** Error code 1
seems, it comes from openssl/md5.h but from configure and zm_user.h, i work with gnutls.
but there is no MD5_DIGEST_LENGTH in these headers ...
don't understand when HAVE_LIBCRYPTO is defined so openssl/md5.h is included.
=> reorder inclusion
Code: Select all
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*)'
=> depend on the value of ZM_FFMPEG_SVN in zm_mpeg.h
have
$ pkg_info |grep ffmpeg
ffmpeg-20070501p0
=> comment ifdef to have correct situation.
at the end compiling is ok.
still need to see if it works, but have no supported camera for now.
also, finish a correct install, which will also be hard with chrooted apache.
i will send on the forum the port and patches after a bit of polishing.
It would be great if zoneminder devs could include part/all of them in default distribution.