酷!學園

技術討論區 => 網頁技術 => 主題作者是: lschang 於 2003-08-25 16:34

主題: apache 2.047 配 php 4.3.2 的問題
作者: lschang2003-08-25 16:34
如上我裝好 apache 後
再裝 php 發生如下的 redefine error
有人知道是那兒的問題嗎
[root@sys01 php-4.3.2]# make
/bin/sh /var/www/html/DownLoad/php/php-4.3.2/libtool --silent --preserve-dup-deps --mode=compile gcc  -Isapi/apache2handler/ -I/var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/ -DPHP_ATOM_INC -I/var/www/html/DownLoad/php/php-4.3.2/include -I/var/www/html/DownLoad/php/php-4.3.2/main -I/var/www/html/DownLoad/php/php-4.3.2 -I/usr/local/httpd/include -I/var/www/html/DownLoad/php/php-4.3.2/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/usr/local/FreeTDS/include  -I/var/www/html/DownLoad/php/php-4.3.2/TSRM  -g -O2  -prefer-pic -c /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c -o sapi/apache2handler/sapi_apache2.lo
----以下開始有錯誤

In file included from /usr/local/httpd/include/httpd.h:86,
                 from /usr/local/httpd/include/util_filter.h:61,
                 from /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/pcreposix.h:26:1: warning: "REG_ICASE" redefined
In file included from /var/www/html/DownLoad/php/php-4.3.2/main/php_regex.h:39,
                 from /var/www/html/DownLoad/php/php-4.3.2/main/php.h:74,
                 from /var/www/html/DownLoad/php/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/local/httpd/include/httpd.h:86,
                 from /usr/local/httpd/include/util_filter.h:61,
                 from /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/pcreposix.h:27:1: warning: "REG_NEWLINE" redefined
In file included from /var/www/html/DownLoad/php/php-4.3.2/main/php_regex.h:39,
                 from /var/www/html/DownLoad/php/php-4.3.2/main/php.h:74,
                 from /var/www/html/DownLoad/php/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/local/httpd/include/httpd.h:86,
                 from /usr/local/httpd/include/util_filter.h:61,
                 from /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/pcreposix.h:28:1: warning: "REG_NOTBOL" redefined
In file included from /var/www/html/DownLoad/php/php-4.3.2/main/php_regex.h:39,
                 from /var/www/html/DownLoad/php/php-4.3.2/main/php.h:74,
                 from /var/www/html/DownLoad/php/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/local/httpd/include/httpd.h:86,
                 from /usr/local/httpd/include/util_filter.h:61,
                 from /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40:
/usr/local/httpd/include/pcreposix.h:29:1: warning: "REG_NOTEOL" redefined
In file included from /var/www/html/DownLoad/php/php-4.3.2/main/php_regex.h:39,
                 from /var/www/html/DownLoad/php/php-4.3.2/main/php.h:74,
                 from /var/www/html/DownLoad/php/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/local/httpd/include/httpd.h:86,
                 from /usr/local/httpd/include/util_filter.h:61,
                 from /var/www/html/DownLoad/php/php-4.3.2/sapi/apache2handler/sapi_apache2.c:40: