compilation error of php52

Philip M. Gollucci pgollucci at p6m7g8.com
Fri Jun 18 03:21:04 UTC 2010


You should file a bug.  myself of ale@ will need to patch the php52 port
to account for the changes to www/apche20.

I'd suggest you use www/apache22 instead which does not have this issue.





On 6/9/2010 9:27 PM, Sergey Matveychuk wrote:
> 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?


-- 
------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci at p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer,                        FreeBSD Foundation
Consultant,                       P6M7G8 Inc.
Sr. System Admin,                 Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100618/dad4a766/signature.pgp


More information about the freebsd-ports mailing list