From owner-freebsd-ports@FreeBSD.ORG Sun Nov 4 21:40:05 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C102BDD for ; Sun, 4 Nov 2012 21:40:05 +0000 (UTC) (envelope-from se@freebsd.org) Received: from nm5.bullet.mail.ird.yahoo.com (nm5.bullet.mail.ird.yahoo.com [77.238.189.62]) by mx1.freebsd.org (Postfix) with ESMTP id 095E28FC16 for ; Sun, 4 Nov 2012 21:40:04 +0000 (UTC) Received: from [77.238.189.51] by nm5.bullet.mail.ird.yahoo.com with NNFMP; 04 Nov 2012 21:39:58 -0000 Received: from [217.146.188.213] by tm4.bullet.mail.ird.yahoo.com with NNFMP; 04 Nov 2012 21:39:58 -0000 Received: from [127.0.0.1] by smtp109.mail.ird.yahoo.com with NNFMP; 04 Nov 2012 21:39:58 -0000 X-Yahoo-Newman-Id: 124351.52623.bm@smtp109.mail.ird.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: QQCh7FMVM1mT2QkYAwAc_K7bWEI6.j3pwctZpo5RCOlrccg s34RY6aWcMeHDZqCLn.auToBCQSI1q.b.qzBIEUdMZQZg.26kQnupUsANcrc wVdaODFFQiBANtr0mx7PJ7Y4Cf8dGok_kCRMxzRzSf1ZqsioMOBcgA0tbFy8 csn3kw5ImQHMHqDrC6HVgMGl6XyuD80_MiCOy._FZw30O5pV0roqttcgz5FI 9ks8oS53VTyl6WR_3s3fM11ZM5QpbhBICa.HpAHoHclvuWFVUKzCH.QXC4vF uM6PTAfJJVDgZQlttrGBUMjovwehkTvVDhrYt5KRTj3TMyfCA_Gt.BA7b3DU 3NzMp9Xk4GeJn1KPpxDrbahqKiubu3OOInD_SJn6vI1Ydpeuhc_V6faFyV0u cWCCchKDY6b1WpBHcr5n72zIN9uLHpaFWwZpN.4x.397o X-Yahoo-SMTP: iDf2N9.swBDAhYEh7VHfpgq0lnq. Received: from [192.168.119.18] (se@87.153.40.237 with plain) by smtp109.mail.ird.yahoo.com with SMTP; 04 Nov 2012 13:39:58 -0800 PST Message-ID: <5096E0AD.1060504@freebsd.org> Date: Sun, 04 Nov 2012 22:39:57 +0100 From: Stefan Esser User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: FreeBSD 10.0-CURRENT/amd64 r242305: www/apache22: setfib: NO: invalid FIB (max 0) References: <508E824C.3010503@zedat.fu-berlin.de> <508E8B55.1030403@gwdg.de> <508F8FB1.6040902@zedat.fu-berlin.de> In-Reply-To: <508F8FB1.6040902@zedat.fu-berlin.de> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Rainer Hurling , Ports FreeBSD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2012 21:40:05 -0000 Am 30.10.2012 09:28, schrieb O. Hartmann: > Am 10/29/12 14:57, schrieb Rainer Hurling: >> Am 29.10.2012 14:19 (UTC+1) schrieb O. Hartmann: >>> Hello world. >>> >>> With the most recent FreeBSD 10.0-CURRENT/amd64 r242305, CLAN >>> buildworld and with libc++/c++11 compiled, I can not start the >>> Apache 2.22 webserver anymore and receive this error on all >>> boxes: >>> >>> >>> service apache22 restart Performing sanity check on apache22 >>> configuration: Syntax OK apache22 not running? (check >>> /var/run/httpd.pid). Performing sanity check on apache22 >>> configuration: Syntax OK Starting apache22. setfib: NO: invalid >>> FIB (max 0) /usr/local/etc/rc.d/apache22: WARNING: failed to >>> start apache22 >> >> I don't know, if this is intended. But the following entry in >> /etc/rc.conf helps restarting the server: >> >> apache22_fib=0 >> >> This is mentioned in the updated rc.conf(5). >> > > Thanks. This helped and seems to resolve the problem. Yes, but does not fix the underlying problem. r242184 added setfib(1) support to rc.subr and assumes, that any non-blank value is a FIB number. But the RC script for apache sets "apache_fib" to "NO" if it does not contain a FIB number. This leads to a comamnd "setfib -F NO apache" and setfib complains about the non-zero value. I assume that the apache RC script should be modified to not pass apache22_fib="NO" for the case of no FIB. OTOH, the code in rc.subr could be changed to accept "NO" as equivalent to an empty value of the FIB variable. Setting "apache22_fib=0" just hides the problem. It does not harm, but the default of not specifying a FIB should just work. Regards, STefan PS: I'll open a PR ...