Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2014 14:03:07 +0100 (BST)
From:      Kostas Peletidis <kpeletidis@yahoo.com>
To:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Fw: FYI: devel/libevent can break www/spdylay
Message-ID:  <1402405387.12273.YahooMailNeo@web171305.mail.ir2.yahoo.com>
In-Reply-To: <1402403712.12779.YahooMailNeo@web171302.mail.ir2.yahoo.com>
References:  <1402403712.12779.YahooMailNeo@web171302.mail.ir2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=0A=0AForwarding to freebsd-ports in case someone else finds it useful.=0A=
=0A=0AOn Tuesday, 10 June 2014, 13:35, Kostas Peletidis <kpeletidis@yahoo.c=
om> wrote:=0A =0A=0A>=0A>=0A>Hi,=0A>=0A>=0A>The following is a summary of a=
 little adventure I had recently with the spdylay port. I post it here in t=
he hope that other users might find it helpful. If any ports experts could =
help identify the root problem and maybe the best solution that would be gr=
eat.=0A>=0A>=0A>=3D=3D=3D=3D=3D=3D=3D=3D=0A>=0A>PROBLEM:=0A>---------------=
-=0A>=0A>Port www/spdylay breaks if devel/libevent is installed.=0A>=0A>=0A=
>SOLUTION:=0A>----------------=0A>No clean solution is available yet. A par=
tial solution that involves the removal of devel/libevent is described in t=
he workaround section.=0A>=0A>=0A>=0A>WORKAROUND:=0A>----------------=0A>De=
install devel/libevent (make deinstall) and rebuild www/spdylay (make clean=
 && make).=0A>=3D=3D=3D=3D=3D=3D=3D=3D=0A>=0A>=0A>DETAILS:=0A>-------------=
---=0A>I noticed that www/spdylay "suddenly" wouldn't build correctly, comp=
laining about unknown data types:=0A>=0A>=0A>In file included from shrpx_co=
nfig.cc:25:=0A>./shrpx_config.h:151:3: error: unknown type name 'ev_token_b=
ucket_cfg'=0A>=A0 ev_token_bucket_cfg *rate_limit_cfg;=0A>=A0 ^=0A>./shrpx_=
config.h:153:3: error:=0A unknown type name 'ev_token_bucket_cfg'=0A>=A0 ev=
_token_bucket_cfg *worker_rate_limit_cfg;=0A>=A0 ^=0A>In file included from=
 shrpx_config.cc:42:=0A>./shrpx_ssl.h:50:2: error: unknown type name 'buffe=
revent_rate_limit_group'=0A>=A0bufferevent_rate_limit_group *rate_limit_gro=
up,=0A>=A0^=0A>./shrpx_ssl.h:52:2: error: unknown type name 'evutil_socket_=
t'=0A>=A0evutil_socket_t fd,=0A>=A0^=0A>4 errors generated.=0A>*** [shrpx_c=
onfig.o] Error code 1=0A>=0A>=0A>Note that these are libevent data types. S=
pdylay depends on devel/libevent2.=0A>=0A>=0A>After digging around I found =
that another port, security/stegdetect, installed devel/libevent as a depen=
dency and www/spdylay stopped building since then.=0A>=0A>=0A>In my case re=
moving devel/libevent and the port that depended on it was acceptable since=
 I don't really use it. However, there is still the issue of what seems to =
be a conflict between libevent and libevent2. Also, I am not sure if my wor=
karound broke something else.=0A>=0A>=0A>Any comments on what needs to be f=
ixed and how would be appreciated. Thanks.=0A>=0A>=0A>=0A>Regards,=0A>Kosta=
s=0A>=0A>=0A>
From owner-freebsd-ports@FreeBSD.ORG  Tue Jun 10 13:06:45 2014
Return-Path: <owner-freebsd-ports@FreeBSD.ORG>
Delivered-To: freebsd-ports@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id BC77FDD3
 for <freebsd-ports@freebsd.org>; Tue, 10 Jun 2014 13:06:45 +0000 (UTC)
Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com
 [IPv6:2a00:1450:400c:c00::233])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4E20623CF
 for <freebsd-ports@freebsd.org>; Tue, 10 Jun 2014 13:06:45 +0000 (UTC)
Received: by mail-wg0-f51.google.com with SMTP id x12so4551013wgg.34
 for <freebsd-ports@freebsd.org>; Tue, 10 Jun 2014 06:06:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-type:content-disposition:in-reply-to:user-agent;
 bh=f1B6O9lmBOjnQFvnrlpBvaDO45nN+q5KrcjYSE6DMsk=;
 b=kR9pG8e9XZ44fQBW5VnJvh3hMm1UraCw4uT4lzIw2DIx59gkvvtG0QJ835qkjS6F/B
 8nZXU2cLBrpYPSrf08PjZhLdy/RakiSfnrXgji6mI+Mjqm/8p1T4cO2eVKESdgI4umtY
 amY/aYT+SLFwmYgEl90mXZAHn2r0FAgnY4mZtCsRa4uEzhrldk3UozxlZl3YzLrwBW2q
 eYXboB3bWiQjTZWTBXa+gxg1DoClinbAfXaVjF/iyLgwTa8IkuGV3WcpgYfQmteSkW89
 pwSnUNJnWkaiA290e22i969lGk6ad7oaw7B6iAPdMuHme4qABi7qeNa0VoFOhaWe9nZR
 rPpA==
X-Received: by 10.180.105.72 with SMTP id gk8mr37747294wib.32.1402405603313;
 Tue, 10 Jun 2014 06:06:43 -0700 (PDT)
Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1])
 by mx.google.com with ESMTPSA id l9sm20756096wic.21.2014.06.10.06.06.41
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 10 Jun 2014 06:06:42 -0700 (PDT)
Sender: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Date: Tue, 10 Jun 2014 15:06:39 +0200
From: Baptiste Daroussin <bapt@FreeBSD.org>
To: Kostas Peletidis <kpeletidis@yahoo.com>
Subject: Re: Fw: FYI: devel/libevent can break www/spdylay
Message-ID: <20140610130639.GA91130@ivaldir.etoilebsd.net>
References: <1402403712.12779.YahooMailNeo@web171302.mail.ir2.yahoo.com>
 <1402405387.12273.YahooMailNeo@web171305.mail.ir2.yahoo.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe"
Content-Disposition: inline
In-Reply-To: <1402405387.12273.YahooMailNeo@web171305.mail.ir2.yahoo.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/>;
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Jun 2014 13:06:45 -0000


--G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 10, 2014 at 02:03:07PM +0100, Kostas Peletidis via freebsd-port=
s wrote:
>=20
>=20
> Forwarding to freebsd-ports in case someone else finds it useful.
>=20
>=20
> On Tuesday, 10 June 2014, 13:35, Kostas Peletidis <kpeletidis@yahoo.com> =
wrote:
> =20
>=20
> >
> >
> >Hi,
> >
> >
> >The following is a summary of a little adventure I had recently with the=
 spdylay port. I post it here in the hope that other users might find it he=
lpful. If any ports experts could help identify the root problem and maybe =
the best solution that would be great.
> >
> >
> >=3D=3D=3D=3D=3D=3D=3D=3D
> >
> >PROBLEM:
> >----------------
> >
> >Port www/spdylay breaks if devel/libevent is installed.
> >
> >
> >SOLUTION:
> >----------------
> >No clean solution is available yet. A partial solution that involves the=
 removal of devel/libevent is described in the workaround section.
> >
> >
> >
> >WORKAROUND:
> >----------------
> >Deinstall devel/libevent (make deinstall) and rebuild www/spdylay (make =
clean && make).
> >=3D=3D=3D=3D=3D=3D=3D=3D
> >
> >
> >DETAILS:
> >----------------
> >I noticed that www/spdylay "suddenly" wouldn't build correctly, complain=
ing about unknown data types:
> >
> >
> >In file included from shrpx_config.cc:25:
> >./shrpx_config.h:151:3: error: unknown type name 'ev_token_bucket_cfg'
> >=A0 ev_token_bucket_cfg *rate_limit_cfg;
> >=A0 ^
> >./shrpx_config.h:153:3: error:
>  unknown type name 'ev_token_bucket_cfg'
> >=A0 ev_token_bucket_cfg *worker_rate_limit_cfg;
> >=A0 ^
> >In file included from shrpx_config.cc:42:
> >./shrpx_ssl.h:50:2: error: unknown type name 'bufferevent_rate_limit_gro=
up'
> >=A0bufferevent_rate_limit_group *rate_limit_group,
> >=A0^
> >./shrpx_ssl.h:52:2: error: unknown type name 'evutil_socket_t'
> >=A0evutil_socket_t fd,
> >=A0^
> >4 errors generated.
> >*** [shrpx_config.o] Error code 1
> >
> >
> >Note that these are libevent data types. Spdylay depends on devel/libeve=
nt2.
> >
> >
> >After digging around I found that another port, security/stegdetect, ins=
talled devel/libevent as a dependency and www/spdylay stopped building sinc=
e then.
> >
> >
> >In my case removing devel/libevent and the port that depended on it was =
acceptable since I don't really use it. However, there is still the issue o=
f what seems to be a conflict between libevent and libevent2. Also, I am no=
t sure if my workaround broke something else.
> >
> >
> >Any comments on what needs to be fixed and how would be appreciated. Tha=
nks.
> >
> >
> >
> >Regards,
> >Kostas
> >
The real solution would be to kill libevent and replace it totally with
libevent2 which has a compatibility layer, if anyone is look for a task to =
do,
this is highly needed!

regards,
Bapt

--G4iJoqBmSsgzjUCe
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iEYEARECAAYFAlOXAt8ACgkQ8kTtMUmk6EyvKACgumueoAxlh1l7Bo2E96ffgOVp
Rr4AniB0aUWgPk0vBrNIJ7Z505wdE/C0
=i3Gr
-----END PGP SIGNATURE-----

--G4iJoqBmSsgzjUCe--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1402405387.12273.YahooMailNeo>