PHP upgrade

I am annoyed, but happy that this is only my development server, and not my production server.
 
FBSDin20Steps said:
You can't install php5 because php5-filter gives you the error?

php5 is installed. I'm now trying to install php5-extensions:

Code:
/php-5.3.2/ext/simplexml/sxe.c -o sxe.lo
 cc -I. -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-simplexml/work/php-
5.3.2/ext/simplexml/include -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/main -I/usr/ports/textproc/php5-simplexml
/work/php-5.3.2/ext/simplexml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include
/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H 
-O2 -pipe -fno-strict-aliasing -c /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c  -fPIC -DPIC -o .libs/sxe.o
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
from /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c:31:
/usr/local/include/php/ext/pcre/php_pcre.h:27:26: error: pcrelib/pcre.h: No suchfile or directory
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
from /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c:31:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/textproc/php5-simplexml.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
[root@ngaio:/usr/ports/lang/php5-extensions] #

and here is what goes smoothly:

Code:
 # pkg_info | grep -i php5
php5-5.3.2          PHP Scripting Language
php5-bz2-5.3.2      The bz2 shared extension for php
php5-ctype-5.3.2    The ctype shared extension for php
php5-dba-5.3.2      The dba shared extension for php
php5-dom-5.3.2      The dom shared extension for php
php5-gd-5.3.2       The gd shared extension for php
php5-gettext-5.3.2  The gettext shared extension for php
php5-hash-5.3.2     The hash shared extension for php
php5-iconv-5.3.2    The iconv shared extension for php
php5-json-5.3.2     The json shared extension for php
php5-mysql-5.3.2    The mysql shared extension for php
php5-openssl-5.3.2  The openssl shared extension for php
php5-pdo-5.3.2      The pdo shared extension for php
php5-pgsql-5.3.2    The pgsql shared extension for php
php5-posix-5.3.2    The posix shared extension for php
php5-session-5.3.2  The session shared extension for php
 
No issues at all.

Code:
 The following actions were performed:
	Re-installation of php5-5.3.2
	Re-installation of php5-tokenizer-5.3.2
	Re-installation of php5-session-5.3.2
	Re-installation of php5-sqlite-5.3.2
	Re-installation of php5-ctype-5.3.2
	Re-installation of php5-gettext-5.3.2
	Re-installation of php5-zlib-5.3.2
	Re-installation of php5-filter-5.3.2
	Re-installation of php5-pdo-5.3.2
	Re-installation of php5-pdo_sqlite-5.3.2
	Re-installation of php5-iconv-5.3.2
	Re-installation of php5-hash-5.3.2
	Re-installation of php5-bz2-5.3.2
	Re-installation of php5-mysql-5.3.2
	Re-installation of php5-json-5.3.2
	Re-installation of php5-gd-5.3.2
	Re-installation of php5-openssl-5.3.2
	Re-installation of php5-posix-5.3.2
	Re-installation of php5-dom-5.3.2
	Re-installation of php5-simplexml-5.3.2
	Re-installation of php5-xml-5.3.2
	Re-installation of php5-xmlreader-5.3.2
	Re-installation of php5-xmlwriter-5.3.2
	Re-installation of php5-extensions-1.4
	Re-installation of php5-mbstring-5.3.2
	Re-installation of php5-zip-5.3.2
	Re-installation of php5-imap-5.3.2
	Re-installation of php5-xmlrpc-5.3.2
	Re-installation of php5-mcrypt-5.3.2

Did you clean up unused dependencies related to pcre?
 
Well, at this point in time, I have no PHP ports installed (they fail), so there will be failed dependencies:

Code:
===>>> Checking fruity-1.0.r2_3
        ===>>> www/php5-session is listed as a dependency
        ===>>> but there is no installed version

        ===>>> Delete this dependency data? y/n [n] n
        ===>>> databases/php5-mysql is listed as a dependency
        ===>>> but there is no installed version

Not much value in doing that....
 
Current status, which is unchanged from my original post.

The problem is: pcrelib/pcre.h: No such file or directory

Code:
===>  Building for php5-simplexml-5.3.2
/bin/sh /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/libtool --mode=compile cc  -I. -I/usr/ports/textproc/php5-simplexml
/work/php-5.3.2/ext/simplexml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/include -I/usr/ports/textproc
/php5-simplexml/work/php-5.3.2/ext/simplexml/main -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include
/php/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/textproc
/php5-simplexml/work/php-5.3.2/ext/simplexml/simplexml.c -o simplexml.lo
mkdir .libs
 cc -I. -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-simplexml/work/php-
5.3.2/ext/simplexml/include -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/main -I/usr/ports/textproc/php5-simplexml
/work/php-5.3.2/ext/simplexml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include
/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H 
-O2 -pipe -fno-strict-aliasing -c /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/simplexml.c  -fPIC -DPIC -o .libs/simplexml.o
/bin/sh /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/libtool --mode=compile cc  -I. -I/usr/ports/textproc/php5-simplexml
/work/php-5.3.2/ext/simplexml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/include -I/usr/ports/textproc
/php5-simplexml/work/php-5.3.2/ext/simplexml/main -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml -I/usr/local/include/php 
-I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include
/php/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/textproc
/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c -o sxe.lo
 cc -I. -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml -DPHP_ATOM_INC -I/usr/ports/textproc/php5-simplexml/work/php-
5.3.2/ext/simplexml/include -I/usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/main -I/usr/ports/textproc/php5-simplexml
/work/php-5.3.2/ext/simplexml -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include
/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/local/include/libxml2 -I/usr/local/include -DHAVE_CONFIG_H 
-O2 -pipe -fno-strict-aliasing -c /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c  -fPIC -DPIC -o .libs/sxe.o
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
                 from /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c:31:
/usr/local/include/php/ext/pcre/php_pcre.h:27:26: error: pcrelib/pcre.h: No such file or directory
In file included from /usr/local/include/php/ext/spl/spl_iterators.h:27,
                 from /usr/ports/textproc/php5-simplexml/work/php-5.3.2/ext/simplexml/sxe.c:31:
/usr/local/include/php/ext/pcre/php_pcre.h:37: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before 'pcre'
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/textproc/php5-simplexml.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
 
That's strange, because this is in lang/php5's pkg-pklist:

Code:
%%PCRE%%include/php/ext/pcre/pcrelib/pcre.h

Though it's not present on my PHP installations either.

I do have /usr/local/include/php/ext/pcre/php_pcre.h (which is also in the pkg-plist)
 
First, you have to delete php5-pcre. Rebuild php5-filter and php5

Code:
[/usr/ports] # make quicksearch name=php5-pcre
Port:   devel/php5-pcre
Moved:  lang/php5
Date:   2010-04-09
Reason: Bundled in core php
 
There is some movement on this topic:

This just showed up in the ports tree:

Code:
lang/php5 - 5.3.2

Add CONFLICTS to php5-pcre and php5-spl.
 
Back
Top