ID: 21667 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Assigned Bug Type: Compile Failure Operating System: Solaris8 PHP Version: 4CVS-2003-01-15 (stable) -Assigned To: +Assigned To: sas New Comment:
Sascha broke it, he can propably fix it too.. Previous Comments: ------------------------------------------------------------------------ [2003-01-15 12:31:01] [EMAIL PROTECTED] CVS tree is up ./buildconf execute cvsclean on my system. Manual calculation: Structure _sapi_module_struct in main/SAPI.h (from http://cvs.php.net/co.php/php4/main/SAPI.h?r=1.87.2.3) has 27 items. Definition STANDARD_SAPI_MODULE_PROPERTIES in main/SAPI.h has 8 items. Stricture apache2_sapi_module in sapi/apache2filter/sapi_apache2.c ( http://cvs.php.net/co.php/php4/sapi/apache2filter/sapi_apache2.c?r=1.91.2.4) has 21 items + STANDARD_SAPI_MODULE_PROPERTIES. 21 + 8 = 29 and not eq 27... http://cvs.php.net/diff.php/php4/main/SAPI.h?r1=1.87.2.2&r2=1.87.2.3&ty=u ------------------------------------------------------------------------ [2003-01-15 11:50:50] [EMAIL PROTECTED] Did you use an updated CVS tree or an fresh one? If the first, then please run ./cvsclean && ./buildconf or checkout a fresh tree. Derick ------------------------------------------------------------------------ [2003-01-15 11:42:32] [EMAIL PROTECTED] I have got error in compilation: Environment is: PHP Version (Updated at 2003/01/15 18:20 GMT+2) >cat CVS/Tag TPHP_4_3 Compillator: Sun WorkShop 6 update 2 C 5.3 2001/05/15 Error if independed of configure string. Error in compilation of Apache2Filer is: /bin/bash libtool --silent --mode=compile /opt/SUNWspro/bin/cc -Xa -xF -xCC -Isapi/apache2filter/ -I/usr/local/src/work/php4/sapi/apache2filter/ -DPHP_ATOM_INC -I/usr/local/src/work/php4/include -I/usr/local/src/work/php4/main -I/usr/local/src/work/php4 -I/usr/local/include/apache2 -I/usr/local/src/work/php4/Zend -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/mysql -I/usr/local/src/work/php4/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAPACHE_XLATE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/src/work/php4/TSRM -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -xildoff -dalign -D_REENTRANT -xspace -mr -mt -DZTS -prefer-pic -c /usr/local/src/work/php4/sapi/apache2filter/sapi_apache2.c -o sapi/apache2filter/sapi_apache2.lo "/usr/local/src/work/php4/sapi/apache2filter/sapi_apache2.c", line 318: too many struct/union initializers "/usr/local/src/work/php4/sapi/apache2filter/sapi_apache2.c", line 319: too many struct/union initializers cc: acomp failed for /usr/local/src/work/php4/sapi/apache2filter/sapi_apache2.c *** Error code 1 Same error for CLI version: /bin/bash libtool --silent --mode=compile /opt/SUNWspro/bin/cc -Xa -xF -xCC -Isapi/cli/ -I/usr/local/src/work/php4/sapi/cli/ -DPHP_ATOM_INC -I/usr/local/src/work/php4/include -I/usr/local/src/work/php4/main -I/usr/local/src/work/php4 -I/usr/local/include/apache2 -I/usr/local/src/work/php4/Zend -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/include/mysql -I/usr/local/src/work/php4/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DAPACHE_XLATE -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/src/work/php4/TSRM -xtarget=ultra -xarch=v8plus -xO5 -xstrconst -xdepend -Xa -xildoff -dalign -D_REENTRANT -xspace -mr -mt -DZTS -prefer-pic -c /usr/local/src/work/php4/sapi/cli/php_cli.c -o sapi/cli/php_cli.lo "/usr/local/src/work/php4/sapi/cli/php_cli.c", line 284: too many struct/union initializers cc: acomp failed for /usr/local/src/work/php4/sapi/cli/php_cli.c *** Error code 1 make: Fatal error: Command failed for target `sapi/cli/php_cli.lo' Reason: Wrong count of 'NULL' in sapi_module_struct, defined in modules (sapi/apache2filter/sapi_apache2.c and sapi/cli/php_cli.c) and STANDARD_SAPI_MODULE_PROPERTIES definition (defined in main/SAPI.h). Sollution: >cvs diff "sapi/apache2filter/sapi_apache2.c" sapi/cli/php_cli.c Index: sapi/apache2filter/sapi_apache2.c =================================================================== RCS file: /repository/php4/sapi/apache2filter/sapi_apache2.c,v retrieving revision 1.91.2.4 diff -u -r1.91.2.4 sapi_apache2.c --- sapi/apache2filter/sapi_apache2.c 7 Jan 2003 15:23:45 -0000 1.91.2.4 +++ sapi/apache2filter/sapi_apache2.c 15 Jan 2003 17:38:10 -0000 @@ -312,8 +312,8 @@ NULL, /* php_ini_path_override */ - NULL, /* Block interruptions */ - NULL, /* Unblock interruptions */ + // NULL, /* Block interruptions */+ // NULL, /* Unblock interruptions */ STANDARD_SAPI_MODULE_PROPERTIES }; Index: sapi/cli/php_cli.c =================================================================== RCS file: /repository/php4/sapi/cli/php_cli.c,v retrieving revision 1.51.2.6 diff -u -r1.51.2.6 php_cli.c --- sapi/cli/php_cli.c 8 Jan 2003 00:44:58 -0000 1.51.2.6 +++ sapi/cli/php_cli.c 15 Jan 2003 17:38:10 -0000 @@ -277,8 +277,8 @@ sapi_cli_register_variables, /* register server variables */ sapi_cli_log_message, /* Log message */ - NULL, /* Block interruptions */ - NULL, /* Unblock interruptions */ + // NULL, /* Block interruptions */ + // NULL, /* Unblock interruptions */ STANDARD_SAPI_MODULE_PROPERTIES }; WBR, Alex ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21667&edit=1