From owner-freebsd-apache@FreeBSD.ORG Fri Jun 20 20:52:16 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 3AD45C8A for ; Fri, 20 Jun 2014 20:52:16 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C378B2A23 for ; Fri, 20 Jun 2014 20:52:15 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MaIsi-1XHx1i1Do0-00JtQ5; Fri, 20 Jun 2014 22:52:06 +0200 Message-ID: <53A49EF6.1090505@gmx.de> Date: Fri, 20 Jun 2014 22:52:06 +0200 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Peter Olsson Subject: Re: apache24 broken after change from lua to lua51? References: <20140620154954.GL52337@pol-server.leissner.se> In-Reply-To: <20140620154954.GL52337@pol-server.leissner.se> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:gL8tmkPd/vHvK8rahqhWGzRLm+e2jvM+XA34oGJQ96MRZvdOYWm IUQoPt6AgE1a6BMdwGpDHrJ1L0e1JUORzUPMq0pkYjLl4ntl+jo64Zsv0ubGca31WJClbI7 f3mHUvz0tFLJWOf4MHniGBkBd08+P6DTXqSnRgDywL2IZEFFV+UV35EK01TunL0FqlIPh72 4mHLidzOs7n+yyaT9m13Q== Cc: Jason Hellenthal , 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: Fri, 20 Jun 2014 20:52:16 -0000 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