Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2011 22:02:44 -0500
From:      Sahil Tandon <sahil+freebsd-ports@tandon.net>
To:        freebsd-ports@freebsd.org
Cc:        vsevolod@FreeBSD.org, mm@FreeBSD.org
Subject:   Re: www/lighttpd failes to build
Message-ID:  <20111214030243.GA9963@magic.hamla.org>
In-Reply-To: <CANLX3yjPg2CN2sNnFqx5zKnyqJoEzoThP8m=Lf9uM-pO8SsSyw@mail.gmail.com>
References:  <CANLX3yjPg2CN2sNnFqx5zKnyqJoEzoThP8m=Lf9uM-pO8SsSyw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sun, 2011-12-11 at 15:06:07 -0500, Chris Brennan wrote:

> /usr/local/include/ev.h:200: warning: ISO C restricts enumerator values to
> range of 'int'
> /usr/local/include/ev.h:222: error: expected identifier before numeric
> constant
> *** Error code 1

Ah, it seems you are building lighttpd WITH_LIBEV, in which case the
build is reproducibly broken in my environment.  You should either build
WITHOUT_LIBEV (this is the default), or - if you must build with that
option -  try the attached CONFIGURE_ARGS hack[1].  I am not certain
that the latter is a robust solution, so perhaps mm@ can chime in with a
more structural fix.  I've also copied the devel/libev maintainer as
this problem may be related to how lighttpd interacts with the new libev
version.

[1] https://svn.macports.org/changeset/84337

-- 
Sahil Tandon

--ibTvN161/egqYuK8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="lighttpd.txt"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/lighttpd/Makefile,v
retrieving revision 1.102
diff -u -r1.102 Makefile
--- Makefile	23 Sep 2011 22:26:02 -0000	1.102
+++ Makefile	14 Dec 2011 02:54:22 -0000
@@ -127,7 +127,7 @@
 .endif
 
 .if defined(WITH_LIBEV)
-CONFIGURE_ARGS+=	--with-libev=${LOCALBASE}
+CONFIGURE_ARGS+=	--with-libev=${LOCALBASE} ac_cv_func_kqueue=no
 LIB_DEPENDS+=		ev.4:${PORTSDIR}/devel/libev
 .endif
 

--ibTvN161/egqYuK8--



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