From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 16:56:39 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52CA016A41F for ; Thu, 20 Oct 2005 16:56:39 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: from mail.neti.ee (smtp-out-3.neti.ee [194.126.101.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id B28FE43D5A for ; Thu, 20 Oct 2005 16:56:38 +0000 (GMT) (envelope-from toomas.aas@raad.tartu.ee) Received: from [84.50.65.51] (84-50-65-51-dsl.trt.estpak.ee [84.50.65.51]) by Relayhost2.neti.ee (Postfix) with ESMTP id 9CF5B202B for ; Thu, 20 Oct 2005 19:56:16 +0300 (EEST) Message-ID: <4357CC39.8080702@raad.tartu.ee> Date: Thu, 20 Oct 2005 19:56:25 +0300 From: Toomas Aas User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050408) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee Cc: Subject: Installing PHP5 in parallel with PHP4 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: Thu, 20 Oct 2005 16:56:39 -0000 Hello! We have a webserver where www/php4-cgi port is currently installed. Now we want to add PHP5, but we have some web applications which are not compatible with PHP5, so initially we want to have a server with both PHP4 and PHP5 installed. So far I did the following: mkdir /usr/local/php5 setenv PREFIX /usr/local/php5 cd /usr/ports/www/php5-cgi make install That seemed to work OK. Then I proceeded to build the necessary extension ports. Initially a lot of them failed to build with various syntax errors. I figured that this was because the build process was trying to use PHP4 header files from /usr/local/include/php, not the PHP5 header files from /usr/local/php5/include/php. So I did the following cd /usr/local/include mv php php4 ln -s /usr/local/php5/include/php . After that I could build most of the extensions I need. But two extensions - php5-wddx and php5-xml - are still failing. Both failures look the same: # make install ===> Vulnerability check disabled, database not found ===> Extracting for php5-wddx-5.0.5_1 => Checksum OK for php-5.0.5.tar.bz2. ===> Patching for php5-wddx-5.0.5_1 ===> Applying FreeBSD patches for php5-wddx-5.0.5_1 ===> php5-wddx-5.0.5_1 depends on file: /usr/local/include/php/main/php.h - found ===> php5-wddx-5.0.5_1 depends on executable: phpize - found ===> php5-wddx-5.0.5_1 depends on file: /usr/local/lib/php/20020429/xml.so - found ===> php5-wddx-5.0.5_1 depends on file: /usr/local/lib/php/20020429/session.so - found ===> php5-wddx-5.0.5_1 depends on file: /usr/local/bin/autoconf259 - found ===> php5-wddx-5.0.5_1 depends on executable: pkg-config - found ===> php5-wddx-5.0.5_1 depends on shared library: xml2.5 - found ===> PHPizing for php5-wddx-5.0.5_1 Configuring for: PHP Api Version: 20031224 Zend Module Api No: 20041030 Zend Extension Api No: 220040412 configure.in:20: error: possibly undefined macro: AC_MSG_ERROR If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. *** Error code 1 Stop in /usr/ports/textproc/php5-wddx. What should I do to fix this? Or maybe I'm going entirely wrong about how to install PHP4 and PHP5 on the same server? --- ... P.S. The secret of the universe is @*^^^&# NO CARRIER