ID: 21792 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Compile Failure Operating System: AIX 4.3.2 PHP Version: 4CVS-2003-01-20 (stable) New Comment:
Good, :-), php_image.h works fine on my platform. Next problem I encounter is dl.c and zend_extensions.c I suggest the following syntax fixes: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< diff dl.c dl.c.orig 141c141 < handle = (void *)DL_LOAD(libpath); /* FTU */ --- > handle = DL_LOAD(libpath); with dl.c is /* $Id: dl.c,v 1.79.2.3 2003/01/29 15:40:24 edink Exp $ */ $ diff php-4.3.0/Zend/zend*ftu php-4.3.0-latest/Zend/zend_extensions.c 5c5 < | Copyright (c) 1998-2002 Zend Technologies Ltd. (http://www.zend.com) | --- > | Copyright (c) 1998-2003 Zend Technologies Ltd. (http://www.zend.com) | 33c33 < handle = (DL_HANDLE)DL_LOAD(path); /* FTU */ --- > handle = DL_LOAD(path); No version for zend_extensions.c >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Make trace: /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -Iext/standard/ -I/s00/opendata/build/php-4.3.0-latest/ext/standar d/ ... -c /s00/opendata/build/php-4.3.0-latest/ext/standard/dl.c -o ext/standard/dl.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/ext/standard/dl.c", line 141.16: 1506-068 (S) Operation between types "void*" and "int" is not allowed. make: The error code from the last command is 1. /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -IZend/ -I/s00/opendata/build/php-4.3.0-latest/Zend/ -DPHP_ATOM_INC .... -c /s00/opendata/build/php-4.3.0-latest/Zend/zend_extensions.c -o Zend/zend_extensions.lo "/s00/opendata/build/php-4.3.0-latest/Zend/zend_extensions.c", line 33.16: 1506-068 (S) Operation between types "void*" and "int" is not allowed. make: The error code from the last command is 1. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Other errors mentioned earlier remains See [21 Jan 8:06am] paragraph for suggested fix. (e.g.): >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> /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/ .... -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 2494.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 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 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 2494.9: 1506-213 (S) Macro name zend_isnan cannot be redefined. "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 of /s00/ope ndata/build/php-4.3.0-latest/Zend/../main/php_config.h. make: The error code from the last command is 1. Previous Comments: ------------------------------------------------------------------------ [2003-02-06 10:07:54] [EMAIL PROTECTED] Please get new snapshot, I fixed that php_image.h issue already, the revision in php_image.h should be 1.19.4.2 The other error has to be investigated.. ------------------------------------------------------------------------ [2003-02-06 05:30:37] [EMAIL PROTECTED] The compilation still fails (using xlc). I suggest the following fix for php_image.h because xlc is very picky about comma left at the end of a structure: diff php-4.3.0-latest/ext/standard/php_image.h php-4.3.0-latest/ext/standard/php_image.h.org 20c20 < /* $Id: php_image.h,v 1.19 2002/06/24 19:36:26 helly Exp $ */ --- > /* $Id: php_image.h,v 1.19.4.1 2002/12/31 16:35:33 sebastian Exp $ */ 48c48 < IMAGE_FILETYPE_IFF --- > IMAGE_FILETYPE_IFF, Sorry I don't have diff -u. Which option is the best ? $ diff -u php-4.3.0-latest/ext/standard/php_image.h php-4.3.0-latest/ext/standard/php_image.h.org diff: illegal option -- u Usage: diff [-bcitw] [[-C Lines|-D String|-e|-f|-n]|[-h]] File1 File2 diff [-bcilrstw] [[-C Lines|-e|-f|-n]|[-h]] [-S File] Directory1 Directory2 compile error report: /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -Iext/standard/ -I/s00/opendata/build/php-4.3.0-latest/ext/standar d/ -DPHP_ATOM_INC ... -c /s00/opendata/build/php-4.3.0-latest/ext/standard/basic_functions.c latest/ext/standard/php_image.h", line 48.21: 1506-275 (S) Unexpected text ',' encountered. "/s00/opendata/build/php-4.3.0-latest/ext/session/php_session.h", line 225.31: 1506-137 (E) Declaration must declare at least one de clarator, tag, or the members of an enumeration. make: The error code from the last command is 1. After this fix applied the other compile error remains: +--------------------------------------------------------------------+ | *** ATTENTION *** | | | | Something is likely to be messed up here, because the configure | | script was not able to detect a simple feature on your platform. | | This is often caused by incorrect configuration parameters. Please | | see the file debug.log for error messages. | | | | If you are unable to fix this, send the file debug.log to the | | [EMAIL PROTECTED] mailing list and include appropiate | | information about your setup. | +--------------------------------------------------------------------+ /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -Iext/standard/ -I/s00/opendata/build/php-4.3.0-latest/ext/standar d/ -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/p hp-4.3.0-latest -I/s00/opendata/build/php-4.3.0-latest/Zend -I/s00/app/ldap/product/current/include -I/usr/local/include -I/s00/app/ mysql/product/current/include/mysql -I/s00/app/oracle/product/current/rdbms/public -I/s00/app/oracle/product/current/rdbms/demo -I/s 00/opendata/build/php-4.3.0-latest/ext/xml/expat -I/s00/app/apache/product/current/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/current/include -I/s00/app/mhash/product/0.8.16/include -I/opt/f reeware/include -prefer-pic -c /s00/opendata/build/php-4.3.0-latest/ext/standard/dl.c -o ext/standard/dl.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/ext/standard/dl.c", line 141.16: 1506-068 (S) Operation between types "void*" and "int" is not allowed. make: The error code from the last command is 1. (continuing) /bin/sh libtool --silent --mode=compile /usr/vac/bin/xlc -IZend/ -I/s00/opendata/build/php-4.3.0-latest/Zend/ .... -c /s00/opendata/build/php-4.3.0-latest/Zend/zend_extensions.c -o Zend/zend_extensions.lo "/s00/opendata/build/php-4.3.0-latest/Zend/zend_extensions.c", line 33.16: 1506-068 (S) Operation between types "void*" and "int" is not allowed. make: The error code from the last command is 1. (continuing) /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/ ..... -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 2494.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 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 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 2494.9: 1506-213 (S) Macro name zend_isnan cannot be redefined. "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 of /s00/ope ndata/build/php-4.3.0-latest/Zend/../main/php_config.h. make: The error code from the last command is 1. (continuing) /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/ .... -c /s00/opendata/build/php-4.3.0-latest/sapi/apache/mod_php4.c -o sapi/apache/mod_php4.lo "/usr/include/dlfcn.h", line 67.9: 1506-213 (S) Macro name RTLD_LAZY cannot be redefined. .... "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 of /s00/ope ndata/build/php-4.3.0-latest/Zend/../main/php_config.h. make: The error code from the last command is 1. (continuing) /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/ .... -c /s00/opendata/build/php-4.3.0-latest/sapi/apache/php_apache.c -o sapi/apache/php_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. .... "/s00/opendata/build/php-4.3.0-latest/main/php_config.h", line 2494.9: 1506-358 (I) "zend_isnan" is defined on line 2500 of /s00/ope ndata/build/php-4.3.0-latest/Zend/../main/php_config.h. make: The error code from the last command is 1. (continuing) ------------------------------------------------------------------------ [2003-02-03 07:13:02] [EMAIL PROTECTED] 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.. ------------------------------------------------------------------------ [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
