I was able to resolve this issue by checking the bug database and
finding that I needed to remove the line '--with-regex=system'. 

Thanks 

Bob Cochran

On Sat, 2003-06-07 at 22:05, Robert L Cochran wrote:
> Hello,
> 
> I'm running Red Hat Linux 9 with a running Apache (httpd) server version
> 2.0.46 which I recently compiled myself. The server is up to date with
> all current Red Hat-released patches, including the recent kernel
> update.
> 
> I'm getting these errors when building PHP 4.3.2:
> 
> /bin/sh /home/cochranb/php-4.3.2/build-apache/libtool --silent
> --preserve-dup-deps --mode=compile gcc  -Isapi/apache2handler/
> -I/home/cochranb/php-4.3.2/sapi/apache2handler/ -DPHP_ATOM_INC
> -I/home/cochranb/php-4.3.2/build-apache/include
> -I/home/cochranb/php-4.3.2/build-apache/main -I/home/cochranb/php-4.3.2
> -I/home/cochranb/php-4.3.2/build-apache/Zend -I/usr/include/libxml2
> -I/usr/include/freetype2 -I/usr/include/imap -I/usr/kerberos/include
> -I/usr/include/mysql -I/usr/include/pspell
> -I/home/cochranb/php-4.3.2/main -I/home/cochranb/php-4.3.2/Zend
> -I/home/cochranb/php-4.3.2/TSRM 
> -I/home/cochranb/php-4.3.2/build-apache/TSRM  -O2 -g -march=i686 -fPIC
> -I/usr/kerberos/include -I/usr/lib/httpd  -prefer-pic -c
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o
> sapi/apache2handler/sapi_apache2.lo
> In file included from /usr/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:26:1: warning: "REG_ICASE" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:27:1: warning: "REG_NEWLINE" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:28:1: warning: "REG_NOTBOL" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:29:1: warning: "REG_NOTEOL" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:34:1: warning: "REG_EXTENDED" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:35:1: warning: "REG_NOSUB" redefined
> In file included from /home/cochranb/php-4.3.2/main/php_regex.h:39,
>                  from /home/cochranb/php-4.3.2/main/php.h:74,
>                  from
> /home/cochranb/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/lib/httpd/httpd.h:86,
>                  from /usr/lib/httpd/util_filter.h:61,
>                  from
> /home/cochranb/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
> /usr/lib/httpd/pcreposix.h:41: conflicting types for `REG_BADBR'
> /usr/include/regex.h:312: previous declaration of `REG_BADBR'
> /usr/lib/httpd/pcreposix.h:42: conflicting types for `REG_BADPAT'
> /usr/include/regex.h:304: previous declaration of `REG_BADPAT'
> /usr/lib/httpd/pcreposix.h:43: conflicting types for `REG_BADRPT'
> /usr/include/regex.h:315: previous declaration of `REG_BADRPT'
> /usr/lib/httpd/pcreposix.h:44: conflicting types for `REG_EBRACE'
> /usr/include/regex.h:311: previous declaration of `REG_EBRACE'
> /usr/lib/httpd/pcreposix.h:45: conflicting types for `REG_EBRACK'
> /usr/include/regex.h:309: previous declaration of `REG_EBRACK'
> /usr/lib/httpd/pcreposix.h:46: conflicting types for `REG_ECOLLATE'
> /usr/include/regex.h:305: previous declaration of `REG_ECOLLATE'
> /usr/lib/httpd/pcreposix.h:47: conflicting types for `REG_ECTYPE'
> /usr/include/regex.h:306: previous declaration of `REG_ECTYPE'
> /usr/lib/httpd/pcreposix.h:48: conflicting types for `REG_EESCAPE'
> /usr/include/regex.h:307: previous declaration of `REG_EESCAPE'
> /usr/lib/httpd/pcreposix.h:50: conflicting types for `REG_EPAREN'
> /usr/include/regex.h:310: previous declaration of `REG_EPAREN'
> /usr/lib/httpd/pcreposix.h:51: conflicting types for `REG_ERANGE'
> /usr/include/regex.h:313: previous declaration of `REG_ERANGE'
> /usr/lib/httpd/pcreposix.h:52: conflicting types for `REG_ESIZE'
> /usr/include/regex.h:319: previous declaration of `REG_ESIZE'
> /usr/lib/httpd/pcreposix.h:53: conflicting types for `REG_ESPACE'
> /usr/include/regex.h:314: previous declaration of `REG_ESPACE'
> /usr/lib/httpd/pcreposix.h:54: conflicting types for `REG_ESUBREG'
> /usr/include/regex.h:308: previous declaration of `REG_ESUBREG'
> /usr/lib/httpd/pcreposix.h:57: conflicting types for `REG_NOMATCH'
> /usr/include/regex.h:300: previous declaration of `REG_NOMATCH'
> /usr/lib/httpd/pcreposix.h:57: confused by earlier errors, bailing out
> make: *** [sapi/apache2handler/sapi_apache2.lo] Error 1
> 
> Comments:
> 
> File regex.h is from the Red Hat glibc-devel-2.3.2-27.9 package.
> 
> File pcreposix.h was provided by my httpd (Apache) 2.0.46 installation.
> 
> Any suggestions for correcting the error?
> 
> Thanks,
> 
> Bob Cochran
> Greenbelt, Maryland, USA
> 
> 


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to