From owner-freebsd-ports@freebsd.org Fri Oct 28 10:06:56 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E996C2377E for ; Fri, 28 Oct 2016 10:06:56 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34EC31CA for ; Fri, 28 Oct 2016 10:06:55 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3t4zv124V6zbD2; Fri, 28 Oct 2016 12:06:53 +0200 (CEST) Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id S8pRF-Ui32oa; Fri, 28 Oct 2016 12:06:51 +0200 (CEST) Received: from marvin.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Fri, 28 Oct 2016 12:06:51 +0200 (CEST) Subject: Re: lighttpd 1.4.42 update does not work with FreeBSD 9.3 To: Cedric Berger , freebsd-ports@freebsd.org, pkubaj@anongoth.pl References: <1FFF4A75-E06F-492A-99E5-E381E0FB753C@precidata.com> From: Guido Falsi Message-ID: Date: Fri, 28 Oct 2016 12:06:51 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1FFF4A75-E06F-492A-99E5-E381E0FB753C@precidata.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 10:06:56 -0000 On 10/28/16 11:11, Cedric Berger wrote: > Since the update 6 days ago, lighttpd 1.4.42 does not work on FreeBSD 9.3 anymore. > > The binary fails to startup with: > > 2016-10-28 11:06:30: (plugin.c.227) dlopen() failed for: /usr/local/lib/lighttpd/mod_cgi.so /usr/local/lib/lighttpd/mod_cgi.so: Undefined symbol "pipe2” > > mod_cgi.c contains the following horror: > > #ifdef O_CLOEXEC > #define pipe_cloexec(pipefd) pipe2((pipefd), O_CLOEXEC) > #elif defined FD_CLOEXEC > #define pipe_cloexec(pipefd) \ > ( 0 == pipe(pipefd) \ > && 0 == fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) \ > && 0 == fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) \ > ? 0 \ > : -1) > #else > #define pipe_cloexec(pipefd) pipe(pipefd) > #endif > > Which of course is wrong, FreeBSD 9.3 has O_CLOEXEC but no pipe2. > Please file a bug report about this. -- Guido Falsi