From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 8 02:00:34 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A28D616A41F for ; Thu, 8 Dec 2005 02:00:34 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC34D43D62 for ; Thu, 8 Dec 2005 02:00:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jB820Q7n016124 for ; Thu, 8 Dec 2005 02:00:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jB820Qv9016123; Thu, 8 Dec 2005 02:00:26 GMT (envelope-from gnats) Resent-Date: Thu, 8 Dec 2005 02:00:26 GMT Resent-Message-Id: <200512080200.jB820Qv9016123@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Melvyn Sopacua Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84F5A16A41F for ; Thu, 8 Dec 2005 01:52:53 +0000 (GMT) (envelope-from mdev@melvyn.homeunix.org) Received: from sarevok.lan.melvyn.homeunix.org (i153153.upc-i.chello.nl [62.195.153.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id D183943D6E for ; Thu, 8 Dec 2005 01:52:46 +0000 (GMT) (envelope-from mdev@melvyn.homeunix.org) Received: by sarevok.lan.melvyn.homeunix.org (Postfix, from userid 100) id 5B09A11437; Thu, 8 Dec 2005 02:52:45 +0000 (UTC) Message-Id: <20051208025245.5B09A11437@sarevok.lan.melvyn.homeunix.org> Date: Thu, 8 Dec 2005 02:52:45 +0000 (UTC) From: Melvyn Sopacua To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/90092: php5 (possibly php4) and www/apache22 build broken X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 02:00:34 -0000 >Number: 90092 >Category: ports >Synopsis: php5 (possibly php4) and www/apache22 build broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 08 02:00:26 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Melvyn Sopacua >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD sarevok 6.0-STABLE FreeBSD 6.0-STABLE #1: Wed Dec 7 14:57:25 UTC 2005 root@sarevok:/usr/obj/stable/usr/current/src/sys/SAREVOK i386 >Description: Logic error in lang/php5/Makefile: Assumes WITH_APACHE2 is only set when $LOCALBASE/include/apache2/httpd.h exists and forces APACHE_PORT to www/apache20, but this doesn't trigger the install and/or conflict if apache22 is installed instead. Additionally, apache22 and php5, don't build nicely: /usr/local/share/apache22/build/instdso.sh SH_LIBTOOL='/usr/local/build-1/libtool' libphp5.la /usr/local/libexec/apache22 /usr/local/build-1/libtool --mode=install cp libphp5.la /usr/local/libexec/apache22/ cp .libs/libphp5.so /usr/local/libexec/apache22/libphp5.so libtool: install: warning: remember to run `libtool --finish /stable/usr/ports/lang/php5/work/php-5.0.5/libs' sed: 1: "/^dlname=/{s/.*='\([^'] ...": extra characters at the end of p command sed: 1: "/^library_names/{s/libr ...": extra characters at the end of p command Warning! dlname not found in /usr/local/libexec/apache22/libphp5.la. Assuming installing a .so rather than a libtool archive. chmod 755 /usr/local/libexec/apache22/libphp5.so ... Creating bzip'd tar ball in '/home/packages-6/All/php5-5.0.5_2.tbz' tar: libexec/apache2/libphp5.so: Cannot stat: No such file or directory pkg_create: make_dist: tar command failed with code 256 However - it seems to work: $ printf 'GET / HTTP/1.0\n\n' | nc -4 localhost 80 HTTP/1.1 200 OK Date: Thu, 08 Dec 2005 02:18:51 GMT Server: Apache/2.2.0 (FreeBSD) mod_ssl/2.2.0 OpenSSL/0.9.7e-p1 PHP/5.0.5 Last-Modified: Wed, 07 Dec 2005 23:58:08 GMT ETag: "524cd-2d-ec7fe400" Accept-Ranges: bytes Content-Length: 45 Connection: close Content-Type: text/html

It works!

>How-To-Repeat: pkg_deinstall -f 'www/apache*' #if applicable portinstall www/apache22; portinstall lang/php5 >Fix: Two possible fixes: 1) Apache22/php5 not encouraged/supported: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/lang/php5/Makefile,v retrieving revision 1.90 diff -u -r1.90 Makefile --- Makefile 4 Dec 2005 00:18:08 -0000 1.90 +++ Makefile 8 Dec 2005 00:56:16 -0000 @@ -125,6 +125,10 @@ .if exists(${LOCALBASE}/include/apache2/httpd.h) WITH_APACHE2= yes APACHE_MPM!= ${APXS} -q MPM_NAME +.else +.if defined(WITH_APACHE2) +BROKEN= php port currently only works with www/apache20 +.endif .endif .if defined(WITH_APACHE2) APACHE_MPM?= ${WITH_MPM} 2) Apache2[12]/php5 supported: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/lang/php5/Makefile,v retrieving revision 1.90 diff -u -r1.90 Makefile --- Makefile 4 Dec 2005 00:18:08 -0000 1.90 +++ Makefile 8 Dec 2005 01:49:44 -0000 @@ -125,12 +125,22 @@ .if exists(${LOCALBASE}/include/apache2/httpd.h) WITH_APACHE2= yes APACHE_MPM!= ${APXS} -q MPM_NAME +.elif exists(${LOCALBASE}/include/apache22/httpd.h) +WITH_APACHE2= yes +APACHE_MPM!= ${APXS} -q MPM_NAME +APACHE_PORT= www/apache22 +SAPI_FILE= libexec/apache22/libphp5.so +.elif exists(${LOCALBASE}/include/apache21/httpd.h) +WITH_APACHE2= yes +APACHE_MPM!= ${APXS} -q MPM_NAME +APACHE_PORT= www/apache21 +SAPI_FILE= libexec/apache21/libphp5.so .endif .if defined(WITH_APACHE2) APACHE_MPM?= ${WITH_MPM} -APACHE_PORT= www/apache20 +APACHE_PORT?= www/apache20 CONFIGURE_ARGS+=--with-apxs2=${APXS} -SAPI_FILE= libexec/apache2/libphp5.so +SAPI_FILE?= libexec/apache2/libphp5.so .if ${APACHE_MPM} == "worker" EXT_DIR:= ${EXT_DIR}-zts .endif >Release-Note: >Audit-Trail: >Unformatted: