From:
Operating system: FreeBSD 7.3-RELEASE (amd64)
PHP version: 5.2.13
Package: *General Issues
Bug Type: Bug
Bug description:build error
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 bug report at http://bugs.php.net/bug.php?id=52187&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52187&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52187&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52187&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52187&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52187&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52187&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52187&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52187&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52187&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52187&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52187&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52187&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52187&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52187&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52187&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52187&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52187&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52187&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52187&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52187&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52187&r=mysqlcfg