From:             malekjo at aphrodite dot com
Operating system: Linux Mandrake 9.1 2.4.21-0.13
PHP version:      4.3.2
PHP Bug Type:     Compile Failure
Bug description:  DSO Apache 2 (IBM HTTP Server 2.0.42) make fails

Description:
------------
Seems as if the regex #defines are all mixed up...something is redefining
the system regex.h definitions and not keeping it in its own namespace.

Configure:
'./configure' '--with-apxs2filter=/home/httpd/IBMHTTPServer/bin/apxs'
'--with-apxs2=/home/httpd/IBMHTTPServer/bin/apxs' '--enable-fastcgi'
'--enable-force-cgi-redirect' '--enable-discard-path' '--enable-debug'
'--with-config-file-path=/etc' '--with-pear' '--with-openssl'
'--enable-magic-quotes' '--disable-short-tags' '--with-zlib'
'--enable-bcmath' '--with-bz2' '--with-curl' '--with-gdbm' '--with-ndmb'
'--with-dom' '--enable-exif' '--enable-ftp' '--with-gettext' '--with-gmp'
'--with-kerberos' '--with-calendar' '--with-mcal=/home/joe/libmcal'
'--with-mhash' '--with-ldap=/home/joe/builds' '--enable-shmop'
'--enable-sockets' '--with-regex=system' '--enable-sysvsem'
'--enable-sysvshm' '--enable-tokenizer' '--enable-wddx' '--enable-yp'
'--enable-inline-optimization' '--enable-memory-limit' '--enable-sigchild'
'--with-mysql=/usr' '--prefix=$HOME/builds' '--enable-force-cgi-redirect'

Successfully executes, then upon make the following occures:
/bin/sh /home/joe/builds/php-4.3.2/libtool --preserve-dup-deps
--mode=compile /home/joe/builds/php-4.3.2/meta_ccld  -Isapi/apache2filter/
-I/home/joe/builds/php-4.3.2/sapi/apache2filter/ -DPHP_ATOM_INC
-I/home/joe/builds/php-4.3.2/include -I/home/joe/builds/php-4.3.2/main
-I/home/joe/builds/php-4.3.2 -I/home/httpd/IBMHTTPServer/include
-I/home/joe/builds/php-4.3.2/Zend -I/usr/include/libxml2
-I/home/joe/builds/include -I/home/joe/libmcal -I/usr/local/include
-I/usr/include/mysql -I/home/joe/builds/php-4.3.2/ext/xml/expat 
-D_REENTRANT -I/home/joe/builds/php-4.3.2/TSRM  -g -O2 -pthread -Wall
-DZTS  -prefer-pic -c
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c -o
sapi/apache2filter/sapi_apache2.lo 
/home/joe/builds/php-4.3.2/meta_ccld -Isapi/apache2filter/
-I/home/joe/builds/php-4.3.2/sapi/apache2filter/ -DPHP_ATOM_INC
-I/home/joe/builds/php-4.3.2/include -I/home/joe/builds/php-4.3.2/main
-I/home/joe/builds/php-4.3.2 -I/home/httpd/IBMHTTPServer/include
-I/home/joe/builds/php-4.3.2/Zend -I/usr/include/libxml2
-I/home/joe/builds/include -I/home/joe/libmcal -I/usr/local/include
-I/usr/include/mysql -I/home/joe/builds/php-4.3.2/ext/xml/expat
-D_REENTRANT -I/home/joe/builds/php-4.3.2/TSRM -g -O2 -pthread -Wall -DZTS
-c /home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c   -fPIC
-DPIC -o sapi/apache2filter/sapi_apache2.lo
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:26:1: warning: "REG_ICASE"
redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:266:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:27:1: warning: "REG_NEWLINE"
redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:271:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:28:1: warning: "REG_NOTBOL"
redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:285:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:29:1: warning: "REG_NOTEOL"
redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:288:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:34:1: warning:
"REG_EXTENDED" redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:262:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:35:1: warning: "REG_NOSUB"
redefined
In file included from /home/joe/builds/php-4.3.2/main/php_regex.h:39,
                 from /home/joe/builds/php-4.3.2/main/php.h:74,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:25:
/usr/include/regex.h:275:1: warning: this is the location of the previous
definition
In file included from /home/httpd/IBMHTTPServer/include/httpd.h:86,
                 from /home/httpd/IBMHTTPServer/include/util_filter.h:61,
                 from
/home/joe/builds/php-4.3.2/sapi/apache2filter/sapi_apache2.c:36:
/home/httpd/IBMHTTPServer/include/pcreposix.h:41: conflicting types for
`REG_BADBR'
/usr/include/regex.h:312: previous declaration of `REG_BADBR'
/home/httpd/IBMHTTPServer/include/pcreposix.h:42: conflicting types for
`REG_BADPAT'
/usr/include/regex.h:304: previous declaration of `REG_BADPAT'
/home/httpd/IBMHTTPServer/include/pcreposix.h:43: conflicting types for
`REG_BADRPT'
/usr/include/regex.h:315: previous declaration of `REG_BADRPT'
/home/httpd/IBMHTTPServer/include/pcreposix.h:44: conflicting types for
`REG_EBRACE'
/usr/include/regex.h:311: previous declaration of `REG_EBRACE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:45: conflicting types for
`REG_EBRACK'
/usr/include/regex.h:309: previous declaration of `REG_EBRACK'
/home/httpd/IBMHTTPServer/include/pcreposix.h:46: conflicting types for
`REG_ECOLLATE'
/usr/include/regex.h:305: previous declaration of `REG_ECOLLATE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:47: conflicting types for
`REG_ECTYPE'
/usr/include/regex.h:306: previous declaration of `REG_ECTYPE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:48: conflicting types for
`REG_EESCAPE'
/usr/include/regex.h:307: previous declaration of `REG_EESCAPE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:50: conflicting types for
`REG_EPAREN'
/usr/include/regex.h:310: previous declaration of `REG_EPAREN'
/home/httpd/IBMHTTPServer/include/pcreposix.h:51: conflicting types for
`REG_ERANGE'
/usr/include/regex.h:313: previous declaration of `REG_ERANGE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:52: conflicting types for
`REG_ESIZE'
/usr/include/regex.h:319: previous declaration of `REG_ESIZE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:53: conflicting types for
`REG_ESPACE'
/usr/include/regex.h:314: previous declaration of `REG_ESPACE'
/home/httpd/IBMHTTPServer/include/pcreposix.h:54: conflicting types for
`REG_ESUBREG'
/usr/include/regex.h:308: previous declaration of `REG_ESUBREG'
/home/httpd/IBMHTTPServer/include/pcreposix.h:57: conflicting types for
`REG_NOMATCH'
/usr/include/regex.h:300: previous declaration of `REG_NOMATCH'
/home/httpd/IBMHTTPServer/include/pcreposix.h:57: confused by earlier
errors, bailing out
make: *** [sapi/apache2filter/sapi_apache2.lo] Error 1



-- 
Edit bug report at http://bugs.php.net/?id=24552&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24552&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24552&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24552&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24552&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24552&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24552&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24552&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24552&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24552&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24552&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24552&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24552&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24552&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24552&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24552&r=gnused

Reply via email to