From:             [EMAIL PROTECTED]
Operating system: AIX 4.3.2
PHP version:      4CVS-2003-01-20 (stable)
PHP Bug Type:     Compile Failure
Bug description:  dclfn.h macros as XtOffsetOf,sockopen & zend_isnan macro redifinition

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 bug report at http://bugs.php.net/?id=21792&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21792&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21792&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21792&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21792&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21792&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21792&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21792&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21792&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21792&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21792&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21792&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21792&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21792&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=21792&r=gnused

Reply via email to