From: Sergey Matveychuk on
Hi.

I've update apache20 to the freshest version and I've tried update
php52, but fails with a compilation error:

-----
/bin/sh /usr/ports/lang/php52/work/php-5.2.13/libtool --silent
--preserve-dup-deps --mode=compile cc -I/usr/local/include/apache2
-D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/apr-0
-I/usr/local/include/apr-0 -I/usr/local/include
-I/usr/local/include/db42 -Isapi/apache2handler/
-I/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/
-DPHP_ATOM_INC -I/usr/ports/lang/php52/work/php-5.2.13/include
-I/usr/ports/lang/php52/work/php-5.2.13/main
-I/usr/ports/lang/php52/work/php-5.2.13
-I/usr/ports/lang/php52/work/php-5.2.13/ext/date/lib
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/ports/lang/php52/work/php-5.2.13/TSRM
-I/usr/ports/lang/php52/work/php-5.2.13/Zend -O2 -fno-strict-aliasing
-pipe -march=prescott -prefer-non-pic -c
/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/sapi_apache2.c
-o sapi/apache2handler/sapi_apache2.lo
In file included from /usr/local/include/apache2/httpd.h:44,
from
/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/
php_apache.h:24,
from
/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/
mod_php5.c:26:
/usr/local/include/apache2/ap_regex.h:90: error: conflicting types for
'regoff_t
'
/usr/ports/lang/php52/work/php-5.2.13/regex/regex.h:17: error: previous
declarat
ion of 'regoff_t' was here
*** Error code 1
In file included from /usr/local/include/apache2/httpd.h:44,
/bin/sh /usr/ports/lang/php52/work/php-5.2.13/libtool --silent
--preserve-dup-de
ps --mode=compile cc -I/usr/local/include/apache2 -D_REENTRANT
-D_THREAD_SAFE
-I/usr/local/include/apr-0 -I/usr/local/include/apr-0
-I/usr/local/include -I/
usr/local/include/db42 -Isapi/apache2handler/
-I/usr/ports/lang/php52/work/php-5
..2.13/sapi/apache2handler/ -DPHP_ATOM_INC
-I/usr/ports/lang/php52/work/php-5.2.1
3/include -I/usr/ports/lang/php52/work/php-5.2.13/main
-I/usr/ports/lang/php52/w
ork/php-5.2.13 -I/usr/ports/lang/php52/work/php-5.2.13/ext/date/lib
-I/usr/local
/include/libxml2 -I/usr/local/include
-I/usr/ports/lang/php52/work/php-5.2.13/TS
RM -I/usr/ports/lang/php52/work/php-5.2.13/Zend -O2
-fno-strict-aliasing -pip
e -march=prescott -prefer-non-pic -c
/usr/ports/lang/php52/work/php-5.2.13/sapi
/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo
In file included from /usr/local/include/apache2/httpd.h:44,
from
/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/
php_apache.h:24,
from
/usr/ports/lang/php52/work/php-5.2.13/sapi/apache2handler/
mod_php5.c:26:
/usr/local/include/apache2/ap_regex.h:90: error: conflicting types for
'regoff_t
'
/usr/ports/lang/php52/work/php-5.2.13/regex/regex.h:17: error: previous
declarat
ion of 'regoff_t' was here
*** Error code 1
In file included from /usr/local/include/apache2/httpd.h:44,
-----

I've fixed it by commenting of the line:

typedef int regoff_t;

in /usr/local/include/apache2/ap_regex.h but I wonder if somebody got
the error too?
--
Sem.
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"