From owner-freebsd-ports-bugs@FreeBSD.ORG Sun May 27 03:50:04 2007 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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6B22F16A46C for ; Sun, 27 May 2007 03:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4780313C45B for ; Sun, 27 May 2007 03:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l4R3o4rV031052 for ; Sun, 27 May 2007 03:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l4R3o4ej031051; Sun, 27 May 2007 03:50:04 GMT (envelope-from gnats) Resent-Date: Sun, 27 May 2007 03:50:04 GMT Resent-Message-Id: <200705270350.l4R3o4ej031051@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, James Risner Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F1A116A400 for ; Sun, 27 May 2007 03:40:19 +0000 (UTC) (envelope-from risner@akira.stdio.com) Received: from akira.stdio.com (akira.stdio.com [204.152.114.29]) by mx1.freebsd.org (Postfix) with ESMTP id D8C2313C44B for ; Sun, 27 May 2007 03:40:18 +0000 (UTC) (envelope-from risner@akira.stdio.com) Received: by akira.stdio.com (Postfix, from userid 1001) id A981B50860; Sat, 26 May 2007 23:18:00 -0400 (EDT) Message-Id: <20070527031800.A981B50860@akira.stdio.com> Date: Sat, 26 May 2007 23:18:00 -0400 (EDT) From: James Risner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/113045: php 5.2.2 simplexml fails to compile X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: James Risner List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2007 03:50:04 -0000 >Number: 113045 >Category: ports >Synopsis: php 5.2.2 simplexml fails to compile >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun May 27 03:50:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: James Risner >Release: FreeBSD 6.2-STABLE i386 >Organization: None >Environment: System: FreeBSD akira.stdio.com 6.2-STABLE FreeBSD 6.2-STABLE #15: Wed Apr 11 15:06:43 EDT 2007 root@akira.stdio.com:/usr/obj/usr/src/sys/AKIRA i386 P4 2.8ghz 2 gb ram 1 tb disk >Description: Have PHP 5.2.1 installed with simplexml, attempt to upgrade to 5.2.2. When making simplexml you get this error: /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/simplexml.c:38:29: ext/spl/spl_sxe.h: No such file or directory *** Error code 1 Stop in /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml. *** Error code 1 Stop in /usr/ports/textproc/php5-simplexml. mail# >How-To-Repeat: cd /usr/ports/texproc/php5-simplexml; make >Fix: I googled around and didn't find anything on this error, so I quickly fixed it for now. It would appear that spl is referenced by simplexml and that referencing one extension from another breaks some sort of model for the way the PHP5 port worked. It only extracted the extension it was compiling. A proper fix may be to extract all extensions or to just extract this one (spl) along with all others? If I am confused and did something wrong, please excuse me. Thanks. I added a symbolic link and modified /usr/ports/lang/php5/Makefile.ext as follows: mail# pwd /usr/ports/textproc/php5-simplexml mail# ls -l work/php-5.2.2/ext/simplexml/include/ total 0 lrwxr-xr-x 1 root wheel 13 May 26 23:04 ext -> ../../../ext/ mail# grep /ext/spl /usr/ports/lang/php5/Makefile.ext EXTRACT_AFTER_ARGS?= | ${TAR} -xf - ${EXTSUBDIR} ${DISTNAME}/ext/spl cmds: ln -s ../../../ext /usr/ports/textproc/php5-simplexml/work/php-5.2.2/ext/simplexml/include/ cp /usr/ports/lang/php5/Makefile.ext /usr/ports/lang/php5/Makefile.ext.old sed -e 's#\(${TAR} -xf - ${EXTSUBDIR}\)#\1 ${DISTNAME}/ext/spl#' \ < /usr/ports/lang/php5/Makefile.ext.old \ > /usr/ports/lang/php5/Makefile.ext >Release-Note: >Audit-Trail: >Unformatted: