From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 20:36:48 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FD8116A41A; Sun, 27 Jan 2008 20:36:48 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 29DE813C44B; Sun, 27 Jan 2008 20:36:48 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (clement@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RKamrK039700; Sun, 27 Jan 2008 20:36:48 GMT (envelope-from clement@freefall.freebsd.org) Received: (from clement@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RKalqs039696; Sun, 27 Jan 2008 20:36:47 GMT (envelope-from clement) Date: Sun, 27 Jan 2008 20:36:47 GMT Message-Id: <200801272036.m0RKalqs039696@freefall.freebsd.org> To: yds@CoolRat.org, clement@FreeBSD.org, apache@FreeBSD.org From: clement@FreeBSD.org Cc: Subject: Re: ports/116963: www/mod_auth_cookie_mysql2 update to 0.9a 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: Sun, 27 Jan 2008 20:36:48 -0000 Synopsis: www/mod_auth_cookie_mysql2 update to 0.9a State-Changed-From-To: open->closed State-Changed-By: clement State-Changed-When: Sun Jan 27 20:36:26 UTC 2008 State-Changed-Why: Commti with few modifications. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=116963 From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 20:40:02 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7BF716A41A for ; Sun, 27 Jan 2008 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A920513C44B for ; Sun, 27 Jan 2008 20:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RKe2v7039773 for ; Sun, 27 Jan 2008 20:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RKe2rw039772; Sun, 27 Jan 2008 20:40:02 GMT (envelope-from gnats) Date: Sun, 27 Jan 2008 20:40:02 GMT Message-Id: <200801272040.m0RKe2rw039772@freefall.freebsd.org> To: apache@FreeBSD.org From: dfilter@FreeBSD.org (dfilter service) Cc: Subject: Re: ports/116963: commit references a PR X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 20:40:02 -0000 The following reply was made to PR ports/116963; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/116963: commit references a PR Date: Sun, 27 Jan 2008 20:36:23 +0000 (UTC) clement 2008-01-27 20:36:18 UTC FreeBSD ports repository Modified files: www/mod_auth_cookie_mysql2 Makefile distinfo Log: - Update to 0.9.a PR: ports/116963 Submitted by: Yarema Revision Changes Path 1.9 +6 -11 ports/www/mod_auth_cookie_mysql2/Makefile 1.6 +3 -3 ports/www/mod_auth_cookie_mysql2/distinfo _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 20:40:36 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D41F816A46C; Sun, 27 Jan 2008 20:40:36 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AE0C213C474; Sun, 27 Jan 2008 20:40:36 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (clement@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RKeaqn039920; Sun, 27 Jan 2008 20:40:36 GMT (envelope-from clement@freefall.freebsd.org) Received: (from clement@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RKeavY039916; Sun, 27 Jan 2008 20:40:36 GMT (envelope-from clement) Date: Sun, 27 Jan 2008 20:40:36 GMT Message-Id: <200801272040.m0RKeavY039916@freefall.freebsd.org> To: pgollucci@p6m7g8.com, clement@FreeBSD.org, apache@FreeBSD.org From: clement@FreeBSD.org Cc: Subject: Re: ports/117084: www/apache-contrib: [PATCH]: portlint clean 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: Sun, 27 Jan 2008 20:40:36 -0000 Synopsis: www/apache-contrib: [PATCH]: portlint clean State-Changed-From-To: open->closed State-Changed-By: clement State-Changed-When: Sun Jan 27 20:40:24 UTC 2008 State-Changed-Why: Committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=117084 From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 20:50:03 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11D6116A540 for ; Sun, 27 Jan 2008 20:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 01F8B13C45D for ; Sun, 27 Jan 2008 20:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RKo2e9040042 for ; Sun, 27 Jan 2008 20:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RKo2AQ040041; Sun, 27 Jan 2008 20:50:02 GMT (envelope-from gnats) Date: Sun, 27 Jan 2008 20:50:02 GMT Message-Id: <200801272050.m0RKo2AQ040041@freefall.freebsd.org> To: apache@FreeBSD.org From: dfilter@FreeBSD.org (dfilter service) Cc: Subject: Re: ports/117084: commit references a PR X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 20:50:03 -0000 The following reply was made to PR ports/117084; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/117084: commit references a PR Date: Sun, 27 Jan 2008 20:40:19 +0000 (UTC) clement 2008-01-27 20:40:13 UTC FreeBSD ports repository Modified files: www/apache-contrib Makefile pkg-descr Log: - Portlint cleanups PR: ports/117084 Submitted by: "Philip M. Gollucci" Revision Changes Path 1.19 +2 -1 ports/www/apache-contrib/Makefile 1.3 +3 -1 ports/www/apache-contrib/pkg-descr _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 20:54:20 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80AAF16A41A; Sun, 27 Jan 2008 20:54:20 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A8C613C442; Sun, 27 Jan 2008 20:54:20 +0000 (UTC) (envelope-from clement@FreeBSD.org) Received: from freefall.freebsd.org (clement@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RKsKYj040212; Sun, 27 Jan 2008 20:54:20 GMT (envelope-from clement@freefall.freebsd.org) Received: (from clement@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RKsKvX040208; Sun, 27 Jan 2008 20:54:20 GMT (envelope-from clement) Date: Sun, 27 Jan 2008 20:54:20 GMT Message-Id: <200801272054.m0RKsKvX040208@freefall.freebsd.org> To: mimoriso@gmail.com, clement@FreeBSD.org, apache@FreeBSD.org From: clement@FreeBSD.org Cc: Subject: Re: ports/119794: patch for www/mod_auth_kerb to fix on FreeBSD 7.0 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: Sun, 27 Jan 2008 20:54:20 -0000 Synopsis: patch for www/mod_auth_kerb to fix on FreeBSD 7.0 State-Changed-From-To: open->closed State-Changed-By: clement State-Changed-When: Sun Jan 27 20:53:57 UTC 2008 State-Changed-Why: Committed with few modifications. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=119794 From owner-freebsd-apache@FreeBSD.ORG Sun Jan 27 21:00:04 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EBAC16A469 for ; Sun, 27 Jan 2008 21:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1B4F813C4F4 for ; Sun, 27 Jan 2008 21:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0RL03XL040377 for ; Sun, 27 Jan 2008 21:00:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0RL03iP040372; Sun, 27 Jan 2008 21:00:03 GMT (envelope-from gnats) Date: Sun, 27 Jan 2008 21:00:03 GMT Message-Id: <200801272100.m0RL03iP040372@freefall.freebsd.org> To: apache@FreeBSD.org From: dfilter@FreeBSD.org (dfilter service) Cc: Subject: Re: ports/119794: commit references a PR X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2008 21:00:04 -0000 The following reply was made to PR ports/119794; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/119794: commit references a PR Date: Sun, 27 Jan 2008 20:53:59 +0000 (UTC) clement 2008-01-27 20:53:54 UTC FreeBSD ports repository Modified files: www/mod_auth_kerb Makefile Log: - Unbreak on >= 7.0 PR: ports/119794 Submitted by: KAMIYA Satosi Revision Changes Path 1.19 +0 -4 ports/www/mod_auth_kerb/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-apache@FreeBSD.ORG Mon Jan 28 01:51:20 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 2650E16A417 for ; Mon, 28 Jan 2008 01:51:20 +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 DF91913C458 for ; Mon, 28 Jan 2008 01:51:19 +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 m0S1pB3M047557 for ; Sun, 27 Jan 2008 17:51:17 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m0S1pBSr047556 for freebsd-apache@freebsd.org; Sun, 27 Jan 2008 17:51:11 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Sun, 27 Jan 2008 17:51:11 -0800 Message-ID: <20080127175111.jmfabv0s0ok80wcw@webmail.1command.com> X-Priority: 1 (Highest) Date: Sun, 27 Jan 2008 17:51:11 -0800 From: "Chris H." To: freebsd-apache@freebsd.org 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 Subject: Please mark apache13-ssl BROKEN 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: Mon, 28 Jan 2008 01:51:20 -0000 Greetings, After building the www/apache13-ssl from ports src, and installing without errors. I ran httpsdctl configtest to insure everything was AOK. However, it is not. It returns the following: Syntax error on line 208 of /usr/local/etc/apache/httpsd.conf: Cannot load /usr/local/libexec/apache/mod_mmap_static.so into server: /usr/local /libexec/apache/mod_mmap_static.so: Undefined symbol "ap_null_cleanup" Commenting the loadmodule line only causes Apache to complain about the next module in the same fashion. This is a terrible loss to the FreeBSD ports system. Any news as to when Apache will be working again? FYI: FreeBSD-7-PRERELEASE cvsupped src/ports 2008-01-15, build/install world/kernel on the same day. This is an SMP system (2 CPU). Everything /but/ Apache works as expected. -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Mon Jan 28 11:06:18 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4603516A417 for ; Mon, 28 Jan 2008 11:06:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 361C213C45A for ; Mon, 28 Jan 2008 11:06:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0SB6IPM015510 for ; Mon, 28 Jan 2008 11:06:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0SB6HtE015506 for apache@FreeBSD.org; Mon, 28 Jan 2008 11:06:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Jan 2008 11:06:17 GMT Message-Id: <200801281106.m0SB6HtE015506@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: apache@FreeBSD.org Cc: Subject: Current problem reports assigned to apache@FreeBSD.org 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: Mon, 28 Jan 2008 11:06:18 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/89308 apache [patch] www/mod_accounting crash on request_timeout o ports/117260 apache www/apache13-modperl: [PATCH]: portlint cleanups 2 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/74907 apache [PATCH] www/mod_perl: cleanups o ports/106429 apache www/apache* ports install rc.d scripts which don't fol 2 problems total. From owner-freebsd-apache@FreeBSD.ORG Mon Jan 28 23:07:55 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 9D1E916A418 for ; Mon, 28 Jan 2008 23:07:55 +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 5F99513C465 for ; Mon, 28 Jan 2008 23:07:55 +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 m0SN7laB079726 for ; Mon, 28 Jan 2008 15:07:53 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m0SN7leo079725 for freebsd-apache@freebsd.org; Mon, 28 Jan 2008 15:07:47 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Mon, 28 Jan 2008 15:07:47 -0800 Message-ID: <20080128150747.ug2g1gsrrk8w4g04@webmail.1command.com> X-Priority: 3 (Normal) Date: Mon, 28 Jan 2008 15:07:47 -0800 From: "Chris H." To: freebsd-apache@freebsd.org References: <20080127175111.jmfabv0s0ok80wcw@webmail.1command.com> In-Reply-To: <20080127175111.jmfabv0s0ok80wcw@webmail.1command.com> 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 Subject: Re: Please mark apache13-ssl BROKEN 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: Mon, 28 Jan 2008 23:07:55 -0000 Quoting "Chris H." : > Greetings, > After building the www/apache13-ssl from ports src, and installing > without errors. I ran httpsdctl configtest to insure everything was > AOK. > However, it is not. It returns the following: > Syntax error on line 208 of /usr/local/etc/apache/httpsd.conf: > Cannot load /usr/local/libexec/apache/mod_mmap_static.so into server: > /usr/local > /libexec/apache/mod_mmap_static.so: Undefined symbol "ap_null_cleanup" > > Commenting the loadmodule line only causes Apache to complain about > the next module in the same fashion. This is a terrible loss to the > FreeBSD ports system. Any news as to when Apache will be working again? > > FYI: > FreeBSD-7-PRERELEASE cvsupped src/ports 2008-01-15, build/install > world/kernel > on the same day. > This is an SMP system (2 CPU). > > Everything /but/ Apache works as expected. OK. I found the problem with this. Seems inspite of the fact that /usr/bin/objformat is considered obsolete, and is not created by default. It /is/ needed - at least for www/apache13-ssl. So I was able to build a working copy of Apache by performing the following: touch /usr/bin/objformat Edit /usr/bin/objformat and add the following: #!/bin/sh echo elf Save the file and perform the following: chmod +r +x -w /usr/bin/objformat Built www/apache13-ssl from src, and everything worked perfectly. :) Chris out... > > > > -- > panic: kernel trap (ignored) > > > > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Mon Jan 28 23:11:14 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 D8FD816A41B for ; Mon, 28 Jan 2008 23:11:14 +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 8062313C459 for ; Mon, 28 Jan 2008 23:11:14 +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 m0SNB62Z080099 for ; Mon, 28 Jan 2008 15:11:12 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m0SNB6se080098 for freebsd-apache@freebsd.org; Mon, 28 Jan 2008 15:11:06 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Mon, 28 Jan 2008 15:11:06 -0800 Message-ID: <20080128151106.f3ycdzcf7cwog00k@webmail.1command.com> X-Priority: 3 (Normal) Date: Mon, 28 Jan 2008 15:11:06 -0800 From: "Chris H." To: freebsd-apache@freebsd.org References: <20080127175111.jmfabv0s0ok80wcw@webmail.1command.com> <20080128150747.ug2g1gsrrk8w4g04@webmail.1command.com> In-Reply-To: <20080128150747.ug2g1gsrrk8w4g04@webmail.1command.com> 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 Subject: Re: Please mark apache13-ssl BROKEN [SOLVED] 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: Mon, 28 Jan 2008 23:11:14 -0000 Quoting "Chris H." : > Quoting "Chris H." : > >> Greetings, >> After building the www/apache13-ssl from ports src, and installing >> without errors. I ran httpsdctl configtest to insure everything was >> AOK. >> However, it is not. It returns the following: >> Syntax error on line 208 of /usr/local/etc/apache/httpsd.conf: >> Cannot load /usr/local/libexec/apache/mod_mmap_static.so into >> server: /usr/local >> /libexec/apache/mod_mmap_static.so: Undefined symbol "ap_null_cleanup" >> >> Commenting the loadmodule line only causes Apache to complain about >> the next module in the same fashion. This is a terrible loss to the >> FreeBSD ports system. Any news as to when Apache will be working again? >> >> FYI: >> FreeBSD-7-PRERELEASE cvsupped src/ports 2008-01-15, build/install >> world/kernel >> on the same day. >> This is an SMP system (2 CPU). >> >> Everything /but/ Apache works as expected. > > OK. I found the problem with this. Seems inspite of the fact that > /usr/bin/objformat is considered obsolete, and is not created by > default. It /is/ needed - at least for www/apache13-ssl. So I was > able to build a working copy of Apache by performing the following: > > touch /usr/bin/objformat > > Edit /usr/bin/objformat and add the following: > > #!/bin/sh > echo elf > > Save the file and perform the following: > > chmod +r +x -w /usr/bin/objformat > > Built www/apache13-ssl from src, and everything worked perfectly. :) > > Chris out... D'OH! Forgot to add [SOLVED] to the title. :) > >> >> >> >> -- >> panic: kernel trap (ignored) >> >> >> >> > > > > -- > panic: kernel trap (ignored) > > > > _______________________________________________ > freebsd-apache@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Tue Jan 29 02:14:59 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA4EC16A417; Tue, 29 Jan 2008 02:14:59 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A0EE513C447; Tue, 29 Jan 2008 02:14:59 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0T2ExUL093225; Tue, 29 Jan 2008 02:14:59 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0T2ExXN093221; Tue, 29 Jan 2008 02:14:59 GMT (envelope-from linimon) Date: Tue, 29 Jan 2008 02:14:59 GMT Message-Id: <200801290214.m0T2ExXN093221@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-www@FreeBSD.org, apache@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: ports/120105: www/apache13-ssl requires /usr/bin/objformat 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: Tue, 29 Jan 2008 02:14:59 -0000 Synopsis: www/apache13-ssl requires /usr/bin/objformat Responsible-Changed-From-To: freebsd-www->apache Responsible-Changed-By: linimon Responsible-Changed-When: Tue Jan 29 02:14:07 UTC 2008 Responsible-Changed-Why: The www/ GNATS category is only for things affecting the FreeBSD website; ports/ is the proper category for ports PRs. http://www.freebsd.org/cgi/query-pr.cgi?pr=120105 From owner-freebsd-apache@FreeBSD.ORG Tue Jan 29 14:20:27 2008 Return-Path: Delivered-To: apache@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FA0316A49E; Tue, 29 Jan 2008 14:20:27 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6758513C4DB; Tue, 29 Jan 2008 14:20:27 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0TEKRgs052474; Tue, 29 Jan 2008 14:20:27 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0TEKRO6052470; Tue, 29 Jan 2008 14:20:27 GMT (envelope-from gavin) Date: Tue, 29 Jan 2008 14:20:27 GMT Message-Id: <200801291420.m0TEKRO6052470@freefall.freebsd.org> To: lynx.ripe@gmail.com, gavin@FreeBSD.org, apache@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: ports/106429: www/apache* ports install rc.d scripts which don't follow rc(8) 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: Tue, 29 Jan 2008 14:20:27 -0000 Synopsis: www/apache* ports install rc.d scripts which don't follow rc(8) State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Tue Jan 29 14:19:34 UTC 2008 State-Changed-Why: To submitter: It looks like this is now fixed, can you verify that this PR can now be closed? Responsible-Changed-From-To: apache->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Tue Jan 29 14:19:34 UTC 2008 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=106429 From owner-freebsd-apache@FreeBSD.ORG Thu Jan 31 17:45:55 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 B0D6D16A417; Thu, 31 Jan 2008 17:45:55 +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 618B613C467; Thu, 31 Jan 2008 17:45:54 +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 m0VHjl7Z089508; Thu, 31 Jan 2008 09:45:53 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m0VHjlZE089507; Thu, 31 Jan 2008 09:45:47 -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; Thu, 31 Jan 2008 09:45:47 -0800 Message-ID: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 09:45:47 -0800 From: "Chris H." To: freebsd-stable@freebsd.org 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-ports@freebsd.org Subject: [: -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: Thu, 31 Jan 2008 17:45:55 -0000 Hello all, System: FreeBSD 7.0-PRERELEASE i386 Wed Jan 16 18:39:53 PST 2008 Context: After several failed attempts to get a /stable/ installation of Apache13-ssl and friends built and installed from source (see thread: /usr/bin/objformat, for more background). I chose to look at the possibility of using Apache 2.0. I was reluctant, as doing so would require migrating ~50 carefully crafted conf files which have evolved over many yrs. to be now seemingly impervious to abuse, or attack. I hadn't intended this server to become a guinea pig, but my ill fated attempts to install a stable copy of www/apache13-ssl from source necessitated increasing the resources on the other servers. So as to experiment on this one. To the point! Building Apache 2.0 on this box requied cvsupping src/ports (2008-01-30). As the version of Apache 2.0 was 2.0.61 (has 2 security related issues). Current version: 2.0.63. Building/installing this version went w/o trouble. Ran as expected. I only made 1 mod from the default config/build: WITH_MPM?= threadpool. The original was: WITH_MPM?= prefork. My diong so also required: KQUEUE. Other than that, all was as-was. Error(s): After determining that everything was acceptablr/as intended with Apache. I moved on to building/installing php5 as cgi,cli, and module. The first thing emitted when typing make is: [: -le: argument expected [: -le: argument expected This gets emitted once more early in the configure process. Followed by: 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 The build finally /dies/ with the following otput (with context): ... 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 From sapi_apache.c: if (display_source_mode) { zend_syntax_highlighter_ini syntax_highlighter_ini; php_get_highlight_struct(&syntax_highlighter_ini); if (highlight_file(SG(request_info).path_translated, &syntax_highlighter_ini TSRMLS_CC) != SUCCESS) { *** OFFENDING LINE (44) retval = NOT_FOUND; } } else { Any chance somebody knows what is required to resolve this - pretty please? Thank you for all your time and consideration. --Chris H -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Thu Jan 31 19:17:34 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 C8FEF16A418; Thu, 31 Jan 2008 19:17:34 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 90A4B13C457; Thu, 31 Jan 2008 19:17:34 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from [10.50.50.2] (helo=smaug.rattatosk) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKeui-000GHa-7p; Thu, 31 Jan 2008 19:17:32 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKeui-000EBo-24; Thu, 31 Jan 2008 19:17:32 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKeui-0003Je-0Q; Thu, 31 Jan 2008 19:17:32 +0000 To: chris#@1command.com, freebsd-stable@freebsd.org In-Reply-To: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> Message-Id: From: Pete French Date: Thu, 31 Jan 2008 19:17:32 +0000 Cc: freebsd-apache@freebsd.org, 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: Thu, 31 Jan 2008 19:17:34 -0000 > After several failed attempts to get a /stable/ installation of Apache13-ssl > and friends built and installed from source (see thread: /usr/bin/objformat, > for more background). I chose to look at the possibility of using Apache 2.0. Out of interest, why did you choose 2.0 and not 2.2 ? When I migrated away from 1.3 I originally tried 2.0 and had quite a bad time of it as I recall. So I left it a while and ended up going directly to 2.2, which has behaved beautifully. I can't solve your problem, but I can say that personal experience was 2.2 being easier to move to. -pete. From owner-freebsd-apache@FreeBSD.ORG Thu Jan 31 20:59:20 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 C1F8E16A419; Thu, 31 Jan 2008 20:59:20 +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 833F313C442; Thu, 31 Jan 2008 20:59:20 +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 m0VKxCAc008669; Thu, 31 Jan 2008 12:59:18 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m0VKxCD7008668; Thu, 31 Jan 2008 12:59:12 -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; Thu, 31 Jan 2008 12:59:12 -0800 Message-ID: <20080131125912.3c3ktim4xwkw44g8@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 12:59:12 -0800 From: "Chris H." To: Pete French References: In-Reply-To: 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, 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: Thu, 31 Jan 2008 20:59:20 -0000 Quoting Pete French : >> After several failed attempts to get a /stable/ installation of Apache13-ssl >> and friends built and installed from source (see thread: /usr/bin/objformat, >> for more background). I chose to look at the possibility of using >> Apache 2.0. > > Out of interest, why did you choose 2.0 and not 2.2 ? When I migrated > away from 1.3 I originally tried 2.0 and had quite a bad time of > it as I recall. So I left it a while and ended up going directly to > 2.2, which has behaved beautifully. I can't solve your problem, but I can > say that personal experience was 2.2 being easier to move to. Hello, and thank you for your reply. That's a fair (and expected) question. I have to tell you, my experiences with 13-ssl have been /very/ good. That is until I upgraded to 7-PRERELEASE. I spent quite some time (1 wk.) attempting to make it continue to work. In the final analysis, I /did/ discover that even after resolving the original problem exporting the symbols from the mod_*'s correctly, there is still an apparent signalling/timing issue. I blame that on the fact that I'm using ULE scheduling on 7, and am using BSD scheduling on all our 6.x servers. Even baring that, after starting a working version of apache13-ssl on a 7-PRE i386 box and closely monitoring it reveals that it leaks memory like sieve. So, rather than spending even more time (which I don't have) attempting to plug the hole(s), and accounting for/correcting the timing issue. I opted to take Jeremy Chadwick's gentle nudge to move to a newer version of Apache - I went kicking and screaming the whole way. :) But I spent an entire day reading the Apache 2.0, and 2.2 documentation (I'm also already subscribed to the Apache dev list). My conclusion was that the ultimate migration to 2, would be a lot smoother, and easier if moving to 2.0 - the layout of both the server, and conf files are /very/ similar (to 1.3). Further; the point changes occur at a much lower rate than that of 2.2 - overhead that my current workload cannot tolerate. In 2.0's defence; I found absolutely no issues what-so-ever with the building, installing, or running of it. It also required /far/ less resources than that of 1.3. Yet offered more threads/servers. So, it is difficult for me to find an argument to move from 2.0. The current trouble I'm encountering is clearly a PHP5 issue. As it isn't even touching the Apache 2 install during the build process. I hope I've adequately answered your question, and hope I wasn't /too/ verbose. :) Thanks again. --Chris H. > > -pete. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 00:11:11 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 E388E16A418; Fri, 1 Feb 2008 00:11:10 +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 94E1113C448; Fri, 1 Feb 2008 00:11:10 +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 m110B1hU027613; Thu, 31 Jan 2008 16:11:07 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m110B1Zq027612; Thu, 31 Jan 2008 16:11:01 -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; Thu, 31 Jan 2008 16:11:01 -0800 Message-ID: <20080131161101.p3pbj0bgg00ws4ko@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 16:11:01 -0800 From: "Chris H." To: freebsd-stable@freebsd.org References: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> In-Reply-To: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> 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-ports@freebsd.org Subject: Re: [: -le: argument expected (php5 unbuildable) 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 00:11:11 -0000 Quoting "Chris H." : > Hello all, > System: > FreeBSD 7.0-PRERELEASE i386 Wed Jan 16 18:39:53 PST 2008 > > Context: > After several failed attempts to get a /stable/ installation of Apache13-ssl > and friends built and installed from source (see thread: > /usr/bin/objformat, for > more background). I chose to look at the possibility of using Apache > 2.0. I was > reluctant, as doing so would require migrating ~50 carefully crafted > conf files > which have evolved over many yrs. to be now seemingly impervious to abuse, or > attack. I hadn't intended this server to become a guinea pig, but my > ill fated > attempts to install a stable copy of www/apache13-ssl from source > necessitated > increasing the resources on the other servers. So as to experiment on > this one. > > To the point! > Building Apache 2.0 on this box requied cvsupping src/ports (2008-01-30). > As the version of Apache 2.0 was 2.0.61 (has 2 security related issues). > Current version: > 2.0.63. Building/installing this version went w/o trouble. Ran as expected. > I only made 1 mod from the default config/build: WITH_MPM?= threadpool. > The original was: WITH_MPM?= prefork. My diong so also required: KQUEUE. > Other than that, all was as-was. > > Error(s): > After determining that everything was acceptablr/as intended with Apache. > I moved on to building/installing php5 as cgi,cli, and module. The first > thing emitted when typing make is: > [: -le: argument expected > [: -le: argument expected > > This gets emitted once more early in the configure process. Followed by: > > 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 > > The build finally /dies/ with the following otput (with context): > ... > 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 > > From sapi_apache.c: > if (display_source_mode) { > zend_syntax_highlighter_ini syntax_highlighter_ini; > > php_get_highlight_struct(&syntax_highlighter_ini); > if (highlight_file(SG(request_info).path_translated, > &syntax_highlighter_ini TSRMLS_CC) != SUCCESS) { > > *** OFFENDING LINE (44) retval = NOT_FOUND; > > } > } else { > > > Any chance somebody knows what is required to resolve this - pretty please? > > Thank you for all your time and consideration. > > --Chris H Just making the title more meaningful. The original wasn't very representitive of the problem. Sorry. --Chris > > > -- > panic: kernel trap (ignored) > > > > _______________________________________________ > freebsd-apache@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-apache > To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 00:12:05 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 C1A8716A46D; Fri, 1 Feb 2008 00:12:05 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8342D13C4D5; Fri, 1 Feb 2008 00:12:05 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from [10.50.50.2] (helo=smaug.rattatosk) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKjVj-000IgK-Vv; Fri, 01 Feb 2008 00:12:04 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKjVj-000Fl3-Pp; Fri, 01 Feb 2008 00:12:03 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKjVj-00091q-OY; Fri, 01 Feb 2008 00:12:03 +0000 To: chris#@1command.com In-Reply-To: <20080131125912.3c3ktim4xwkw44g8@webmail.1command.com> Message-Id: From: Pete French Date: Fri, 01 Feb 2008 00:12:03 +0000 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 00:12:05 -0000 > also already subscribed to the Apache dev list). My conclusion was that > the ultimate migration to 2, would be a lot smoother, and easier if moving > to 2.0 - the layout of both the server, and conf files are /very/ similar > (to 1.3). O.K., that makes a lot of sense - I can't remember how I did this, but I think I ended abandonning migrating the config files and simply re-wrote them to have the same functionality when I got a few spare dayes ;) > me to find an argument to move from 2.0. The current trouble I'm > encountering is clearly a PHP5 issue. As it isn't even touching the > Apache 2 install during the build process. I hope I've adequately > answered your question, and hope I wasn't /too/ verbose. :) NO, answered perfectly - am tyring to remmebr whether the reaosn I didnt like 2.0 was to do with php too though. It seems to cause some kind of woes every time I upgrade. You said you had to sup the ports tree BTW - does that mean you rebuilt every other port on the system ? -pete. From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 00:47:51 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 0DDDD16A417 for ; Fri, 1 Feb 2008 00:47:51 +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 B73E313C46B for ; Fri, 1 Feb 2008 00:47:50 +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 m110lhYH031369; Thu, 31 Jan 2008 16:47:49 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m110g8QM030680; Thu, 31 Jan 2008 16:42:08 -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; Thu, 31 Jan 2008 16:42:08 -0800 Message-ID: <20080131164208.b5npp3x68o8gwwo4@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 16:42:08 -0800 From: "Chris H." To: Pete French References: In-Reply-To: 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, 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 00:47:51 -0000 Hello Peter, and thank you for your thoughtful reply. Quoting Pete French : >> also already subscribed to the Apache dev list). My conclusion was that >> the ultimate migration to 2, would be a lot smoother, and easier if moving >> to 2.0 - the layout of both the server, and conf files are /very/ similar >> (to 1.3). > > O.K., that makes a lot of sense - I can't remember how I did this, but > I think I ended abandonning migrating the config files and simply > re-wrote them to have the same functionality when I got a few spare > dayes ;) Well, to be Frank with you ( even though my name is Chris ;) ), having to migrate ~50 conf files/layouts on top of "mastering" the /new/ Apache way of doing things, on top of aquainting myself with the way the modules /now/ do things, just isn't going to fit in my schedule. Oh sure I hear you (or others) say; you're going to have to do all of that anyway. So why not just start now, and get it over with. While to a degree that may be so. But as I have it now, my servers are frequently hammered at ~50-75 attacks/second, all without fail. They are (thus far) also impervious to attempts to acquisition/manipulation of server data (most notably PHP). This has been no small feat, and has all been from the acumulation, and examination of the data that was waged against our servers over the years. Not to mention, becoming intimately familiar with all the modules we use (weaknesses/strengths etc...). So, in an effort to continue to thwart such attacks. I'm going to /attempt/ to use 2.0.x. Which really only requires me to re-aquaint myself with the modules. /Then/ should the need/time/desire to move to 2.2.x occur. It won't be such an unreasonable task. :) > >> me to find an argument to move from 2.0. The current trouble I'm >> encountering is clearly a PHP5 issue. As it isn't even touching the >> Apache 2 install during the build process. I hope I've adequately >> answered your question, and hope I wasn't /too/ verbose. :) > > NO, answered perfectly - am tyring to remmebr whether the reaosn I > didnt like 2.0 was to do with php too though. It seems to > cause some kind of woes every time I upgrade. I don't think it's (at this point in my install) reasonable to assume Apache 2.0 has anything to do with it. As the PHP5 build doesn't even care (or ask about) which Apache version I'm using, except to differentiate between it being 1.3 || 2.x. > > You said you had to sup the ports tree BTW - does that mean you rebuilt > every other port on the system ? No. Not yet. I examined the changes that were applied, and the only areas that affect what I struggling with now, are being built /after/ the cvsup (weren't built before). Thanks again for taking the time to respond. --Chris H > > -pete. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 01:04:36 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 41A3B16A417; Fri, 1 Feb 2008 01:04:36 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id 03D0813C43E; Fri, 1 Feb 2008 01:04:36 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from [10.50.50.2] (helo=smaug.rattatosk) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKkKZ-000IzF-4R; Fri, 01 Feb 2008 01:04:35 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKkKZ-000G4e-2G; Fri, 01 Feb 2008 01:04:35 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKkKY-000FnI-W6; Fri, 01 Feb 2008 01:04:35 +0000 To: chris#@1command.com In-Reply-To: <20080131164208.b5npp3x68o8gwwo4@webmail.1command.com> Message-Id: From: Pete French Date: Fri, 01 Feb 2008 01:04:34 +0000 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 01:04:36 -0000 > Well, to be Frank with you ( even though my name is Chris ;) ), having > to migrate ~50 conf files/layouts on top of "mastering" the /new/ Apache > way of doing things, on top of aquainting myself with the way the > modules /now/ do things, just isn't going to fit in my schedule. Oh sure > I hear you (or others) say; you're going to have to do all of that anyway. Actually I understand that perfcetly - indeed I spent today finally mihgrating something originally installed on FreeBSD 3 many years ago (possibly 1999) and getting it working with ports as I had been avoiding re-doing it for all these years. Several hour and a lot of pain. If I wasn't off work sick it wouldn't have got done at all. > I don't think it's (at this point in my install) reasonable to assume > Apache 2.0 has anything to do with it. As the PHP5 build doesn't even > care (or ask about) which Apache version I'm using, except to > differentiate between it being 1.3 || 2.x. O.K., so this is a simple case of cd /usr/ports/lang/php5 make fetch-recursive make config-recursive make clean make yup ? now, I did that with a csup of php5 a few days ago and it was O.K. for me. I am reconning that this has something to do with some other ports that php5 is dependent on which havent been upgraded to the version in the tree. How about try configuring it *not* to build the apache dependent bits and see if it compiles then? The php5 port only depends on Apache if you tell it to build the Apache module. Or try installing it with pkg_add -r ? -pete. From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 01:13:48 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 B1E8316A417; Fri, 1 Feb 2008 01:13:48 +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 64C6913C43E; Fri, 1 Feb 2008 01:13:48 +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 m111DdVZ033925; Thu, 31 Jan 2008 17:13:45 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m111DdMa033924; Thu, 31 Jan 2008 17:13:39 -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; Thu, 31 Jan 2008 17:13:39 -0800 Message-ID: <20080131171339.8rrcn0yvescokgw8@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 17:13:39 -0800 From: "Chris H." To: Lawrence Stewart References: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> <47A26C76.9070306@freebsd.org> In-Reply-To: <47A26C76.9070306@freebsd.org> 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, 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 01:13:48 -0000 Hello, and thank you for your reply. Quoting Lawrence Stewart : > > Hi Chris, > > Firstly, a disclaimer: I'm not an expert so I might be behind the > times on what I'm about to tell you... Note taken. :) > > Chris H. wrote: > > Hello all, > > System: > > FreeBSD 7.0-PRERELEASE i386 Wed Jan 16 18:39:53 PST 2008 > > > > Context: > > After several failed attempts to get a /stable/ installation of > > Apache13-ssl > > and friends built and installed from source (see thread: > > /usr/bin/objformat, for > > more background). I chose to look at the possibility of using Apache > > 2.0. I was > > reluctant, as doing so would require migrating ~50 carefully crafted > > conf files > > which have evolved over many yrs. to be now seemingly impervious to > > abuse, or > > attack. I hadn't intended this server to become a guinea pig, but my ill > > fated > > attempts to install a stable copy of www/apache13-ssl from source > > necessitated > > increasing the resources on the other servers. So as to experiment on > > this one. > > > > To the point! > > Building Apache 2.0 on this box requied cvsupping src/ports (2008-01-30). > > As the version of Apache 2.0 was 2.0.61 (has 2 security related issues). > > Current version: > > 2.0.63. Building/installing this version went w/o trouble. Ran as expected. > > I only made 1 mod from the default config/build: WITH_MPM?= threadpool. > > The original was: WITH_MPM?= prefork. My diong so also required: KQUEUE. > > Other than that, all was as-was. > > > > [snip] > > Regardless of the errors you reported, I believe changing the MPM is > a problem. Last time I tried Apache with the threaded worker MPM it > worked flawlessly. However PHP has issues because it isn't thread > safe. The only safe way to run the 2 together was to set the Apache > MPM back to the default (prefork). While I appreciate your insight regarding php5 not being "thread safe". I would argue that I am not seeing php5 using anthing regarding my Apache 2.0 build, except to ask whether it is 1.3 || 2. So, while you may be /absolutely/ correct about php5 not running well/at all with a threaded Apache. I'm still stumped as to why php5 refuses to build, and emits what appears to be errors in the php5 configure/make files. Point being; if I can get php5 to build/install. I might be able to make it "play nice" with a threaded Apache; and that would make /everyone/ happy. :) > Taking my disclaimer into account, I possibly just didn't figure out > how to make the 2 play nice, so I'd welcome info/pointers from others > who have managed to get threaded apache and PHP working together. > > Assuming no one pipes up and explains how to work around the PHP > threading issues, I'd recommend rebuilding apache with the default > MPM (shouldn't require any make variables defined). Verify it works > ok once installed and then try get PHP working again. I may try that. But I'm at a loss as to what that has to do with getting php5 to build. As (mentioned earlier) I am unable to find where php5 does anything more that to ask if I'm using Apache 1.3 || 2. > > I would also echo the recommendation of others to jump straight to > Apache 2.2(.8) if you're going to make a disruptive switch now > anyways. I have a personal step-by-step build guide for getting > Apache 2.2 and PHP5 working together if you're interested. Not going to happen - in the near future anyway. It's not unlike asking an Athiest to become a Jew. While it may be possible for one to make the change. It's a quantum leap. I've recently elaborated on this already. So I'll not repeat myself here. :) > > As to your reported errors, I can't really shed any light on them, sorry. Thank you very much for your thoughtful reply, and your generous offer Lawerence. :) --Chris > > Cheers, > Lawrence > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 01:18:51 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 CF6E716A421; Fri, 1 Feb 2008 01:18:51 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from outbound.icp-qv1-irony-out2.iinet.net.au (outbound.icp-qv1-irony-out2.iinet.net.au [203.59.1.107]) by mx1.freebsd.org (Postfix) with ESMTP id DA14D13C447; Fri, 1 Feb 2008 01:18:50 +0000 (UTC) (envelope-from lstewart@freebsd.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CABP7oUfSVDWO/2dsb2JhbACrew X-IronPort-AV: E=Sophos;i="4.25,287,1199631600"; d="scan'208";a="272814495" Received: from unknown (HELO newbox.caia.swin.edu.au) ([210.84.53.142]) by outbound.icp-qv1-irony-out2.iinet.net.au with ESMTP; 01 Feb 2008 09:48:54 +0900 Message-ID: <47A26C76.9070306@freebsd.org> Date: Fri, 01 Feb 2008 11:48:54 +1100 From: Lawrence Stewart User-Agent: Thunderbird 2.0.0.4 (X11/20070625) MIME-Version: 1.0 To: "Chris H." References: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> In-Reply-To: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 01:18:51 -0000 Hi Chris, Firstly, a disclaimer: I'm not an expert so I might be behind the times on what I'm about to tell you... Chris H. wrote: > Hello all, > System: > FreeBSD 7.0-PRERELEASE i386 Wed Jan 16 18:39:53 PST 2008 > > Context: > After several failed attempts to get a /stable/ installation of > Apache13-ssl > and friends built and installed from source (see thread: > /usr/bin/objformat, for > more background). I chose to look at the possibility of using Apache > 2.0. I was > reluctant, as doing so would require migrating ~50 carefully crafted > conf files > which have evolved over many yrs. to be now seemingly impervious to > abuse, or > attack. I hadn't intended this server to become a guinea pig, but my ill > fated > attempts to install a stable copy of www/apache13-ssl from source > necessitated > increasing the resources on the other servers. So as to experiment on > this one. > > To the point! > Building Apache 2.0 on this box requied cvsupping src/ports (2008-01-30). > As the version of Apache 2.0 was 2.0.61 (has 2 security related issues). > Current version: > 2.0.63. Building/installing this version went w/o trouble. Ran as expected. > I only made 1 mod from the default config/build: WITH_MPM?= threadpool. > The original was: WITH_MPM?= prefork. My diong so also required: KQUEUE. > Other than that, all was as-was. > [snip] Regardless of the errors you reported, I believe changing the MPM is a problem. Last time I tried Apache with the threaded worker MPM it worked flawlessly. However PHP has issues because it isn't thread safe. The only safe way to run the 2 together was to set the Apache MPM back to the default (prefork). Taking my disclaimer into account, I possibly just didn't figure out how to make the 2 play nice, so I'd welcome info/pointers from others who have managed to get threaded apache and PHP working together. Assuming no one pipes up and explains how to work around the PHP threading issues, I'd recommend rebuilding apache with the default MPM (shouldn't require any make variables defined). Verify it works ok once installed and then try get PHP working again. I would also echo the recommendation of others to jump straight to Apache 2.2(.8) if you're going to make a disruptive switch now anyways. I have a personal step-by-step build guide for getting Apache 2.2 and PHP5 working together if you're interested. As to your reported errors, I can't really shed any light on them, sorry. Cheers, Lawrence From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 01:36:34 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 405E016A417; Fri, 1 Feb 2008 01:36:34 +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 E8DF613C43E; Fri, 1 Feb 2008 01:36:33 +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 m111aQUq036372; Thu, 31 Jan 2008 17:36:32 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m111aQj4036371; Thu, 31 Jan 2008 17:36:26 -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; Thu, 31 Jan 2008 17:36:26 -0800 Message-ID: <20080131173626.metcs73dwk004gos@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 17:36:26 -0800 From: "Chris H." To: Pete French References: In-Reply-To: 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, 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 01:36:34 -0000 Hello Pete, and thank you for your continued input. I really appreciate it. Quoting Pete French : >> Well, to be Frank with you ( even though my name is Chris ;) ), having >> to migrate ~50 conf files/layouts on top of "mastering" the /new/ Apache >> way of doing things, on top of aquainting myself with the way the >> modules /now/ do things, just isn't going to fit in my schedule. Oh sure >> I hear you (or others) say; you're going to have to do all of that anyway. > > Actually I understand that perfcetly - indeed I spent today finally > mihgrating something originally installed on FreeBSD 3 many years > ago (possibly 1999) and getting it working with ports as I had been > avoiding re-doing it for all these years. Several hour and a lot of pain. > If I wasn't off work sick it wouldn't have got done at all. > >> I don't think it's (at this point in my install) reasonable to assume >> Apache 2.0 has anything to do with it. As the PHP5 build doesn't even >> care (or ask about) which Apache version I'm using, except to >> differentiate between it being 1.3 || 2.x. > > O.K., so this is a simple case of > > cd /usr/ports/lang/php5 > make fetch-recursive > make config-recursive > make clean > make > > yup ? now, I did that with a csup of php5 a few days ago and it > was O.K. for me. A few days ago it worked great for me too. :) But seems that my cvsup of 2008-01-31 has added some changes to my php5 source. Namely: lang/php5/files/patch-Zend_zend_list.c, and lang/php5/files/patch-Zend_zend_list.h. I thought about getting the diffs from freebsd.org and "diffing" back. But felt I should hold back, in hopes of a better solution. > I am reconning that this has something to do > with some other ports that php5 is dependent on which havent been > upgraded to the version in the tree. Hey, that's not asking much (not sarcastic). I'm not getting anywhere in/ at my current state. :) > > How about try configuring it *not* to build the apache dependent bits and > see if it compiles then? The php5 port only depends on Apache if you tell it > to build the Apache module. I'm /quite/ sure that that will work flawlessly. I'll do that first, and report my experience. > > Or try installing it with pkg_add -r ? I won't realize the recent changes that cvsup has added to the port source. Thanks again for all your input! I'll be back... --Chris > > -pete. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 02:23:28 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 364D416A417; Fri, 1 Feb 2008 02:23:28 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from angel.ticketswitch.com (angel.ticketswitch.com [IPv6:2002:57e0:1d4e::1]) by mx1.freebsd.org (Postfix) with ESMTP id EE88613C457; Fri, 1 Feb 2008 02:23:27 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from [10.50.50.2] (helo=smaug.rattatosk) by angel.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKlYs-000JQn-Ci; Fri, 01 Feb 2008 02:23:26 +0000 Received: from dilbert.rattatosk ([10.50.50.6] helo=dilbert.ticketswitch.com) by smaug.rattatosk with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKlYs-000GLg-8r; Fri, 01 Feb 2008 02:23:26 +0000 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JKlYs-0000Ky-88; Fri, 01 Feb 2008 02:23:26 +0000 To: chris#@1command.com, lstewart@freebsd.org In-Reply-To: <20080131171339.8rrcn0yvescokgw8@webmail.1command.com> Message-Id: From: Pete French Date: Fri, 01 Feb 2008 02:23:26 +0000 Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 02:23:28 -0000 > I may try that. But I'm at a loss as to what that has to do with > getting php5 to build. As (mentioned earlier) I am unable to find > where php5 does anything more that to ask if I'm using Apache 1.3 || 2. This puzzles me - my php5 from ports doesnt ask this at all. You just build it and it finds your Apache install (if you dont have apache installed then it tries to install 1.3). As to what it needs from Apache - well preseumbaly it uses axps and associated bits in order to build the module. -pete. From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 02:41:25 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 1B0FA16A41A; Fri, 1 Feb 2008 02:41:25 +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 C080D13C45D; Fri, 1 Feb 2008 02:41:24 +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 m112fGUD042810; Thu, 31 Jan 2008 18:41:22 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m112fGsD042809; Thu, 31 Jan 2008 18:41:16 -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; Thu, 31 Jan 2008 18:41:16 -0800 Message-ID: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> X-Priority: 3 (Normal) Date: Thu, 31 Jan 2008 18:41:16 -0800 From: "Chris H." To: Pete French References: In-Reply-To: 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: lstewart@freebsd.org, freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 02:41:25 -0000 Quoting Pete French : >> I may try that. But I'm at a loss as to what that has to do with >> getting php5 to build. As (mentioned earlier) I am unable to find >> where php5 does anything more that to ask if I'm using Apache 1.3 || 2. > > This puzzles me - my php5 from ports doesnt ask this at all. You just > build it and it finds your Apache install (if you dont have apache > installed then it tries to install 1.3). As to what it needs from > Apache - well preseumbaly it uses axps and associated bits in order > to build the module. Yes, it's an if, then block, and that's the size of it. Nothing more. OK. Off to the /meat/ of things... I did a build by declaring a WITHOUT_APACHE=true in my /etc/make.conf and the /var/db/ports/php5/options. Leaving the following in both: WITH_SUHOSIN=true WITHOUT_MULTIBYTE=true WITHOUT_MAILHEAD=true WITH_CLI=true WITH_CGI=true WITHOUT_REDIRECT=true WITHOUT_DISCARD=true WITH_FASTCGI=true WITH_PATHINFO=true As suspected, it built without /any/ errors - OK just 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 But it's been doing that for quite awhile, and doesn't get in the way of a successful build or install. On another note of interest; I found the problem that causes the error message as used in the title of this thread: [: -le: argument expected The cause is in the file: lang/php5/files/patch-Zend_zend_list.c It accounts for all /3/ errors emitted during the initial portion of the make process. The lines are as follows: --- Zend/zend_list.c.orig 2007-01-01 10:35:46.000000000 +0100 +++ Zend/zend_list.c 2008-01-29 11:05:14.000000000 +0100 @@ -48,7 +48,7 @@ return index; } -ZEND_API int _zend_list_delete(int id TSRMLS_DC) +ZEND_API int _zend_list_delete(ulong id TSRMLS_DC) { *** zend_rsrc_list_entry *le; @@ -65,7 +65,7 @@ } -ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC) +ZEND_API void *_zend_list_find(ulong id, int *type TSRMLS_DC) { *** zend_rsrc_list_entry *le; @@ -78,7 +78,7 @@ } } -ZEND_API int _zend_list_addref(int id TSRMLS_DC) +ZEND_API int _zend_list_addref(ulong id TSRMLS_DC) { *** zend_rsrc_list_entry *le; (highlighted with three asterisks for clarity). While it's nice that I found them. I'm not sure what to do to make them correct. Any thoughts? Should I simply send-pr - php5-apache-module build failure (lang/php5/files/patch-Zend_zend_list.c)? Anyway, at least some headway has been made. :) Thanks again, for all your input. --Chris H > > -pete. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 03:10:36 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 F0A1616A417; Fri, 1 Feb 2008 03:10:36 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by mx1.freebsd.org (Postfix) with ESMTP id AE46C13C44B; Fri, 1 Feb 2008 03:10:34 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.5) with SMTP id NAA11368; Fri, 1 Feb 2008 13:32:10 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 1 Feb 2008 13:32:10 +1100 (EST) From: Ian Smith To: "Chris H." In-Reply-To: <20080131173626.metcs73dwk004gos@webmail.1command.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, Pete French 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 03:10:37 -0000 [I've kept your ccs, but I'm only subscribed to -stable] On Thu, 31 Jan 2008, Chris H. wrote: > Hello Pete, and thank you for your continued input. I really appreciate it. > > Quoting Pete French : [.. huge snip.. ] > > How about try configuring it *not* to build the apache dependent bits and > > see if it compiles then? The php5 port only depends on Apache if you tell it > > to build the Apache module. > > I'm /quite/ sure that that will work flawlessly. I'll do that first, and > report my experience. > > > > > Or try installing it with pkg_add -r ? > > I won't realize the recent changes that cvsup has added to the port source. It wouldn't work anyway. Unless things have changed very recently - and I'd be pleasantly surprised to be told that they had - for some utterly bizarre reason, the php5 package does not include the apache module. Well, the reason is that packages are built with default port options, and the apache module is not a default port option. Fair enough, but for those people who'd hope to be able to install apache[anything] + php5 from packages, a php5-with-modphp5 package would be really handy. cheers, Ian From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 05:55:14 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 0959216A469; Fri, 1 Feb 2008 05:55:14 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from swin.edu.au (gpo5.cc.swin.edu.au [136.186.1.225]) by mx1.freebsd.org (Postfix) with ESMTP id D540213C4E1; Fri, 1 Feb 2008 05:55:12 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from [136.186.229.95] (lstewart.caia.swin.edu.au [136.186.229.95]) by swin.edu.au (8.14.1/8.13.1) with ESMTP id m111p1xo018289; Fri, 1 Feb 2008 12:51:02 +1100 Message-ID: <47A27B05.9060103@freebsd.org> Date: Fri, 01 Feb 2008 12:51:01 +1100 From: Lawrence Stewart User-Agent: Thunderbird 1.5.0.9 (X11/20070123) MIME-Version: 1.0 To: "Chris H." References: <20080131094547.54c6rsq8wgggw48s@webmail.1command.com> <47A26C76.9070306@freebsd.org> <20080131171339.8rrcn0yvescokgw8@webmail.1command.com> In-Reply-To: <20080131171339.8rrcn0yvescokgw8@webmail.1command.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.1.9 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on gpo5.cc.swin.edu.au Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, 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 05:55:14 -0000 Hi Chris, Chris H. wrote: > Hello, and thank you for your reply. > > Quoting Lawrence Stewart : > >> >> Hi Chris, >> >> Firstly, a disclaimer: I'm not an expert so I might be behind the >> times on what I'm about to tell you... > > Note taken. :) > >> >> Chris H. wrote: >> > Hello all, >> > System: >> > FreeBSD 7.0-PRERELEASE i386 Wed Jan 16 18:39:53 PST 2008 >> > >> > Context: >> > After several failed attempts to get a /stable/ installation of >> > Apache13-ssl >> > and friends built and installed from source (see thread: >> > /usr/bin/objformat, for >> > more background). I chose to look at the possibility of using Apache >> > 2.0. I was >> > reluctant, as doing so would require migrating ~50 carefully crafted >> > conf files >> > which have evolved over many yrs. to be now seemingly impervious to >> > abuse, or >> > attack. I hadn't intended this server to become a guinea pig, but my >> ill >> > fated >> > attempts to install a stable copy of www/apache13-ssl from source >> > necessitated >> > increasing the resources on the other servers. So as to experiment on >> > this one. >> > >> > To the point! >> > Building Apache 2.0 on this box requied cvsupping src/ports >> (2008-01-30). >> > As the version of Apache 2.0 was 2.0.61 (has 2 security related >> issues). >> > Current version: >> > 2.0.63. Building/installing this version went w/o trouble. Ran as >> expected. >> > I only made 1 mod from the default config/build: WITH_MPM?= threadpool. >> > The original was: WITH_MPM?= prefork. My diong so also required: >> KQUEUE. >> > Other than that, all was as-was. >> > >> >> [snip] >> >> Regardless of the errors you reported, I believe changing the MPM is a >> problem. Last time I tried Apache with the threaded worker MPM it >> worked flawlessly. However PHP has issues because it isn't thread >> safe. The only safe way to run the 2 together was to set the Apache >> MPM back to the default (prefork). > > While I appreciate your insight regarding php5 not being "thread safe". > I would argue that I am not seeing php5 using anthing regarding my > Apache 2.0 build, except to ask whether it is 1.3 || 2. So, while > you may be /absolutely/ correct about php5 not running well/at all > with a threaded Apache. I'm still stumped as to why php5 refuses to > build, and emits what appears to be errors in the php5 configure/make > files. Point being; if I can get php5 to build/install. I might be able > to make it "play nice" with a threaded Apache; and that would make > /everyone/ happy. :) It does smell of a problem related with another port... Perhaps you just need to do some portupgrading? That said, with problems like this, I just reckon that it's best to start simple i.e. setup apache in the known good way (prefork mpm) and then get php working. Once you're convinced that all plays nice, then upgrade apache to use worker MPM and see what breaks (if anything). You're more likely to get useful help from people if you only change one variable at a time as it were. > >> Taking my disclaimer into account, I possibly just didn't figure out >> how to make the 2 play nice, so I'd welcome info/pointers from others >> who have managed to get threaded apache and PHP working together. >> >> Assuming no one pipes up and explains how to work around the PHP >> threading issues, I'd recommend rebuilding apache with the default MPM >> (shouldn't require any make variables defined). Verify it works ok >> once installed and then try get PHP working again. > > I may try that. But I'm at a loss as to what that has to do with > getting php5 to build. As (mentioned earlier) I am unable to find > where php5 does anything more that to ask if I'm using Apache 1.3 || 2. As am I. But the cvsup of the ports tree has possibly required php to use a new dependency on a newer version of autoconf or some other pkg. Installing the ports-mgmt/portupgrade port and running "portupgrade -Rrf php5" will take all the hard work out of ensuring all your packages required by PHP are up to date. > >> >> I would also echo the recommendation of others to jump straight to >> Apache 2.2(.8) if you're going to make a disruptive switch now >> anyways. I have a personal step-by-step build guide for getting Apache >> 2.2 and PHP5 working together if you're interested. > > Not going to happen - in the near future anyway. It's not unlike asking > an Athiest to become a Jew. While it may be possible for one to make > the change. It's a quantum leap. I've recently elaborated on this already. > So I'll not repeat myself here. :) > The other messages in the thread hadn't arrived at my mail client before I said this... sorry for flogging the dead horse a little more (but I guess I suspected the effort to go from 1.3->2.0 is effectively identical to 1.3->2.2, but that is a guess). Cheers, Lawrence From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 11:31:07 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 247C016A417 for ; Fri, 1 Feb 2008 11:31:07 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id CE35B13C458 for ; Fri, 1 Feb 2008 11:31:06 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by wr-out-0506.google.com with SMTP id 68so933456wri.3 for ; Fri, 01 Feb 2008 03:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=SyV26I1S71bSAEES3pMNk8VqTvjg2ktwSwpzbhax8rY=; b=HeWLjLBY5w75DKICWKrJ2s2IP0rt9GoA+6Kvnzt/6O5d6eiRhKK5c5BOShE30HCsC6kRBYE0Qx03+WCMQQHzzWZLTCYZcGplnfW1jz7fXoQYoFBw7PUvtI9mHp7ia2xsWBxQNzzCDjBUSVgkJRtMiKyMVb/dwakJX/a3eSAuxc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=e84/HcWgilDz7J4T13D92+n8LHldNJbMMIQH11VWjmozy0NRX8HvEJ03mftFRlM9nWdRyM2h9pwCUfsnfom0d6aQyPW0AViVr4oGZojU/aoc2GsgAtBCdMWIvW126o3nocN8f+xYlrBtktctkBwJTOEtQSWMhk5scnkOyIfiy3o= Received: by 10.150.96.10 with SMTP id t10mr1253859ybb.1.1201864001038; Fri, 01 Feb 2008 03:06:41 -0800 (PST) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id m5sm14505957gve.11.2008.02.01.03.06.38 (version=SSLv3 cipher=RC4-MD5); Fri, 01 Feb 2008 03:06:40 -0800 (PST) From: Tom Evans To: "Chris H." In-Reply-To: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WtyM75N87g73SYtmghG3" Date: Fri, 01 Feb 2008 11:06:36 +0000 Message-Id: <1201863996.2975.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: lstewart@freebsd.org, freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, Pete French 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 11:31:07 -0000 --=-WtyM75N87g73SYtmghG3 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-01-31 at 18:41 -0800, Chris H. wrote: >=20 > The cause is in the file: lang/php5/files/patch-Zend_zend_list.c >=20 > It accounts for all /3/ errors emitted during the initial portion > of the make process. The lines are as follows: >=20 > --- Zend/zend_list.c.orig 2007-01-01 10:35:46.000000000 +0100 > +++ Zend/zend_list.c 2008-01-29 11:05:14.000000000 +0100 > @@ -48,7 +48,7 @@ > return index; > } >=20 > -ZEND_API int _zend_list_delete(int id TSRMLS_DC) > +ZEND_API int _zend_list_delete(ulong id TSRMLS_DC) > { > *** zend_rsrc_list_entry *le; >=20 > @@ -65,7 +65,7 @@ > } >=20 >=20 > -ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC) > +ZEND_API void *_zend_list_find(ulong id, int *type TSRMLS_DC) > { > *** zend_rsrc_list_entry *le; >=20 > @@ -78,7 +78,7 @@ > } > } >=20 > -ZEND_API int _zend_list_addref(int id TSRMLS_DC) > +ZEND_API int _zend_list_addref(ulong id TSRMLS_DC) > { > *** zend_rsrc_list_entry *le; >=20 > (highlighted with three asterisks for clarity). >=20 > While it's nice that I found them. I'm not sure what to do to > make them correct. Any thoughts? Should I simply send-pr - > php5-apache-module build failure (lang/php5/files/patch-Zend_zend_list.c)= ? I doubt that patch is the issue. The error comes from a malformed call to /bin/test (or /bin/[ ). The -le test tests two numbers to see if the first is less than the second.=20 With correct usage: /bin/[ 5 -le 10 ] && echo "first is less" first is less With incorrect usage /bin/[ 5 -le ] && echo "first is less" [: -le: argument expected The patch you have shown changes the id of a zend_rsrc_list_entry to be an unsigned long rather than an int, the fact that the variable name (which does not get updated, modified or altered) is called 'le' for 'list element' is neither here nor there. I would thoroughly recommend using apache 2.2 with the prefork MPM if you wish to run PHP. Your arguments for choosing 2.0 over 2.2 are spurious, as there are virtually no difference in conf directives, server layout or security, where as apache 2.2 is well maintained and secure. Apache 2.2 has many notable improvements, especially in performance and proxying. See [1]. The real hint is on apache.org [2] - 'We consider Apache 2.2 to be the best available version at the time of this release. We offer Apache 2.0.63 as the best legacy version of Apache 2.0 available. Users should first consider upgrading to the current release of Apache 2.2 instead.' On the other hand, your server, your rules. :) Tom [1] http://httpd.apache.org/docs/2.2/new_features_2_2.html [2] http://www.apache.org/dist/httpd/Announcement2.0.html --=-WtyM75N87g73SYtmghG3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHov02lcRvFfyds/cRAuZzAKCPRpfDMasxV/LW3r7f2/1FQ6njbwCgjNjA XsHbbQ0Bq4pchrGebqRZkLc= =LbPj -----END PGP SIGNATURE----- --=-WtyM75N87g73SYtmghG3-- From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 15:42:23 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 7F71816A421; Fri, 1 Feb 2008 15:42:23 +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 2E37013C4E3; Fri, 1 Feb 2008 15:42:23 +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 m11FgETl025577; Fri, 1 Feb 2008 07:42:20 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m11FgE9O025576; Fri, 1 Feb 2008 07:42:14 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Fri, 01 Feb 2008 07:42:13 -0800 Message-ID: <20080201074213.93ievskew4wgsgg4@webmail.1command.com> X-Priority: 3 (Normal) Date: Fri, 01 Feb 2008 07:42:13 -0800 From: "Chris H." To: Tom Evans References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> <1201863996.2975.27.camel@localhost> In-Reply-To: <1201863996.2975.27.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 15:42:23 -0000 Hello Tom, and thank you for your thoughtful reply. Quoting Tom Evans : > On Thu, 2008-01-31 at 18:41 -0800, Chris H. wrote: >> >> The cause is in the file: lang/php5/files/patch-Zend_zend_list.c >> >> It accounts for all /3/ errors emitted during the initial portion >> of the make process. The lines are as follows: >> >> --- Zend/zend_list.c.orig 2007-01-01 10:35:46.000000000 +0100 >> +++ Zend/zend_list.c 2008-01-29 11:05:14.000000000 +0100 >> @@ -48,7 +48,7 @@ >> return index; >> } >> >> -ZEND_API int _zend_list_delete(int id TSRMLS_DC) >> +ZEND_API int _zend_list_delete(ulong id TSRMLS_DC) >> { >> *** zend_rsrc_list_entry *le; >> >> @@ -65,7 +65,7 @@ >> } >> >> >> -ZEND_API void *_zend_list_find(int id, int *type TSRMLS_DC) >> +ZEND_API void *_zend_list_find(ulong id, int *type TSRMLS_DC) >> { >> *** zend_rsrc_list_entry *le; >> >> @@ -78,7 +78,7 @@ >> } >> } >> >> -ZEND_API int _zend_list_addref(int id TSRMLS_DC) >> +ZEND_API int _zend_list_addref(ulong id TSRMLS_DC) >> { >> *** zend_rsrc_list_entry *le; >> >> (highlighted with three asterisks for clarity). >> >> While it's nice that I found them. I'm not sure what to do to >> make them correct. Any thoughts? Should I simply send-pr - >> php5-apache-module build failure (lang/php5/files/patch-Zend_zend_list.c)? > > I doubt that patch is the issue. The error comes from a malformed call > to /bin/test (or /bin/[ ). The -le test tests two numbers to see if the > first is less than the second. > With correct usage: > /bin/[ 5 -le 10 ] && echo "first is less" > first is less > With incorrect usage > /bin/[ 5 -le ] && echo "first is less" > [: -le: argument expected > > The patch you have shown changes the id of a zend_rsrc_list_entry to be > an unsigned long rather than an int, the fact that the variable name > (which does not get updated, modified or altered) is called 'le' for > 'list element' is neither here nor there. Quite so. I eventually figured that out. But by then had been up for far too long, and decided to get some sleep, and reply in the morning. Good morning. :) > > I would thoroughly recommend using apache 2.2 with the prefork MPM if > you wish to run PHP. Your arguments for choosing 2.0 over 2.2 are > spurious, as there are virtually no difference in conf directives, > server layout or security, where as apache 2.2 is well maintained and > secure. Apache 2.2 has many notable improvements, especially in > performance and proxying. See [1]. > > The real hint is on apache.org [2] - 'We consider Apache 2.2 to be the > best available version at the time of this release. We offer Apache > 2.0.63 as the best legacy version of Apache 2.0 available. Users should > first consider upgrading to the current release of Apache 2.2 instead.' > 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 > On the other hand, your server, your rules. :) > > Tom > > [1] http://httpd.apache.org/docs/2.2/new_features_2_2.html > [2] http://www.apache.org/dist/httpd/Announcement2.0.html > -- panic: kernel trap (ignored) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 17:01:29 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 63E9816A41B for ; Fri, 1 Feb 2008 17:01:29 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.189]) by mx1.freebsd.org (Postfix) with ESMTP id CBE1213C447 for ; Fri, 1 Feb 2008 17:01:28 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by mu-out-0910.google.com with SMTP id w8so908286mue.4 for ; Fri, 01 Feb 2008 09:01:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; bh=hltthaVJLThF1ktuWrDMHmdqTk8wGkVYHrpy65EsYVg=; b=VuEFFNk4oL8Ihd5wFNOf+Kg1rw+ZSzKEpepkW++8jCPKpv8bS6C1V/YSzDAjkpWUZTTPqfiPY2rpa6ZbNBpfWmMavQkRGuS0cov3nZk7Cz8bsNvsTrDsoXX4oNIRv6vzzvkO+eb3Q3xO7Ogtn0KwLM1G3GTxcyYED4a1Zib+WXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer; b=ieqkY0+s7m9qyvtuZwDjQRQGC/EGZFf/dhaZ/GtJSR/iKbNrFMHGjwkqFECIx7V76pn93PSBKVUbiSp4nFOjR+DmDBaLGuXB+T/NO0s2D1hp6bSVW4EQ+Tl1XcWXVt/4czlSTGW1Wpc2lUljf7sN9rUfmgjy3UE836gaoU8Wn1k= Received: by 10.78.168.1 with SMTP id q1mr6514727hue.71.1201885285663; Fri, 01 Feb 2008 09:01:25 -0800 (PST) Received: from ?127.0.0.1? ( [217.206.187.79]) by mx.google.com with ESMTPS id g11sm260675gve.6.2008.02.01.09.01.24 (version=SSLv3 cipher=RC4-MD5); Fri, 01 Feb 2008 09:01:24 -0800 (PST) From: Tom Evans To: "Chris H." In-Reply-To: <20080201074213.93ievskew4wgsgg4@webmail.1command.com> References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> <1201863996.2975.27.camel@localhost> <20080201074213.93ievskew4wgsgg4@webmail.1command.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-JmAWDIecGY33V+Uap47h" Date: Fri, 01 Feb 2008 17:01:23 +0000 Message-Id: <1201885283.2975.56.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Cc: freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, Pete French 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 17:01:29 -0000 --=-JmAWDIecGY33V+Uap47h Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2008-02-01 at 07:42 -0800, Chris H. wrote: > Hello Tom, and thank you for your thoughtful reply. >=20 > 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=3DTRUE -DWITH_CLI=3Dtrue -DWITH_APACHE=3Dtru= e > accomplish a successful build? In fact, no. As the real problem at > hand, is getting php5 to build the apache module (libphp5.so). :) >=20 > 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=3Dthreadpool? I couldn't find it. >=20 > Thank you for your informative, and thoughtful reply. >=20 > --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).=20 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.=20 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.=20 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 If you have some error messages (or pointers to the emails I missed!) I'll take a looksie at them. Cheers Tom [1] http://httpd.apache.org/docs/2.0/mod/ [2] http://uk.php.net/manual/en/install.unix.apache2.php --=-JmAWDIecGY33V+Uap47h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBHo1BflcRvFfyds/cRAqauAKCMIoNwei43/258o+ma5iV75g25dQCfXeKa 9GiD1uEadea5u5QT76dseEM= =tyN0 -----END PGP SIGNATURE----- --=-JmAWDIecGY33V+Uap47h-- 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) From owner-freebsd-apache@FreeBSD.ORG Fri Feb 1 19:11:57 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 44CDE16A41A for ; Fri, 1 Feb 2008 19:11:57 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 31F7B13C4E3 for ; Fri, 1 Feb 2008 19:11:57 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 4BBCB1CC05F; Fri, 1 Feb 2008 10:52:33 -0800 (PST) Date: Fri, 1 Feb 2008 10:52:33 -0800 From: Jeremy Chadwick To: "Chris H." Message-ID: <20080201185233.GA72487@eos.sc1.parodius.com> References: <20080131184116.ennj4jbvw480ws8s@webmail.1command.com> <1201863996.2975.27.camel@localhost> <20080201074213.93ievskew4wgsgg4@webmail.1command.com> <1201885283.2975.56.camel@localhost> <20080201101814.eyq71kiqo084gck8@webmail.1command.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080201101814.eyq71kiqo084gck8@webmail.1command.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Tom Evans , freebsd-apache@freebsd.org, freebsd-stable@freebsd.org, freebsd-ports@freebsd.org, Pete French 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 19:11:57 -0000 On Fri, Feb 01, 2008 at 10:18:14AM -0800, Chris H. wrote: > 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. :( Some educational history and points: /bin/[ is the same thing as /bin/test (one might be a hardlink, I can't remember). If you've ever seen an sh script, you'll see a lot of this: if [ x"$o" = x"hello" ]; then ... fi Which is identical to: if test x"$o" = x"hello"; then ... fi There's some important things to note about this, though. Many shells (such as bash) include their own internal version of test, which is wise because it saves on having to fork a /bin/[ or /bin/test process every time something wanted to run a comparison operation. test(1) describes the applicable comparison operators (=, !=, -gt, -le, etc.). > [: -le: argument expected This means something somewhere is doing: if [ val1 -le $val2 ]; then ... fi I'm willing to bet val2 is a variable which isn't being set prior to the test conditional being run, which would mean the test conditional would be expanded by the shell into this: if [ val1 -le ]; then ... fi Which is going to emit the error in question. To confirm that the problem is coming from a /bin/sh script (or something that actually uses /bin/[ or /bin/test, versus, say, a bash shell script which uses bash's internal [/test), we can do this: icarus$ /bin/sh # if [ 123 -le ]; then echo hi; fi [: -le: argument expected # if test 123 -le; then echo hi; fi test: -le: argument expected Note the difference if [ or test is used within bash: bash# if [ 123 -le ]; then echo hi; fi -bash: [: 123: unary operator expected bash# if test 123 -le; then echo hi; fi -bash: test: 123: unary operator expected What all this means: the error is being induced by a /bin/sh script of somekind. That said, the added fact that "make extract" causes this for you means that the error is coming from something within the ports framework, which means something in ports/Mk. This sort-of thing has happened in the past, and has occasionally turned out to be caused someone having some very bad typos in /etc/make.conf which broke all sorts of things. > 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 Second time someone's told you -- this is normal based on the current autoconf framework in ports. I've complained about this to ale@ in the past, but was told "if it bothers you that much, fix it; it's harmless otherwise". And being as I have dealt with similar autoconf warnings in ports that *I* maintain, I can tell you that getting them to not emit such warnings is a real pain in the ass. > 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 Also "normal". > -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 Hmm, this looks like there could be two versions of Apache APR on your machine (one from the www/apache20 port, and possibly some other port installing something similar to devel/apr on the same box). This could also be induced by something broken in /etc/make.conf, but it's hard to tell. It's getting to the point where for someone to help you with this, they're going to need access to the machine. I can't reproduce this behaviour on any of my personal FreeBSD boxes, nor any of our production machines (running RELENG_6 and RELENG_7), and I haven't seen anyone else on this list able to reproduce the symptom either. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |