Date: Fri, 28 Oct 2016 12:06:51 +0200 From: Guido Falsi <madpilot@FreeBSD.org> To: Cedric Berger <cedric@precidata.com>, freebsd-ports@freebsd.org, pkubaj@anongoth.pl Subject: Re: lighttpd 1.4.42 update does not work with FreeBSD 9.3 Message-ID: <b198daf0-1b11-16ba-cc38-7c2f70551f52@FreeBSD.org> In-Reply-To: <1FFF4A75-E06F-492A-99E5-E381E0FB753C@precidata.com> References: <1FFF4A75-E06F-492A-99E5-E381E0FB753C@precidata.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <madpilot@FreeBSD.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b198daf0-1b11-16ba-cc38-7c2f70551f52>