From owner-freebsd-multimedia@FreeBSD.ORG Tue Oct 7 09:49:46 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ECDE0106568E for ; Tue, 7 Oct 2008 09:49:46 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mx1.freebsd.org (Postfix) with ESMTP id E1F928FC1E for ; Tue, 7 Oct 2008 09:49:44 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (localhost [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id m979ngCn038305; Tue, 7 Oct 2008 12:49:42 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id m979nfVc038303; Tue, 7 Oct 2008 12:49:41 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: Boris Samorodov Date: Tue, 7 Oct 2008 12:49:41 +0300 User-Agent: KMail/1.9.7 References: <200807140910.31062.achill@matrix.gatewaynet.com> <200810071128.24882.achill@matrix.gatewaynet.com> <50761977@bs1.sp34.ru> In-Reply-To: <50761977@bs1.sp34.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200810071249.41708.achill@matrix.gatewaynet.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: FreeBSD port for zoneminder 1.23.3 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 09:49:47 -0000 =CE=A3=CF=84=CE=B9=CF=82 Tuesday 07 October 2008 12:32:06 =CE=BF/=CE=B7 Bor= is Samorodov =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Achilleas Mantzios writes: > > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 07 October 2008 11:07:48 =CE=BF/=CE=B7= Boris Samorodov =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> Achilleas Mantzios writes: > >> > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 07 October 2008 00:10:59 =CE=BF/=CE= =B7 Boris Samorodov =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> >> Hi! > >> >>=20 > >> > > >> > =D0=94=D0=BE=D0=B1=D1=80=D0=BE =D0=A3=D1=82=D1=80=D0=BE! > >>=20 > >> =D0=94=D0=BE=D0=B1=D1=80=D0=BE=D0=B5! ;-) > >>=20 > >> >> Achilleas Mantzios writes: > >> >>=20 > >> >> > In case some one is interested here is the announcement: > >> >> > > >> >> > http://www.zoneminder.com/forums/viewtopic.php?t=3D11965 > >> >>=20 > >> >> I've read the thread and tried to build packages. > >> >>=20 > >> >> First, I had to add a dependency upon gnutls. But I'n not sure > >> >> what kind of dependency it should be. There are build, run and > >> >> library dependencies at the port's Makefile. > >>=20 > >> Can you answer this question? I'd like to suggest a patch to your port > >> but can't do it without that information. > > > > If (it compiles without gnutls) { > > compile it and invoke the programms (run zoneminder); >=20 > I can't run the program since I haven't got a card so far. > But I want to commit your port to the FreeBSD port's tree > and hence try to compile it. >=20 > > if (missing lib dependancies prevents it from running) { > > add those deps as LIB_DEPENDS > > } > > if (other software (e.g. mysql) is needed to run but not exists) { > > add those deps to RUN_DEPENDS > > } > > } > > else { > > add the required s/w as BUILD_DEPENDS > > } > > > > (well, thats my understanding, however i must say that i had gnutls all= the way since day 1, > > and maybe thats why i didnt come across this problem) > > At which part does the whole build or run require gnutls? >=20 > At configure stage: > ----- > checking for pcre.h... yes > checking whether round is declared... yes > checking whether strsignal is declared... yes > test: unexpected operator > checking whether MD5 is declared... no > configure: error: zm requires gnutls/openssl.h - use ZM_SSL_LIB option to= select openssl instead > =3D=3D=3D> Script "configure" failed unexpectedly. > Please report the problem to achill@matrix.gatewaynet.com [maintainer] and > attach the > "/work/a/ports/multimedia/zoneminder/work/ZoneMinder-1.23.3/config.log" > including the output of the failure of your make command. Also, it might = be > a good idea to provide an overview of all packages installed on your syst= em > (e.g. an `ls /var/db/pkg`). > *** Error code 1 >=20 > Stop in /a/ports/multimedia/zoneminder. > ----- Then i think it should go at the bottom of the BUILD_DEPENDS like ${LOCALBASE}/include/gnutls/openssl.h:${PORTSDIR}/security/gnutls:install >=20 > >> >> Second, I've got errors which had been described at the forum. > >> >> As I understand from forum those arrors should disappear with > >> >> current ffmpeg port. But I see those errors for all amd64 > >> > > >> > First off, i dont have neither 7.1 or 8.0 or amd64 handy. > >>=20 > >> The error is identical at all systems, so there is no need to have all > >> of them. BTW, 7-STABLE and 8-CURRENT -i386 suffers the same error: > >> http://bb.ipt.ru/tb/errors/7-bsam-exp/zoneminder-1.23.3,1.log > >> http://bb.ipt.ru/tb/errors/8-bsam-exp/zoneminder-1.23.3,1.log > >>=20 > >> Actually, one shouldn't have all systems at hand -- ports-mgmt/tinderb= ox > >> is a great tool. > > Aha i'll note that. > >>=20 > >> > Actually from what the posters on=20 > >> > http://www.zoneminder.com/forums/viewtopic.php?t=3D11965&postdays=3D= 0&postorder=3Dasc&start=3D15 > >> > say, i conclude that the problem arises with the current ffmpeg port= and not vice versa. > >> > One user (vess) suggested that you rebuild ffmpeg with --enable-swsc= ale, > >> > and remove files/patch_zm_mpeg.cpp. > >> > You can try it and post the results to zoneminder.com forum thread i= n order for future > >> > users to have a complete view of all efforts/successes done. > >>=20 > >> Well, as I'd said, I've read this thread. Actually, many times. ;-) > >> But nothing helped me. > >>=20 > >> Current multimedia/ffmpeg port uses --enable-swscale by default (since > >> 10 Aug 2008) and doesn't have files/patch_zm_mpeg.cpp. That's why I > >> wrote "nothing helps". > >>=20 > > I think you should try to cd /usr/ports/multimedia/zoneminder and try t= o=20 > > traditionally "make install" without any fancy tools, then try to find = out >=20 > :-) > Well, this fancy tool is used to emulate a pure OS. That's why it > found out a missing dependency upon security/gnutls. There is no > difference other than that. But I'll try to compile the port at my > computer. >=20 > > where the source-level incompatibility from previous ffmpeg is lying . >=20 > OK, then you say that I need to compile your port with old > mutimedia/ffmpeg version? >=20 I think/hope that doing that, installing an old version of ffmpeg (e.g. ffm= peg-2007.10.04_4), but it would be better preparing a new patch for the new ffmpeg. > > In that case you should simply prepare your own patch for ffmpeg and ma= ybe update the port > > against the new ffmpeg. > > I dont know if there is a way so as to programmatically have the previo= us patch for > > old ffmpeg and the new one for new. >=20 > We can create a port ffmpeg-old (or else) IF it is needed. Or convince > ffmpeg maintainer to create, say, an OPTION to the port. There are > some ways. But first of all we need to know where is the touble... >=20 Maybe we should locate/isolate the source incompatibility between the ffmpe= g versions and then in the files/patch_zm_mpeg.cpp adjust the cpp code to produce different C code according to the version of ffmpeg, in order to compile with all ffmpeg versions, or introduce a compile time s= witch. > > Sorry i cant help more. Changing the source to make it compile and work= is the only way. > >> >> FreeBSD versions: > >> >> http://tba.bsam.ru/tb/errors/6-bsam-exp/zoneminder-1.23.3,1.log > >> >> http://tba.bsam.ru/tb/errors/7-bsam-exp/zoneminder-1.23.3,1.log > >> >> http://tba.bsam.ru/tb/errors/8-bsam-exp/zoneminder-1.23.3,1.log > >> >>=20 > >> >> Packages were build by ports-mgmt/tinderbox. > >> >> What did I miss? Any help is appresiated. Thanks. >=20 > WBR =2D-=20 Achilleas Mantzios