ID: 21792 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: AIX 4.3.2 PHP Version: 4CVS-2003-01-20 (stable) New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip And please provide any patches in 'diff -u' format.. Previous Comments: ------------------------------------------------------------------------ [2003-01-21 08:06:47] [EMAIL PROTECTED] In fact the fix I suggested was the origin of the failure to compile php_apache.c and should be disregarded. So I manage to compile everything on regular version 4.3.0 but with the following fix: diff ext/standard/php_image.h.orig ext/standard/php_image.h 48c48 < IMAGE_FILETYPE_IFF, --- > IMAGE_FILETYPE_IFF diff ext/standard/dl.c.orig ext/standard/dl.c 139c139 < handle = DL_LOAD(libpath); --- > handle = (void *)DL_LOAD(libpath); /* FTU */ but maybe it will be even better to declare handle as DL_HANDLE and to cast: handle = (DL_HANDLE)DL_LOAD(path); like for zend_extensions.c diff Zend/zend_extensions.c.orig Zend/zend_extensions.c 33c33 < handle = DL_LOAD(path); --- > handle = (DL_HANDLE)DL_LOAD(path); /* FTU */ diff ext/standard/file.c.orig ext/standard/file.c 29a30 > #include "dlfcn.h" /* FTU */ 105a107,108 > #undef XtOffsetOf /* FTU */ > #undef closesocket /* FTU */ diff sapi/apache/php_apache_http.h.orig sapi/apache/php_apache_http.h 11a12 > #include "dlfcn.h" /* FTU */ 12a14 > ------------------------------------------------------------------------ [2003-01-21 03:30:21] [EMAIL PROTECTED] Looks similar to bug 16117 but the "offender" is dlcfn.h here. Compile failure on php 4.3.0 and latest dev version Compiler Aix xlc configure --with-config-file-path=/s00/app/sso/admin/SSOD/conf --with-prefix=/s00/app/php/product/SSOD --with-apxs=/s00/app/apache/product/1.3.22/bin/apxs --enable-static --with-ldap=/opt/freeware --with-mhash=/s00/app/mhash/product/0.8.16 --with-oci8=/s00/app/oracle/product/8.1.7 --with-mysql=/opt/freeware module sapi/apache/sapi_apache.c /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -I/s00/app/apache/product/1.3.22/include -Isapi/apache/ -I/s00/open data/build/php-4.3.0-latest/sapi/apache/ -DPHP_ATOM_INC -I/s00/opendata/build/php-4.3.0-latest/include -I/s00/opendata/build/php-4.3 .0-latest/main -I/s00/opendata/build/php-4.3.0-latest -I/s00/opendata/build/php-4.3.0-latest/Zend -I/opt/freeware/include -I/usr/loc al/include -I/opt/freeware/include/mysql -I/s00/app/oracle/product/8.1.7/rdbms/public -I/s00/app/oracle/product/8.1.7/rdbms/demo -I/ s00/opendata/build/php-4.3.0-latest/ext/xml/expat -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/freeware/include -DAIX=43 -DEAPI -DEAPI_MM -DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I/ s00/opendata/build/php-4.3.0-latest/TSRM -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/fr eeware/include -prefer-pic -c /s00/opendata/build/php-4.3.0-latest/sapi/apache/sapi_apache.c -o sapi/apache/sapi_apache.lo "/usr/include/dlfcn.h", line 67.9: 1506-213 (S) Macro name RTLD_LAZY cannot be redefined. "/usr/include/dlfcn.h", line 67.9: 1506-358 (I) "RTLD_LAZY" is defined on line 85 of /s00/opendata/build/php-4.3.0-latest/Zend/zend. h. "/usr/include/dlfcn.h", line 71.9: 1506-213 (S) Macro name RTLD_GLOBAL cannot be redefined. "/usr/include/dlfcn.h", line 71.9: 1506-358 (I) "RTLD_GLOBAL" is defined on line 89 of /s00/opendata/build/php-4.3.0-latest/Zend/zen d.h. "/s00/opendata/build/php-4.3.0-latest/TSRM/../main/php_config.h", line 2449.9: 1506-213 (S) Macro name zend_isnan cannot be redefine d. "/s00/opendata/build/php-4.3.0-latest/TSRM/../main/php_config.h", line 2449.9: 1506-358 (I) "zend_isnan" is defined on line 2455 of /s00/opendata/build/php-4.3.0-latest/Zend/../main/php_config.h. "/s00/opendata/build/php-4.3.0-latest/TSRM/tsrm_config_common.h", line 25.2: 1506-224 (I) Incorrect #pragma ignored. "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2449.9: 1506-213 (S) Macro name zend_isnan cannot be redefined. "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2449.9: 1506-358 (I) "zend_isnan" is defined on line 2455 of /s00/ope ndata/build/php-4.3.0-latest/Zend/../main/php_config.h. make: 1254-004 The error code from the last command is 1. works with the following quick fix $ diff php-4.3.0/sapi/apache/php_apache_http.h.ftu php-4.3.0-latest/sapi/apache/php_apache_http.h 12,13d11 < #include "dlfcn.h" /* FTU */ < #define HAVE_ISNAN /* FTU */ 15d12 < #undef xHAVE_ISNAN /* FTU */ 46,47d42 < #undef XtOffsetOf /* FTU */ < #undef zend_isnan /* FTU */ $ cp -p php-4.3.0/sapi/apache/php_apache_http.h.ftu php-4.3.0-latest/sapi/apache/php_apache_http.h /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -I/s00/app/apache/product/1.3.22/include -Isapi/apache/ -I/s00/open data/build/php-4.3.0-latest/sapi/apache/ -DPHP_ATOM_INC -I/s00/opendata/build/php-4.3.0-latest/include -I/s00/opendata/build/php-4.3 .0-latest/main -I/s00/opendata/build/php-4.3.0-latest -I/s00/opendata/build/php-4.3.0-latest/Zend -I/opt/freeware/include -I/usr/loc al/include -I/opt/freeware/include/mysql -I/s00/app/oracle/product/8.1.7/rdbms/public -I/s00/app/oracle/product/8.1.7/rdbms/demo -I/ s00/opendata/build/php-4.3.0-latest/ext/xml/expat -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/freeware/include -DAIX=43 -DEAPI -DEAPI_MM -DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I/ s00/opendata/build/php-4.3.0-latest/TSRM -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/fr eeware/include -prefer-pic -c /s00/opendata/build/php-4.3.0-latest/sapi/apache/sapi_apache.c -o sapi/apache/sapi_apache.lo "/s00/opendata/build/php-4.3.0-latest/TSRM/tsrm_config_common.h", line 25.2: 1506-224 (I) Incorrect #pragma ignored. module php_apache.c /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -I/s00/app/apache/product/1.3.22/include -Isapi/apache/ -I/s00/open data/build/php-4.3.0-latest/sapi/apache/ -DPHP_ATOM_INC -I/s00/opendata/build/php-4.3.0-latest/include -I/s00/opendata/build/php-4.3 .0-latest/main -I/s00/opendata/build/php-4.3.0-latest -I/s00/opendata/build/php-4.3.0-latest/Zend -I/opt/freeware/include -I/usr/loc al/include -I/opt/freeware/include/mysql -I/s00/app/oracle/product/8.1.7/rdbms/public -I/s00/app/oracle/product/8.1.7/rdbms/demo -I/ s00/opendata/build/php-4.3.0-latest/ext/xml/expat -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/freeware/include -DAIX=43 -DEAPI -DEAPI_MM -DUSE_PTHREAD_SERIALIZED_ACCEPT -DAIX_BIND_PROCESSOR -DUSE_HSREGEX -DUSE_EXPAT -I/ s00/opendata/build/php-4.3.0-latest/TSRM -I/s00/app/apache/product/1.3.22/include -I/s00/app/mhash/product/0.8.16/include -I/opt/fr eeware/include -prefer-pic -c /s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c -o sapi/apache/php_apache.lo "/s00/opendata/build/php-4.3.0-latest/TSRM/tsrm_config_common.h", line 25.2: 1506-224 (I) Incorrect #pragma ignored. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 64.147: 1506-046 (S) Syntax error. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 64.137: 1506-045 (S) Undeclared identifier xbithack. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 65.153: 1506-046 (S) Syntax error. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 65.145: 1506-045 (S) Undeclared identifier engine. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 66.152: 1506-046 (S) Syntax error. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 66.137: 1506-045 (S) Undeclared identifier last_modified. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 67.146: 1506-046 (S) Syntax error. "/s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c", line 67.129: 1506-045 (S) Undeclared identifier terminate_child. make: 1254-004 The error code from the last command is 1. But there I cannot find any fix. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21792&edit=1
