From: Beor on
Hello,
I am trying to upgrade php5-filter on a fresh FBSD 8.0 on AMD64 and I start
having problems below. I have a working instalation of php 5.3. The only way I
could install php5-filter was to use a package (portinstall -PP php5-filter).
I have almost the same problem with php5-zip.
I would appreciate if anyone can give me some hints about installing this port.

=======
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
=======

After which the upgrade proces fails with the so-ever-helpful message
"** Fix the problem and try again." and

=======
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! security/php5-filter (php5-filter-5.2.11) (missing header)
=======
From: Indi on
On 2010-05-13, Beor <gabi(a)beor.homeip.net> wrote:
> Hello,
> I am trying to upgrade php5-filter on a fresh FBSD 8.0 on AMD64 and I start
> having problems below. I have a working instalation of php 5.3. The only way I
> could install php5-filter was to use a package (portinstall -PP php5-filter).
> I have almost the same problem with php5-zip.
> I would appreciate if anyone can give me some hints about installing this port.
>

The ports mailing list archive has some recent entries that may be applicable:

http://lists.freebsd.org/pipermail/freebsd-ports/2010-April/060635.html

HTH...
--
Caveat utilitor,
indi