From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 18:18:22 2008 Return-Path: Delivered-To: freebsd-apache@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B648416A41B; Fri, 1 Feb 2008 18:18:22 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (mail.1command.com [75.160.109.226]) by mx1.freebsd.org (Postfix) with ESMTP id 6EADA13C4CE; Fri, 1 Feb 2008 18:18:22 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id m11IIEoe040793; Fri, 1 Feb 2008 10:18:20 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m11IIEaW040792; Fri, 1 Feb 2008 10:18:14 -0800 (PST) (envelope-from chris#@1command.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [75.160.109.240]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Fri, 01 Feb 2008 10:18:14 -0800 Message-ID: <20080201101814.eyq71kiqo084gck8@webmail.1command.com> X-Priority: 3 (Normal) Date: Fri, 01 Feb 2008 10:18:14 -0800 From: "Chris H." To: Tom Evans References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> <1201863996.2975.27.camel@localhost> <20080201074213.93ievskew4wgsgg4@webmail.1command.com> <1201885283.2975.56.camel@localhost> In-Reply-To: <1201885283.2975.56.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: H.R. Communications Internet Messaging System (HCIMS) 4.1 Professional (not for redistribution) / FreeBSD-5.5 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, Pete French , freebsd-ports@freebsd.org Subject: Re: [: -le: argument expected X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 18:18:22 -0000 Hello Tom, and thank you for your reply. Quoting Tom Evans : > On Fri, 2008-02-01 at 07:42 -0800, Chris H. wrote: >> Hello Tom, and thank you for your thoughtful reply. >> >> I would have to assert that in my case, your assertions are also a bit >> moot. Would make deinstall apache2.0 && make install apache2.2 && >> make install php5 -DWITH_CGI=TRUE -DWITH_CLI=true -DWITH_APACHE=true >> accomplish a successful build? In fact, no. As the real problem at >> hand, is getting php5 to build the apache module (libphp5.so). :) >> >> On the other hand. Assuming a successfully built apache module; >> How large is the difference between the same modules in >> 1.2 vs 2.0 vs 2.2? >> How large is the difference in apache' reaction to calls made to >> apache, where these modules are involved? >> Does Apache 2.2 offer the -DWITH_MPM=threadpool? I couldn't find it. >> >> Thank you for your informative, and thoughtful reply. >> >> --Chris H > > HTH. I'm afraid I can't help too much with PHP, as I don't myself use > PHP anywhere. I know other guys in the office do have PHP 5 working > nicely with apache22 from ports though - I'd assume that the problem is > with a system library, I may have missed the email with the actual error > logs in it. > When using PHP, it is important to use the prefork MPM. The other MPMs > are all threaded, and not very many PHP extensions are thread safe. I'm > not sure what the 'threadpool' MPM is - in 2.2 there is prefork, worker > (which implements itself through a multi-process multi-thread model), > and event, which is a specialized version of worker that uses a single > dedicated thread to handle listening sockets and keep-alive sockets. > > We use the event MPM on our front end proxies (also marked as > 'experimental', but this is (according to the dev I asked) as it doesn't > support accept filters (and hence cannot handle SSL). > Our proxies handle a large amount of web traffic, serving static files > locally and reverse proxying dynamic requests to the appropriate backend > webservers, running anything from custom 1.3 apache modules, PHP 5 > served from prefork MPM apache 2.2 servers, and, in one unfortunate > incidence, hand-rolled web servers. > The event model works incredibly well at this task, with load averages > never peeking above 0.05. > > I just checked the 2.0 modules page [1], and there is a 'threadpool' MPM > there, listed as 'This MPM is a developer playground and highly > experimental'! I think that even if you do get PHP5 to build with that, > you will be disappointed as soon as you get some significant load, and > will have a hell of a time debugging it. > > prefork MPM isn't sexy, but it does work with PHP. From [2]: > We do not recommend using a threaded MPM in production with Apache2. > Use the prefork MPM instead, or use Apache1. For information on why, > read the related FAQ entry on using Apache2 with a threaded MPM I greatly appreciate your /very/ informative reply. All points well taken. > > If you have some error messages (or pointers to the emails I missed!) > I'll take a looksie at them. Well, I decided that perhaps something might have been added that to ports since my last cvsup. Hoping that any addition might cure my current delemna. I wanted to sync up my ports database before hand. So ran a portsdb -uU. This - interestingly enough, resulted in both [: -le: argument expected, and [: -eq: argument expected being emitted /many/ times during the portsdb process. So, now I'm stumped. It is clear that it is /not/ specific to the php5-apache-module. But rather, something that is common to that, and other ports. It's clear that /bin/[ is the command complaining. But my guess is that something else is triggering it - perl perhaps? Don't know, and ATM don't know how to find out, or what to try next. :( Thank you again for taking the time to provide such an informative response. FWIW make extract emits the following: [: -le: argument expected [: -le: argument expected ===> Cleaning for php5-5.2.5_1 [: -le: argument expected make emits the above, as well as the following: configure.in:152: warning: AC_PROG_LEX invoked multiple times ../../lib/autoconf/programs.m4:779: AC_DECL_YYTEXT is expanded from... aclocal.m4:2080: PHP_PROG_LEX is expanded from... configure.in:152: the top level Thank you for using PHP. config.status: creating php5.spec config.status: creating main/build-defs.h config.status: creating scripts/phpize config.status: creating scripts/man1/phpize.1 config.status: creating scripts/php-config config.status: creating scripts/man1/php-config.1 config.status: creating sapi/cli/php.1 config.status: creating main/php_config.h config.status: executing default commands ===> Building for php5-5.2.5_1 "Makefile", line 592: warning: duplicate script for target "main/internal_functions.lo" ignored -I/usr/ports/lang/php5/work/php-5.2.5/Zend -O2 -fno-strict-aliasing -pipe -prefer-non-pic -c /usr/ports/lang/php5/work/php-5.2.5/sapi/apache/sapi_apache.c -o sapi/apache/sapi_apache.lo /usr/ports/lang/php5/work/php-5.2.5/sapi/apache/sapi_apache.c: In function 'apache_php_module_main': /usr/ports/lang/php5/work/php-5.2.5/sapi/apache/sapi_apache.c:44: error: 'NOT_FOUND' undeclared (first use in this function) /usr/ports/lang/php5/work/php-5.2.5/sapi/apache/sapi_apache.c:44: error: (Each undeclared identifier is reported only once /usr/ports/lang/php5/work/php-5.2.5/sapi/apache/sapi_apache.c:44: error: for each function it appears in.) *** Error code 1 Stop in /usr/ports/lang/php5/work/php-5.2.5. *** Error code 1 Stop in /usr/ports/lang/php5. *** Error code 1 Thanks again. --Chris H > > Cheers > > Tom > > > [1] http://httpd.apache.org/docs/2.0/mod/ > [2] http://uk.php.net/manual/en/install.unix.apache2.php > -- panic: kernel trap (ignored)