Fw: FYI: devel/libevent can break www/spdylay

Baptiste Daroussin bapt at FreeBSD.org
Tue Jun 10 13:06:45 UTC 2014


On Tue, Jun 10, 2014 at 02:03:07PM +0100, Kostas Peletidis via freebsd-ports wrote:
> 
> 
> Forwarding to freebsd-ports in case someone else finds it useful.
> 
> 
> On Tuesday, 10 June 2014, 13:35, Kostas Peletidis <kpeletidis at yahoo.com> wrote:
>  
> 
> >
> >
> >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 helpful. If any ports experts could help identify the root problem and maybe the best solution that would be great.
> >
> >
> >========
> >
> >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).
> >========
> >
> >
> >DETAILS:
> >----------------
> >I noticed that www/spdylay "suddenly" wouldn't build correctly, complaining 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'
> >  ev_token_bucket_cfg *rate_limit_cfg;
> >  ^
> >./shrpx_config.h:153:3: error:
>  unknown type name 'ev_token_bucket_cfg'
> >  ev_token_bucket_cfg *worker_rate_limit_cfg;
> >  ^
> >In file included from shrpx_config.cc:42:
> >./shrpx_ssl.h:50:2: error: unknown type name 'bufferevent_rate_limit_group'
> > bufferevent_rate_limit_group *rate_limit_group,
> > ^
> >./shrpx_ssl.h:52:2: error: unknown type name 'evutil_socket_t'
> > evutil_socket_t fd,
> > ^
> >4 errors generated.
> >*** [shrpx_config.o] Error code 1
> >
> >
> >Note that these are libevent data types. Spdylay depends on devel/libevent2.
> >
> >
> >After digging around I found that another port, security/stegdetect, installed devel/libevent as a dependency and www/spdylay stopped building since 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 of what seems to be a conflict between libevent and libevent2. Also, I am not sure if my workaround broke something else.
> >
> >
> >Any comments on what needs to be fixed and how would be appreciated. Thanks.
> >
> >
> >
> >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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20140610/39772b26/attachment.sig>


More information about the freebsd-ports mailing list