Bug #52187 [Com]: apache2handler build error
| From: | think4ur at gmail dot com | Date: | Sat, 24 Jul 2010 05:56:33 +0000 |
| Subject: | Bug #52187 [Com]: apache2handler build error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152707@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52187&edit=1
ID: 52187
Comment by: think4ur at gmail dot com
Reported by: maxim dot novozhilov at gmail dot com
Summary: apache2handler build error
Status: Open
Type: Bug
Package: Apache2 related
Operating System: FreeBSD 7.3-RELEASE (amd64)
PHP Version: 5.2.13
New Comment:
for example,, in freebsd 7.2, apache-2.0.63_15, php-5.2.13
vi /usr/local/include/apache2/ap_regex.h:90
change "typedef int regoff_t" to " /* typedef int regoff_t */ "
I was solved !
Previous Comments:
------------------------------------------------------------------------
[2010-06-27 20:30:10] maxim dot novozhilov at gmail dot com
> Does this happen on 5.3.x?
No, I compiled 5.3.2 from source w/o any problems.
------------------------------------------------------------------------
[2010-06-26 23:24:00] kalle@php.net
Does this happen on 5.3.x? Just wondering since we don't bundle the
regex lib in the root anymore
------------------------------------------------------------------------
[2010-06-26 23:23:08] kalle@php.net
Would something as simple as adding, between the two #include statements
in mod_php5.c:
#undef regoff_t
------------------------------------------------------------------------
[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