ZoneMinder /zmu dies on FreeBSD 10.2

Violet violet at sm.msk.ru
Wed Sep 30 16:39:41 UTC 2015


Hi, Kurt,


I've tried to make the 1.28 compiled.

Patches were rewritten and it can be more or less compiled now, though
I doubt a bit of the MAP_LOCKED:

/usr/ports/multimedia/zoneminder/work/ZoneMinder-1.28.1/src/zm_monitor.cpp:520:85: error: 'MAP_LOCKED' was not declared in this scope

and there was a call of syscall(SYS_gettid) which I'replaces like

-    ThreadException( const std::string &message ) : Exception( stringtf( "(%d) "+message, (long int)syscall(SYS_gettid) ) )
+    ThreadException( const std::string &message ) : Exception( stringtf( "(%d) "+message, (long int)thr_self(0) ) )


The current variant is available here:

http://sm.msk.ru/files/zoneminder128.tar.bz2


However  there  is  a  linking problem and I don't know how to fix it,
never worked with AV library before.


Could you please advise anything?



[ 77%] Linking CXX executable nph-zms
libzm.a(zm_mpeg.cpp.o): In function `VideoStream::SetupCodec(int, int, int, int, int, double)':
zm_mpeg.cpp:(.text+0x2297): undefined reference to `av_new_stream'
libzm.a(zm_mpeg.cpp.o): In function `VideoStream::OpenStream()':
zm_mpeg.cpp:(.text+0x63ae): undefined reference to `avcodec_open'
zm_mpeg.cpp:(.text+0x655c): undefined reference to `av_write_header'
libzm.a(zm_mpeg.cpp.o): In function `VideoStream::~VideoStream()':
zm_mpeg.cpp:(.text+0x9d45): undefined reference to `url_fclose'
libzm.a(zm_remote_camera_rtsp.cpp.o): In function `RemoteCameraRtsp::PrimeCapture()':
zm_remote_camera_rtsp.cpp:(.text+0xa1b): undefined reference to `avcodec_open'
libzm.a(zm_sdp.cpp.o): In function `SessionDescriptor::generateFormatContext() const':
zm_sdp.cpp:(.text+0x12b): undefined reference to `av_alloc_format_context'
zm_sdp.cpp:(.text+0x18e): undefined reference to `av_new_stream'
libzm.a(zm_ffmpeg_camera.cpp.o): In function `FfmpegCamera::OpenFfmpeg()':
zm_ffmpeg_camera.cpp:(.text+0xc48): undefined reference to `av_open_input_file'
zm_ffmpeg_camera.cpp:(.text+0xd2f): undefined reference to `av_find_stream_info'
zm_ffmpeg_camera.cpp:(.text+0xef8): undefined reference to `avcodec_open'
libzm.a(zm_ffmpeg_camera.cpp.o): In function `FfmpegCamera::Capture(Image&)':
zm_ffmpeg_camera.cpp:(.text+0x4bee): undefined reference to `getnanotime(timespec*)'
libzm.a(zm_ffmpeg_camera.cpp.o): In function `FfmpegCamera::CloseFfmpeg()':
zm_ffmpeg_camera.cpp:(.text+0x7e48): undefined reference to `av_close_input_file'
collect2: error: ld returned 1 exit status


You wrote at 2015-09-29, 20:12:41:

> Hi!

>> Trying to get run zoneminder-1.25.0_7 built from ports on
>> FreeBSD 10.2-RELEASE-p3 #0 r288111 (AMD64)
>> 
>> The `zmu' routine permanently dies getting signal 11, no matter how started.
>> 
>> Could anybody point me where to dig?
>> 
>> As for now there is a stable release 1.28.1, as of February 14th, 2015
>> ( http://www.zoneminder.com/downloads ).
>> 
>> Is  it  worth  for  me  to try to update the port to that release and see
>> whether  it  still  fails,  or  it would be better to try to debug the
>> curent port?

> Please try 1.28.1, if it still happens, at least we debug in recent
> code 8-} 1.25 is from 2011...

> Please have a look at

> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190268

> where someone already worked on an update.




-- 
С уважением,
 Violet                          mailto:violet at sm.msk.ru



More information about the freebsd-ports mailing list