Bug 28781 - module compilations troubles if regex if used
Summary: module compilations troubles if regex if used
Status: RESOLVED DUPLICATE of bug 27550
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.1-HEAD
Hardware: PC other
: P3 normal with 2 votes (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-05 13:15 UTC by Maxim Zakharov
Modified: 2005-02-25 08:45 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Zakharov 2004-05-05 13:15:28 UTC
I'm trying to port my module to Apache2. This module uses system regex calls. 
I have following error when trying to compile: 
In file included from ../include/dps_common.h:27, 
                 from ../include/dpsearch.h:22, 
                 from mod_dpsearch.c:31: 
/usr/include/regex.h:62: warning: `REG_EXTENDED' redefined 
/httpd2/include/pcreposix.h:34: warning: this is the location of the previous 
definition 
... 
etc. 
 
It looks like all rerex related difinition is doubled in pcreposix.h. 
 
I think, Apache's regex related functions and definitions should have prefix 
ap_ to avoid this mess.
Comment 1 Joe Orton 2005-02-25 17:45:53 UTC
Yes indeed; this is done in 2.1.3.

*** This bug has been marked as a duplicate of 27550 ***