|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-30 13:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 22:00:01 2025 UTC |
Description: ------------ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-apache2=/usr/src/redhat/SOURCES/httpd-2.0.40 --with-mysql --enable-sigchild --with-oracle=/disc/u01/app/oracle/product/9.2.0.1.0/ --with-oci8=/disc/u01/app/oracle/product/9.2.0.1.0/ --with-pgsql=shared ----------------------- ------------------------------------------------- -------------------------------------------------------- $make ------------------------------------------------------ ---------------------------------------------------------------------- /*----------------------edited by me --------------------*/ error before editing the sapi/apache2filter/sapi_apache2.c /*----------------------------------------------------*/ NT -I/usr/src/redhat/SOURCES/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c sapi_apache2.c sapi_apache2.c: In function `php_register_hook': sapi_apache2.c:534: warning: passing arg 3 of `ap_register_output_filter' makes pointer from integer without a cast sapi_apache2.c:534: too few arguments to function `ap_register_output_filter' sapi_apache2.c:535: warning: passing arg 3 of `ap_register_input_filter' makes pointer from integer without a cast sapi_apache2.c:535: too few arguments to function `ap_register_input_filter' make[3]: *** [sapi_apache2.lo] Error 1 make[3]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi' make: *** [all-recursive] Error 1 /*--------------------------edited by me (hameed)---------------------*/ this error getting after i changed the file sapi/apache2filter/sapi_apache2.c 's two functions argument that default is ap_register_output_filter("PHP", php_output_filter,AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter,AP_FTYPE_RESOURCE); i added a NULL value as an an argument after getting an help from net ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE); ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE); then i got an error given below /*------------------------------------------------------------------*/ ---after editing sapi/apache2filter/sapi_apache2.c $make make[1]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi' Making all in apache2filter make[2]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' make[3]: Entering directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' /bin/sh /usr/src/redhat/SOURCES/php-4.2.2/libtool --silent --mode=compile gcc -I. -I/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter -I/usr/src/redhat/SOURCES/php-4.2.2/main -I/usr/src/redhat/SOURCES/php-4.2.2 -I/usr/local/apache2/include -I/usr/src/redhat/SOURCES/php-4.2.2/Zend -I/usr/src/redhat/SOURCES/php-4.2.2/ext/mysql/libmysql -I/disc/u01/app/oracle/product/9.2.0.1.0//rdbms/public -I/disc/u01/app/oracle/product/9.2.0.1.0//rdbms/demo -I/disc/u01/app/oracle/product/9.2.0.1.0//plsql/public -I/usr/src/redhat/SOURCES/php-4.2.2/ext/xml/expat -D_REENTRANT -I/usr/src/redhat/SOURCES/php-4.2.2/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS -prefer-pic -c php_functions.c php_functions.c:93:27: missing binary operator before '(' make[3]: *** [php_functions.lo] Error 1 make[3]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi/apache2filter' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/SOURCES/php-4.2.2/sapi' make: *** [all-recursive] Error 1 down you'll see !MODULES_XXXXX Change that to !AP_MODULES