From owner-freebsd-apache@FreeBSD.ORG Sat Jun 21 18:45:06 2014 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D39038BE; Sat, 21 Jun 2014 18:45:06 +0000 (UTC) Received: from mailgate.leissner.se (mailgate.leissner.se [212.3.1.210]) by mx1.freebsd.org (Postfix) with ESMTP id 77476299A; Sat, 21 Jun 2014 18:45:05 +0000 (UTC) Received: from mailgate.leissner.se (localhost [127.0.0.1]) by mailgate.leissner.se (8.14.9/8.14.9) with ESMTP id s5LIiu2g004731; Sat, 21 Jun 2014 20:44:56 +0200 (CEST) (envelope-from pol@leissner.se) Received: (from uucp@localhost) by mailgate.leissner.se (8.14.9/8.14.9/Submit) id s5LIiusw004730; Sat, 21 Jun 2014 20:44:56 +0200 (CEST) (envelope-from pol@leissner.se) Received: from pol.leissner.se(192.71.29.17), claiming to be "pol-server.leissner.se" via SMTP by mailgate.leissner.se, id smtpdAOvx27; Sat Jun 21 20:44:53 2014 Received: from pol-server.leissner.se (localhost [127.0.0.1]) by pol-server.leissner.se (8.14.9/8.14.8) with ESMTP id s5LIirAi034226; Sat, 21 Jun 2014 20:44:53 +0200 (CEST) (envelope-from pol@leissner.se) Received: (from pol@localhost) by pol-server.leissner.se (8.14.9/8.14.7/Submit) id s5LIirl8034225; Sat, 21 Jun 2014 20:44:53 +0200 (CEST) (envelope-from pol@leissner.se) X-Authentication-Warning: pol-server.leissner.se: pol set sender to pol@leissner.se using -f Date: Sat, 21 Jun 2014 20:44:53 +0200 From: Peter Olsson To: olli hauer Subject: Re: apache24 broken after change from lua to lua51? Message-ID: <20140621184453.GT52337@pol-server.leissner.se> References: <20140620154954.GL52337@pol-server.leissner.se> <53A49EF6.1090505@gmx.de> <20140621114719.GQ52337@pol-server.leissner.se> <53A582B5.90209@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53A582B5.90209@gmx.de> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Jason Hellenthal , lx@FreeBSD.org, lua@freebsd.org, apache@FreeBSD.org X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jun 2014 18:45:07 -0000 Excellent, LUA_DEFAULT=5.1 was exactly what I needed. Now I have apache24, lua51, luasocket and luabind installed. Thanks very much! Peter Olsson On Sat, Jun 21, 2014 at 03:03:49PM +0200, olli hauer wrote: > Hi Peter, > > placing the following line in etc/make.conf should > help in your case until all ports are supporting lua52 > > LUA_DEFAULT=5.1 > > But it is possible you have to rebuild again everything > depending already on lua52. > > // olli > > > > On 2014-06-21 13:47, Peter Olsson wrote: > > Thanks, this seems to work. At least the compilation of > > apache24 works now. But I can't install devel/luabind > > or net/luasocket, because they get different errors when > > I change them from USES=lua:51 to USES=lua:52. > > luabind gets a compile error, and luasocket seems to have > > a staging problem. > > > > So the patch I really need is to be able to keep using > > lua51 combined with apache24. I'm not sure if this is a > > question for lua or apache? > > > > (I'm including lx@FreeBSD.org in Cc, as maintainer of > > luasocket.) > > > > Thanks! > > > > Peter Olsson > > > > On Fri, Jun 20, 2014 at 10:52:06PM +0200, olli hauer wrote: > >> On 2014-06-20 17:49, Peter Olsson wrote: > >>> Hello! > >>> > >>> After the change from lua to lua51, compilation of > >>> apache24 fails with this: > >>> > >>> checking for sqrt in -lm... yes > >>> checking for lua.h in /usr/local/include/lua5.1... no > >>> checking for lua.h in /usr/local/include/lua51... yes > >>> checking for luaL_newstate in -llua... no > >>> configure: WARNING: *** Lua 5.1 library not found. > >>> configure: error: Lua 5.1 library is required > >>> > >>> I have this installed: > >>> lua51-5.1.5_7 = up-to-date with index > >>> > >>> I even tried deinstallating lua and let apache24 drag it in, > >>> but that didn't help either. > >>> > >>> I'm using 9.2-RELEASE-p7 with pkgng, and installing with portmaster. > >> > >> > >> The httpd-2.4.x configure script self announce only support for lua5.1 (hard coded). > >> Anyway with the patch below the port builds even with lua5.2. > >> > >> All messages containing lua will report lua5.1 even with lua5.2 because of the hard wired version. > >> After the build a check with the command should display the correct lua version. > >> $ ldd work/stage/usr/local/libexec/apache24/mod_lua* > >> > >> Please test the following patch and report back if mod_lua is working. > >> http://people.freebsd.org/~ohauer/diffs/apache24_lua.diff > >> > >> > >> -- > >> Regards, > >> olli > > -- Peter Olsson pol@leissner.se CCIE #8963 R&S, Security +46 520 500511 Leissner Data AB +46 701 809511