Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2010 01:07:59 -0400
From:      Dan Langille <dan@langille.org>
To:        ports@freebsd.org
Subject:   php5 upgrade woes
Message-ID:  <4BC7F0AF.1010903@langille.org>

next in thread | raw e-mail | index | archive | help
I've been trying for two days to upgrade php5. I fail.

history:

http://forums.freebsd.org/showthread.php?t=13284

Short story:

error: pcrelib/pcre.h: No such file or directory

FreeBSD 8.0-STABLE #0: Tue Apr 13 19:28:24 BST 2010


Long story:

[root@ngaio:/usr/ports/lang/php5-extensions] # make clean
===>  Cleaning for php5-simplexml-5.3.2
===>  Cleaning for php5-extensions-1.4
[root@ngaio:/usr/ports/lang/php5-extensions] # make install
===>  Found saved configuration for php5-extensions-1.4
===>  Extracting for php5-extensions-1.4
===>  Patching for php5-extensions-1.4
===>   php5-extensions-1.4 depends on file: 
/usr/local/include/php/main/php.h - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/bz2.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/ctype.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/dba.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/dom.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/gd.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/gettext.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/hash.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/iconv.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/json.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/mysql.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/openssl.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/pdo.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/pgsql.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/posix.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/session.so - found
===>   php5-extensions-1.4 depends on file: 
/usr/local/lib/php/20090626/simplexml.so - not found
===>    Verifying install for /usr/local/lib/php/20090626/simplexml.so 
in /usr/ports/textproc/php5-simplexml
===>  Extracting for php5-simplexml-5.3.2
=> MD5 Checksum OK for php-5.3.2.tar.bz2.
=> SHA256 Checksum OK for php-5.3.2.tar.bz2.
===>  Patching for php5-simplexml-5.3.2
===>   php5-simplexml-5.3.2 depends on file: /usr/local/bin/phpize - found
===>   php5-simplexml-5.3.2 depends on file: 
/usr/local/bin/autoconf-2.62 - found
===>   php5-simplexml-5.3.2 depends on executable: pkg-config - found
===>   php5-simplexml-5.3.2 depends on shared library: xml2.5 - found
===>  PHPizing for php5-simplexml-5.3.2
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
===>  Configuring for php5-simplexml-5.3.2
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-portbld-freebsd8.0
checking host system type... i386-portbld-freebsd8.0
checking target system type... i386-portbld-freebsd8.0
checking for PHP prefix... /usr/local
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/lib/php/20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to 
regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable SimpleXML support... yes, shared
checking libxml2 install dir... /usr/local
checking for xml2-config path... /usr/local/bin/xml2-config
checking whether libxml build works... yes
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared 
libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.0 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking for c++ option to produce PIC...
checking if c++ static flag  works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared 
libraries... yes
checking dynamic linker characteristics... freebsd8.0 ld.so
(cached) (cached) checking how to hardcode library paths into 
programs... unsupported
configure: creating ./config.status
config.status: creating config.h
===>  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.
[root@ngaio:/usr/ports/lang/php5-extensions] #

-- 
Dan Langille - http://langille.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BC7F0AF.1010903>