Hi folks,
I have a trouble to 'make' php-4.0.4pl1 on Digital UNIX V4.0F (Rev. 1229) with using the options '--with-oci8' and '--with-oracle' at the same time.
When I give the directives as follows, it does not bring any problem (besides some warnings) during the configuration process:
$/src/php-4.0.4pl1> ./configure --with-oci8 --with-oracle --with-apache=../apache/1.3.17 --enable-track-vars
However, if I try to make, it start to nag like these:
$/src/php-4.0.4pl1> make
Making all in Zend
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -g -c zend_language_scanner.c
/bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -g -c zend_ini_scanner.c
[snip]
d_API.lo zend_extensions.lo zend_hash.lo zend_list.lo zend_indent.lo zend_builtin_functions.lo zend_sprintf.lo zend_ini.lo libZend_c.la
Making all in main
cc -I. -I/usr4/apache/src/php-4.0.4pl1/main -I/usr4/apache/src/php-4.0.4pl1/main -I/usr4/apache/src/php-4.0.4pl1
-I/usr4/apache/src/apache_1.3.17/src/include -I/
usr4/apache/src/apache_1.3.17/src/os/unix -I/usr4/apache/src/php-4.0.4pl1/Zend -I/usr4/apache/src/php-4.0.4pl1/ext/mysql/libmysql
-I/oracle/oracle/app/oracle/prod
uct/8.0.5/rdbms/demo -I/oracle/oracle/app/oracle/product/8.0.5/network/public -I/oracle/oracle/app/oracle/product/8.0.5/plsql/public
-I/usr4/apache/src/php-4.0.4p
l1/ext/xml/expat/xmltok -I/usr4/apache/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr4/apache/src/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -c
main.c && touch ma
in.lo
cc: Warning: main.c, line 1250: In this statement, the referenced type of the pointer value "auth+6" is "const signed char", which is not compatible with "const u
nsigned char". (ptrmismatch)
user = php_base64_decode(auth + 6, strlen(auth) - 6, NULL);
-----------------------------------------^
cc: Warning: main.c, line 1250: In this statement, the referenced type of the pointer value "php_base64_decode(...)" is "unsigned char", which is not compatible w
ith "signed char". (ptrmismatch)
user = php_base64_decode(auth + 6, strlen(auth) - 6, NULL);
----------------^
cc -I. -I/usr4/apache/src/php-4.0.4pl1/main -I/usr4/apache/src/php-4.0.4pl1/main -I/usr4/apache/src/php-4.0.4pl1
-I/usr4/apache/src/apache_1.3.17/src/include -I/
usr4/apache/src/apache_1.3.17/src/os/unix -I/usr4/apache/src/php-4.0.4pl1/Zend -I/usr4/apache/src/php-4.0.4pl1/ext/mysql/libmysql
-I/oracle/oracle/app/oracle/prod
uct/8.0.5/rdbms/demo -I/oracle/oracle/app/oracle/product/8.0.5/network/public -I/oracle/oracle/app/oracle/product/8.0.5/plsql/public
-I/usr4/apache/src/php-4.0.4p
l1/ext/xml/expat/xmltok -I/usr4/apache/src/php-4.0.4pl1/ext/xml/expat/xmlparse -I/usr4/apache/src/php-4.0.4pl1/TSRM -DXML_BYTE_ORDER=12 -g -c
internal_functions
.c && touch internal_functions.lo
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 42: In this declaration, parameter 2 has a different type than specified in an earlie
r declaration of this function. (mismatparam)
sword obindps( / struct cda_def cursor, ub1 opcode, text sqlvar,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 42: In this declaration, the type of "obindps" is not compatible with the type of a p
revious declaration of "obindps" at line number 39 in file /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ociapr.h. (notcompat)
sword obindps( / struct cda_def cursor, ub1 opcode, text sqlvar,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 60: In this declaration, parameter 2 has a different type than specified in an earlie
r declaration of this function. (mismatparam)
sword odefinps( / struct cda_def cursor, ub1 opcode, sword pos,ub1 bufctx,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 60: In this declaration, the type of "odefinps" is not compatible with the type of a
previous declaration of "odefinps" at line number 57 in file /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ociapr.h. (notcompat)
sword odefinps( / struct cda_def cursor, ub1 opcode, sword pos,ub1 bufctx,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 74: In this declaration, parameter 2 has a different type than specified in an earlie
r declaration of this function. (mismatparam)
sword oerhms( / struct cda_def lda, sb2 rcode, text buf,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 74: In this declaration, the type of "oerhms" is not compatible with the type of a pr
evious declaration of "oerhms" at line number 71 in file /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ociapr.h. (notcompat)
sword oerhms( / struct cda_def lda, sb2 rcode, text buf,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 76: In this declaration, parameter 1 has a different type than specified in an earlie
r declaration of this function. (mismatparam)
sword oermsg( / sb2 rcode, text buf / );
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 76: In this declaration, the type of "oermsg" is not compatible with the type of a pr
evious declaration of "oermsg" at line number 73 in file /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ociapr.h. (notcompat)
sword oermsg( / sb2 rcode, text buf / );
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 101: In this declaration, parameter 2 has a different type than specified in an earli
er declaration of this function. (mismatparam)
sword osetpi( / struct cda_def cursor, ub1 piece, dvoid bufp,
-------^
cc: Error: /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ocikpr.h, line 101: In this declaration, the type of "osetpi" is not compatible with the type of a p
revious declaration of "osetpi" at line number 98 in file /oracle/oracle/app/oracle/product/8.0.5/rdbms/demo/ociapr.h. (notcompat)
sword osetpi( / struct cda_def cursor, ub1 piece, dvoid bufp,
-------^
Exit 1
Stop.
Exit 1
Stop.
*** Exit 1
Stop.
$/src/php-4.0.4pl1>
If I get one 'Oracle-related' option out of above given 'configure' directions, then 'make' can be done without any problem... Yeah, each oracle directive works as exclusively :-(
Anyway, I never suffered such a problem when I try to build php on another Digital UNIX 4.0E (Rev. 1091) machine.
Any idea?
-K Min