From owner-freebsd-apache@FreeBSD.ORG Tue Feb 11 05:43:37 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 EA5FEF05 for ; Tue, 11 Feb 2014 05:43:37 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 86F781782 for ; Tue, 11 Feb 2014 05:43:37 +0000 (UTC) Received: from [192.168.0.100] ([87.139.233.65]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M2ckv-1VN3wN00eL-00sPUR for ; Tue, 11 Feb 2014 06:43:30 +0100 Message-ID: <52F9B884.8010600@gmx.de> Date: Tue, 11 Feb 2014 06:43:32 +0100 From: olli hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: apache@freebsd.org Subject: Re: luasocket port References: <20140211021320.GC8859@redundancy.redundancy.org> In-Reply-To: <20140211021320.GC8859@redundancy.redundancy.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:x63BdT6EGXbBBy3AN1Vo0fb3UFGFip0zUiEcmx3ET5ue4FJWqd3 jFj3iX/MP3UuawyQT17ZG/2IlfehRksiaeg3G37SGK2fFOZqqFO+EDhk/1yzX5My6DtvQdC S21TkSVb5lw00+hH+7mtWqsXJRjceh91NWNpL+OcvH1XiyFBN6ixplNYTzBZdUP9zkcPmT/ fUVxqMDchXVYKT2NRrkSQ== Cc: Benjamin Podszun , David Thiel X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 05:43:38 -0000 On 2014-02-11 03:13, David Thiel wrote: > Hello apache, > > I've updated the luasocket port to use the updated version, 3.0rc1, > which adds IPv6 support; I also removed some obsolete compatibility > stubs and added stage support. I've tested it with Prosody and it > appears to work fine. If you have no objections, I'd like to go ahead > and commit the update. > > The one thing I don't understand in the current port is > patch-src_buffer_c -- it simply seems to rename a few functions, putting > "ls_" in front of them. This doesn't seem necessary; does anyone know > what purpose this serves? > Hi David, It seems the 'ls_' prefix fixes a name space clash with mod_magnet from www/lighttpd. I suspect the name space clash is still an issue. Perhaps the following information helps. # svn log -r260028 files/patch-src_buffer_c ------------------------------------------------------------------------ r260028 | pgollucci | 2010-08-26 20:27:16 +0200 (Thu, 26 Aug 2010) | 6 lines - namespace clash with www/lighttpd mod_magnet upstream is gone, but the port is still quite useful PR: ports/138055 Submitted by: Robert Nagy ------------------------------------------------------------------------ Summary from PR 138055. >Synopsis: net/luasocket namespace clash with www/lighttpd mod_magnet >Description: Basically - luasocket defines buffer_init(); which is common enough to be defined elsewhere and it is defined in mod_magnet, so you end up with a SIGSEGV. >How-To-Repeat: Write a lua script that uses luasocket and try to use it with mod_magnet. -- Regards, olli