Edit report at http://bugs.php.net/bug.php?id=52187&edit=1
ID: 52187 Updated by: ka...@php.net Reported by: maxim dot novozhilov at gmail dot com Summary: apache2handler build error -Status: Open +Status: Feedback Type: Bug Package: Apache2 related Operating System: FreeBSD 7.3-RELEASE (amd64) PHP Version: 5.2.13 New Comment: Would something as simple as adding, between the two #include statements in mod_php5.c: #undef regoff_t Previous Comments: ------------------------------------------------------------------------ [2010-06-26 00:12:06] maxim dot novozhilov at gmail dot com Description: ------------ Try ./configure --with-apxs2=/usr/local/sbin/apxs then `make` and you get always build error: previous declaration of 'regoff_t' was here The same for 5.2.14RC1 I have apache-2.0.63 installed on x64 system Actual result: -------------- /bin/sh /usr/home/max/dist/php-5.2.13/libtool --silent --preserve-dup-deps -- mode=compile gcc -DBIG_SECURITY_HOLE -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/home/max/dist/php-5.2.13/sapi/apache2handler/ -DPHP_ATOM_INC - I/usr/home/max/dist/php-5.2.13/include -I/usr/home/max/dist/php-5.2.13/main - I/usr/home/max/dist/php-5.2.13 -I/usr/home/max/dist/php-5.2.13/ext/date/lib - I/usr/local/include/libxml2 -I/usr/local/include -I/usr/home/max/dist/php- 5.2.13/TSRM -I/usr/home/max/dist/php-5.2.13/Zend -I/usr/local/include -g -O2 -c /usr/home/max/dist/php-5.2.13/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo In file included from /usr/local/include/apache2/httpd.h:44, from /usr/home/max/dist/php- 5.2.13/sapi/apache2handler/php_apache.h:24, from /usr/home/max/dist/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/home/max/dist/php-5.2.13/regex/regex.h:17: error: previous declaration of 'regoff_t' was here *** Error code 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52187&edit=1