Date: Wed, 30 Sep 2015 19:39:00 +0300 From: Violet <violet@sm.msk.ru> To: Kurt Jaeger <lists@opsec.eu> Cc: ports@freebsd.org Subject: Re: ZoneMinder /zmu dies on FreeBSD 10.2 Message-ID: <1696782432.20150930193900@sm.msk.ru> In-Reply-To: <20150929171241.GA5560@home.opsec.eu> References: <74739526.20150929190146@sm.msk.ru> <20150929171241.GA5560@home.opsec.eu>
next in thread | previous in thread | raw e-mail | index | archive | help
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::PrimeC= apture()': zm_remote_camera_rtsp.cpp:(.text+0xa1b): undefined reference to `avcodec_op= en' libzm.a(zm_sdp.cpp.o): In function `SessionDescriptor::generateFormatContex= t() 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_f= ile' 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(ti= mespec*)' 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) >>=20 >> The `zmu' routine permanently dies getting signal 11, no matter how star= ted. >>=20 >> Could anybody point me where to dig? >>=20 >> As for now there is a stable release 1.28.1, as of February 14th, 2015 >> ( http://www.zoneminder.com/downloads ). >>=20 >> 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=3D190268 > where someone already worked on an update. --=20 =D1 =F3=E2=E0=E6=E5=ED=E8=E5=EC, Violet mailto:violet@sm.msk.ru
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1696782432.20150930193900>