From risner@akira.stdio.com  Sun May 27 03:40:19 2007
Return-Path: <risner@akira.stdio.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 1F1A116A400
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <risner@stdio.com>
Reply-To: James Risner <risner@stdio.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: php 5.2.2 simplexml fails to compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         113045
>Category:       ports
>Synopsis:       textproc/php4-simplexml - php 5.2.2 simplexml fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 27 03:50:03 GMT 2007
>Closed-Date:    Sun May 27 06:45:30 GMT 2007
>Last-Modified:  Sun May 27 06:45:30 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun May 27 04:10:25 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113045 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Sun May 27 06:44:43 UTC 2007 
State-Changed-Why:  
Your php installation in screwed up, remove all php ports and 
reinstall them. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113045 
>Unformatted:
