From owner-freebsd-ports@FreeBSD.ORG Fri Feb 1 02:41:25 2008 Return-Path: Delivered-To: freebsd-ports@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-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD 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)