From nobody@FreeBSD.org  Thu Apr 15 20:56:32 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4E3621065670
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2010 20:56:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3D5B88FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2010 20:56:32 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3FKuVYC086910
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 Apr 2010 20:56:31 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3FKuVrE086909;
	Thu, 15 Apr 2010 20:56:31 GMT
	(envelope-from nobody)
Message-Id: <201004152056.o3FKuVrE086909@www.freebsd.org>
Date: Thu, 15 Apr 2010 20:56:31 GMT
From: Helmut Schneider <jumper99@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/php5-filter fails to build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145732
>Category:       ports
>Synopsis:       security/php5-filter fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 15 21:00:13 UTC 2010
>Closed-Date:    Fri Apr 16 08:25:40 UTC 2010
>Last-Modified:  Fri Apr 16 11:30:03 UTC 2010
>Originator:     Helmut Schneider
>Release:        8.0-RELEASE-p1
>Organization:
>Environment:
>Description:
[root@BSDHelmut /usr/ports/security/php5-filter]# make clean
===>  Cleaning for php5-filter-5.3.2
[root@BSDHelmut /usr/ports/security/php5-filter]# make
===>  Vulnerability check disabled, database not found
===>  Extracting for php5-filter-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-filter-5.3.2
===>  Applying FreeBSD patches for php5-filter-5.3.2
===>   php5-filter-5.3.2 depends on file: /usr/local/bin/phpize - found
===>   php5-filter-5.3.2 depends on file: /usr/local/bin/autoconf-2.62 - found
===>  PHPizing for php5-filter-5.3.2
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
===>  Configuring for php5-filter-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... amd64-portbld-freebsd8.0
checking host system type... amd64-portbld-freebsd8.0
checking target system type... amd64-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 input filter support... yes, shared
checking pcre install prefix... /usr/local
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-filter-5.3.2
/bin/sh /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/libtool --mode=compile cc  -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/filter.c -o filter.lo
/bin/sh /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/libtool --mode=compile cc  -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/sanitizing_filters.c -o sanitizing_filters.lo
/bin/sh /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/libtool --mode=compile cc  -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c -o logical_filters.lo
/bin/sh /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/libtool --mode=compile cc  -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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  -DHAVE_CONFIG_H  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/callback_filter.c -o callback_filter.lo
mkdir .libs
mkdir .libs
mkdir: .libs: File exists
 cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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 -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/sanitizing_filters.c  -fPIC -DPIC -o .libs/sanitizing_filters.o
 cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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 -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/filter.c  -fPIC -DPIC -o .libs/filter.o
 cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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 -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/callback_filter.c  -fPIC -DPIC -o .libs/callback_filter.o
 cc -I. -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -DPHP_ATOM_INC -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/include -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/main -I/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter -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 -DHAVE_CONFIG_H -O2 -pipe -fno-strict-aliasing -c /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c  -fPIC -DPIC -o .libs/logical_filters.o
In file included from /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:25:
/usr/local/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:25:
/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'
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c: In function 'php_filter_validate_regexp':
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412: error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412: error: (Each undeclared identifier is reported only once
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412: error: for each function it appears in.)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:412: error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:413: error: 'pcre_extra' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c: In function 'php_filter_validate_email':
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:500: error: 'pcre' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:500: error: 're' undeclared (first use in this function)
/usr/ports/security/php5-filter/work/php-5.3.2/ext/filter/logical_filters.c:501: error: 'pcre_extra' undeclared (first use in this function)
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/security/php5-filter.
[root@BSDHelmut /usr/ports/security/php5-filter]# php -v

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP 5.3.2 with Suhosin-Patch (cli) (built: Apr 15 2010 22:24:27)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[root@BSDHelmut /usr/ports/security/php5-filter]#

The machine was upgraded from 5.2 to 5.3 before according to /usr/ports/UPDATING
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Apr 15 21:00:24 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145732 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Fri Apr 16 08:25:23 UTC 2010 
State-Changed-Why:  
Read UPDATING (hint: rebuild lang/php5). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=145732 

From: "Helmut Schneider" <jumper99@gmx.de>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: ports/145732: security/php5-filter fails to build
Date: Fri, 16 Apr 2010 13:29:26 +0200

 > Read UPDATING (hint: rebuild lang/php5).
 
 UPDATING is not very helpful at that point because it is incomplete. A 
 separate PR has already been opened by others.
 
 The point is that removing php5-pcre does not completely remove pcre (tested 
 on ~10 machines):
 
 [root@BSDHelmut ~]# pkg_delete -f php5*
 [...]
 pkg_delete: unable to completely remove directory 
 '/usr/local/include/php/Zend'
 pkg_delete: unable to completely remove directory 
 '/usr/local/include/php/ext/pcre'
 pkg_delete: unable to completely remove directory 
 '/usr/local/include/php/ext/standard'
 pkg_delete: unable to completely remove directory 
 '/usr/local/include/php/main'
 pkg_delete: couldn't entirely delete package (perhaps the packing list is
 incorrectly specified?)
 [root@BSDHelmut ~]# ls /usr/local/include/php/
 Zend/  ext/   main/  regex/
 [root@BSDHelmut ~]#
 
 As long as "/usr/local/include/php/ext/pcre" exists installation *must* 
 fail. Please make instructions in UPDATING failsafe for standard users 
 
>Unformatted:
