php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52187 apache2handler build error
Submitted: 2010-06-26 00:12 UTC Modified: 2018-04-08 16:37 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: maxim dot novozhilov at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Apache2 related
PHP Version: 5.2.13 OS: FreeBSD 7.3-RELEASE (amd64)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: maxim dot novozhilov at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-26 00:12 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-26 19:27 UTC] felipe@php.net
-Summary: build error +Summary: apache2handler build error
 [2010-06-26 19:27 UTC] felipe@php.net
-Package: *General Issues +Package: Apache2 related
 [2010-06-26 23:23 UTC] kalle@php.net
-Status: Open +Status: Feedback
 [2010-06-26 23:23 UTC] kalle@php.net
Would something as simple as adding, between the two #include statements in mod_php5.c:
#undef regoff_t
 [2010-06-26 23:24 UTC] 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-27 20:30 UTC] maxim dot novozhilov at gmail dot com
-Status: Feedback +Status: Open
 [2010-06-27 20:30 UTC] 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-07-24 07:56 UTC] think4ur at gmail dot com
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 !
 [2018-04-08 16:37 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-04-08 16:37 UTC] cmb@php.net
> No, I compiled 5.3.2 from source w/o any problems.

Assuming this issue has been resolved one way or another, I'm
closing this ticket.  Please re-open if my assumption is wrong.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 19 06:01:28 2024 UTC