Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 51684 invoked from network); 11 Jan 2008 06:10:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2008 06:10:26 -0000 Received: (qmail 54444 invoked by uid 500); 11 Jan 2008 06:10:14 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 54386 invoked by uid 500); 11 Jan 2008 06:10:14 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 54368 invoked by uid 99); 11 Jan 2008 06:10:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 22:10:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of joshrotenberg@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 06:09:50 +0000 Received: by fg-out-1718.google.com with SMTP id 16so887323fgg.40 for ; Thu, 10 Jan 2008 22:09:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=hkHdRk13/sDWI8FA7RZQkMJ0ALD9N+aAJrrIzcjstNI=; b=lUwHdZMs80mhQgpFVHFaWYT1hI/9mAloReaUu/y2AyoJYZ0rZAGHN0giXacSGpMlBcwIhd2wXWGk2NdKWy5L3Bl4Fhy/ukDRBSG+ITmOeBHuzxyNRf3EDTSf0zJDp4OQY/WBrpe9VUG4WoI4AJUZCt9r0Fin2PToA4Xoko9YHXg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TLDSfw0pZ+7zAJC7f7n+41gVRRYtvtakhR04xs/UIYu8sj6DjupJ5P9II8656ABmmWkc+sRWec+c9flPu5FYHJ8Rb+2jGFScdFrd8apy+KyH5ehu9Sq0eexXhBYw11rPN262XAsd9Qyc+WoXoYScrR/pE89GuucRcbn8ItPb7kE= Received: by 10.82.181.7 with SMTP id d7mr4626209buf.4.1200031794177; Thu, 10 Jan 2008 22:09:54 -0800 (PST) Received: by 10.82.157.4 with HTTP; Thu, 10 Jan 2008 22:09:54 -0800 (PST) Message-ID: <66d719cf0801102209j27c4fe18l64d3819dddcc1e2d@mail.gmail.com> Date: Thu, 10 Jan 2008 22:09:54 -0800 From: "josh rotenberg" Reply-To: joshrotenberg@gmail.com To: dev@httpd.apache.org Subject: Re: mod_wombat build help In-Reply-To: <21BE3519-FF37-4078-A1AF-28FDC1123FCA@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4DDE755F-B48D-43A9-ABBA-B49093DC58C8@apache.org> <5c902b9e0801012215w17ba81ewf01e1bf9222a1f66@mail.gmail.com> <21BE3519-FF37-4078-A1AF-28FDC1123FCA@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org On linux, the check for lua needs to include libm: (from config.log ..) configure:2689: checking for luaL_newstate in -llua configure:2719: gcc -o conftest -g -O2 -L/home/jrotenberg/src/lua-5.1.2//lib conftest.c -llua >&5 /home/jrotenberg/src/lua-5.1.2//lib/liblua.a(lvm.o): In function `Arith': lvm.c:(.text+0xbeb): undefined reference to `pow' /home/jrotenberg/src/lua-5.1.2//lib/liblua.a(lvm.o): In function `luaV_execute': lvm.c:(.text+0x20c9): undefined reference to `pow' /home/jrotenberg/src/lua-5.1.2//lib/liblua.a(lcode.o): In function `codearith': lcode.c:(.text+0x11ec): undefined reference to `pow' collect2: ld returned 1 exit status configure:2725: $? = 1 the following patch seems to do the trick: Index: build/ac-macros/lua.m4=================================================================== --- build/ac-macros/lua.m4 (revision 610998) +++ build/ac-macros/lua.m4 (working copy) @@ -19,6 +19,7 @@ test_paths="${lua_path}" fi +AC_CHECK_LIB([m], [pow], lib_m=" -lm") for x in $test_paths ; do AC_MSG_CHECKING([for lua.h in ${x}/include/lua5.1]) if test -f ${x}/include/lua5.1/lua.h; then @@ -26,7 +27,7 @@ save_CFLAGS=$CFLAGS save_LDFLAGS=$LDFLAGS CFLAGS="$CFLAGS" - LDFLAGS="-L$x/lib $LDFLAGS" + LDFLAGS="-L$x/lib $LDFLAGS $lib_m" AC_CHECK_LIB(lua5.1, luaL_newstate, [ LUA_LIBS="-L$x/lib -llua5.1" @@ -44,7 +45,7 @@ save_CFLAGS=$CFLAGS save_LDFLAGS=$LDFLAGS CFLAGS="$CFLAGS" - LDFLAGS="-L$x/lib $LDFLAGS" + LDFLAGS="-L$x/lib $LDFLAGS $lib_m" AC_CHECK_LIB(lua, luaL_newstate, [ LUA_LIBS="-L$x/lib -llua" On Jan 3, 2008 6:42 AM, Brian McCallister wrote: > > On Jan 1, 2008, at 10:15 PM, Justin Erenkrantz wrote: > > > On Dec 31, 2007 5:12 PM, Brian McCallister wrote: > >> If anyone is familiar with autconf and modules, I would *love* if > >> that > >> person could take a look at helping me clean up mod_wombat's build, > >> which is presently a mess. > >> > >> I, to be honest, don't understand enough automake/autoconf + apxs to > >> know what needs doing, so will just say... please help? > > > > See below. If you'd like, I can just commit it. (It's not perfect, > > but it'll build out-of-the-box on Leopard.) > > Please go ahead and apply it. > > THANKS! > > -Brian > >