php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22818 Build fails due a conflict with httpd-2.0.44 headers
Submitted: 2003-03-21 11:13 UTC Modified: 2003-03-21 16:58 UTC
From: alietss at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4CVS-2003-03-21 (stable) OS: Linux RedHat 8.0
Private report: No CVE-ID: None
 [2003-03-21 11:13 UTC] alietss at yahoo dot com
Hi boys.
I'm building rpms for php-4.3.2 on a RedHat8.0 box with httpd-2.0.44, the build process is failing with this error... after the error is my configure line

In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:26:1: warning: "REG_ICASE" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:266:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:27:1: warning: "REG_NEWLINE" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:271:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:28:1: warning: "REG_NOTBOL" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:285:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:29:1: warning: "REG_NOTEOL" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:288:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:34:1: warning: "REG_EXTENDED" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:262:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:35:1: warning: "REG_NOSUB" redefined
In file included from /usr/src/redhat/BUILD/php-4.3.2/main/php_regex.h:39,
                 from /usr/src/redhat/BUILD/php-4.3.2/main/php.h:74,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:25:
/usr/include/regex.h:275:1: warning: this is the location of the previous definition
In file included from /usr/include/httpd/httpd.h:86,
                 from /usr/include/httpd/util_filter.h:61,
                 from /usr/src/redhat/BUILD/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/include/httpd/pcreposix.h:41: conflicting types for `REG_BADBR'
/usr/include/regex.h:312: previous declaration of `REG_BADBR'
/usr/include/httpd/pcreposix.h:42: conflicting types for `REG_BADPAT'
/usr/include/regex.h:304: previous declaration of `REG_BADPAT'
/usr/include/httpd/pcreposix.h:43: conflicting types for `REG_BADRPT'
/usr/include/regex.h:315: previous declaration of `REG_BADRPT'
/usr/include/httpd/pcreposix.h:44: conflicting types for `REG_EBRACE'
/usr/include/regex.h:311: previous declaration of `REG_EBRACE'
/usr/include/httpd/pcreposix.h:45: conflicting types for `REG_EBRACK'
/usr/include/regex.h:309: previous declaration of `REG_EBRACK'
/usr/include/httpd/pcreposix.h:46: conflicting types for `REG_ECOLLATE'
/usr/include/regex.h:305: previous declaration of `REG_ECOLLATE'
/usr/include/httpd/pcreposix.h:47: conflicting types for `REG_ECTYPE'
/usr/include/regex.h:306: previous declaration of `REG_ECTYPE'
/usr/include/httpd/pcreposix.h:48: conflicting types for `REG_EESCAPE'
/usr/include/regex.h:307: previous declaration of `REG_EESCAPE'
/usr/include/httpd/pcreposix.h:50: conflicting types for `REG_EPAREN'
/usr/include/regex.h:310: previous declaration of `REG_EPAREN'
/usr/include/httpd/pcreposix.h:51: conflicting types for `REG_ERANGE'
/usr/include/regex.h:313: previous declaration of `REG_ERANGE'
/usr/include/httpd/pcreposix.h:52: conflicting types for `REG_ESIZE'
/usr/include/regex.h:319: previous declaration of `REG_ESIZE'
/usr/include/httpd/pcreposix.h:53: conflicting types for `REG_ESPACE'
/usr/include/regex.h:314: previous declaration of `REG_ESPACE'
/usr/include/httpd/pcreposix.h:54: conflicting types for `REG_ESUBREG'
/usr/include/regex.h:308: previous declaration of `REG_ESUBREG'
/usr/include/httpd/pcreposix.h:57: conflicting types for `REG_NOMATCH'
/usr/include/regex.h:300: previous declaration of `REG_NOMATCH'
/usr/include/httpd/pcreposix.h:66: conflicting types for `regex_t'
/usr/include/regex.h:401: previous declaration of `regex_t'
/usr/include/httpd/pcreposix.h:70: warning: redefinition of `regoff_t'
/usr/include/regex.h:404: warning: `regoff_t' previously declared here
/usr/include/httpd/pcreposix.h:75: conflicting types for `regmatch_t'
/usr/include/regex.h:432: previous declaration of `regmatch_t'
/usr/include/httpd/pcreposix.h:79: conflicting types for `regcomp'
/usr/include/regex.h:549: previous declaration of `regcomp'
/usr/include/httpd/pcreposix.h:80: conflicting types for `regexec'
/usr/include/regex.h:554: previous declaration of `regexec'
/usr/include/httpd/pcreposix.h:81: conflicting types for `regerror'
/usr/include/regex.h:557: previous declaration of `regerror'
/usr/include/httpd/pcreposix.h:82: conflicting types for `regfree'
/usr/include/regex.h:559: previous declaration of `regfree'
make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1


Here is my configure line...

%configure \
	--prefix=%{_prefix} \
	--cache-file=../config.cache \
	--with-config-file-path=%{_sysconfdir} \
	--with-config-file-scan-dir=%{_sysconfdir}/php.d \
	--enable-force-cgi-redirect \
	--disable-debug \
	--enable-pic \
	--disable-rpath \
	--enable-inline-optimization \
	--with-bz2 \
	--with-db4 \
	--with-curl \
	--with-dom=%{_prefix} \
	--with-exec-dir=%{_bindir} \
	--with-freetype-dir=%{_prefix} \
	--with-png-dir=%{_prefix} \
	--with-gd \
	--enable-gd-native-ttf \
	--with-ttf \
	--with-gdbm \
	--with-gettext \
	--with-pdflib=shared \
	--with-tiff-dir=%{_prefix} \
	--with-ncurses \
	--with-gmp \
	--with-iconv \
	--enable-xslt=shared \
	--with-jpeg-dir=%{_prefix} \
	--with-openssl \
	--with-png \
	--with-pspell \
	--with-regex=system \
	--with-xml \
	--with-expat-dir=%{_prefix} \
	--with-zlib \
	--with-layout=GNU \
	--enable-bcmath \
	--enable-exif \
	--enable-ftp \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--enable-discard-path \
	--enable-track-vars \
	--enable-trans-sid \
	--enable-yp \
	--enable-wddx \
	--without-oci8 \
	--with-pear=/usr/share/pear \
	--with-imap=shared \
	--with-imap-ssl \
	--with-kerberos=/usr/kerberos \
	--with-ldap=shared \
	--with-mcal=shared,%{_prefix} \
	--with-mcrypt=shared,%{_prefix} \
	--with-mhash=shared,%{_prefix} \
	--with-mssql=shared,%{_prefix} \
	--with-mysql=shared,%{_prefix} \
%if %{oracle}
	--with-oci8=shared \
%endif
	--with-pgsql=shared \
	--with-snmp=shared,%{_prefix} \
	--with-snmp=shared \
	--with-xslt-sablot=shared,%{_prefix} \
	--with-sablot-js=shared,%{_prefix} \
	--enable-ucd-snmp-hack \
	--with-unixODBC=shared \
	--enable-memory-limit \
	--enable-bcmath \
	--enable-shmop \
	--enable-versioning \
	--enable-calendar \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
	
                                    Thank's Aliet

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-21 16:58 UTC] sniper@php.net
Using --with-regex=system is not at all good idea..
And --enable-versioning is not needed either.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Nov 30 04:00:01 2025 UTC