From owner-freebsd-questions@FreeBSD.ORG Sat Feb 3 20:53:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D11916A401 for ; Sat, 3 Feb 2007 20:53:00 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id D967413C471 for ; Sat, 3 Feb 2007 20:52:59 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l13Kqct1000814; Sat, 3 Feb 2007 12:52:53 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l13Kq4C3000813; Sat, 3 Feb 2007 12:52:04 -0800 (PST) (envelope-from kline) Date: Sat, 3 Feb 2007 12:51:59 -0800 From: Gary Kline To: Ted Mittelstaedt Message-ID: <20070203205158.GA94970@thought.org> References: <20070203070829.GA15799@thought.org> <006b01c747b8$ab700bb0$3c01a8c0@coolf89ea26645> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006b01c747b8$ab700bb0$3c01a8c0@coolf89ea26645> X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community User-Agent: Mutt/1.5.13 (2006-08-11) Cc: Gary Kline , Joe Holden , FreeBSD Mailing List Subject: Re: firefox, mozilla won't display PHP (Was: Re: firefox, extensions, and *.php pages) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Feb 2007 20:53:00 -0000 On Sat, Feb 03, 2007 at 09:28:06AM -0800, Ted Mittelstaedt wrote: > > ----- Original Message ----- > From: "Gary Kline" > To: "Joe Holden" > Cc: "Gary Kline" ; "FreeBSD Mailing List" > > Sent: Friday, February 02, 2007 11:08 PM > Subject: Re: firefox, mozilla won't display PHP (Was: Re: firefox, > extensions,and *.php pages) > > > > On Sat, Feb 03, 2007 at 06:38:10AM +0000, Joe Holden wrote: > > > Gary Kline wrote: > > > >On Fri, Feb 02, 2007 at 04:53:39PM -0800, Gary Kline wrote: > > > > > > > > > > > > > > > > Well, the fact that my trying seever firefox addson and the > > > > failure of firefox and mozilla to display my PHP files just > > > > happened to be co-incident. As of this writing, none of my > > > > browsers displays my php pages. I am rebuilding php5; php4 > > > > refuses to build. > > > > > > > > If anybody knows if I ought to be building php4, please let me > > > > know. --I've surfed the web looking for answers; so far, > > > > nothing-works.... > > > > > > > > (*******) > > > > > > > >> "You have chosen to open > > > >> > > > >> [ .... ] (blank) > > > >> > > > >> which is a: appplication/x-httpd-php > > > >> from http://www.thought.org > > > >> > > > >> What should Firefox do with this file?" > > > >> > > > >> The one of three options *not* greyed out is: > > > >> > > > >> (*) Save to Disk > > > >> > > > >> > > > >> What's going on? And/or: how did I shoot myself in the foot? > > > >> > > > >> thanks for any insights; a couple of these addon are useful... > > > >> > > > >> gary > > > >> > > > > > > You've added AddType lines to config, but the module is missing, or > > > isn't being loaded presumably. > > > > > > > > Right; after a couple hours tracing, I find that for some reason, > > devel/libtool15 says that regex/regcomp.lo isn't valid. > > > > > > > > root@sage:/usr/ports/lang/php4/work/php-4.4.4# k > > "Makefile", line 496: warning: duplicate script for target > > "main/internal_functions.lo" ignored > > /bin/sh /usr/local/bin/libtool --preserve-dup-deps --mode=link cc > > -export-dynamic -pipe -g -Wall regex/regcomp.lo regex/regexec.lo > > > > [[ ... ] > > > > Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo > > Zend/zend_strtod.lo Zend/zend_canary.lo Zend/zend_execute.lo > > sapi/cgi/libfcgi/fcgi_stdio.lo sapi/cgi/libfcgi/fcgiapp.lo > > sapi/cgi/libfcgi/os_unix.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo > > main/internal_functions.lo -lcrypt -lcrypt -lm -lcrypt -lcrypt -o > > sapi/cgi/php > > libtool: link: `regex/regcomp.lo' is not a valid libtool object > > *** Error code 1 > > > > > > > > I have php4 and apache running on other servers, and there, > > when I point mozilla at a php file, it works, of course.. > > --So: nothing to do with the "extensions"; for unknown reasons, > > php4 will not build. > > > > Has anybody else experienced this snufu?? > > > > Yes. I assume your building php from the ports? > > What you have to do is do a make deinstall in -all- the php4 > directories, as well as apache, then cvsupdate your ports, > then do a make install to put everything back together. > > If you don't go through the correct make deinstall procedure and you > just try overwriting stuff you will end up with a mess. That is > probably what happened here. > Thanks for the clue!! Now, is there any way to automagically deinstalll all php4 ports? And:: is php5 worth going for? From what I've seen of php5, I Like it. gary > Ted > -- Gary Kline kline@thought.org www.thought.org Public Service Unix