From owner-freebsd-ports@freebsd.org Fri Oct 28 09:17:59 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 D0C70C24D5B for ; Fri, 28 Oct 2016 09:17:59 +0000 (UTC) (envelope-from cedric@precidata.com) Received: from ne6-sys-email.precidata.net (ne-6.precidata.com [157.26.74.6]) (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 59D65C91 for ; Fri, 28 Oct 2016 09:17:57 +0000 (UTC) (envelope-from cedric@precidata.com) Received: from ne6-sys-proxy.precidata.net (ne6-sys-proxy.precidata.net [127.1.0.13]) by ne6-sys-email.precidata.net (OpenSMTPD) with ESMTP id 67ab432e; Fri, 28 Oct 2016 11:11:15 +0200 (CEST) From: Cedric Berger Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Date: Fri, 28 Oct 2016 11:11:15 +0200 Subject: lighttpd 1.4.42 update does not work with FreeBSD 9.3 Message-Id: <1FFF4A75-E06F-492A-99E5-E381E0FB753C@precidata.com> To: freebsd-ports@freebsd.org, pkubaj@anongoth.pl X-Mailer: Apple Mail (2.3251) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 09:17:59 -0000 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=E2=80=9D=20 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 =3D=3D pipe(pipefd) \ && 0 =3D=3D fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) \ && 0 =3D=3D 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. Thanks, Cedric