|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-21 03:30 UTC] francois dot turi at globecast dot com
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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 12:00:01 2025 UTC |
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 | | php-install@lists.php.net 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)