PHP 4.3.4 + Oracle 9i + Apache 2.0.47
| From: | Daniel Sand | Date: | Fri, 07 Nov 2003 09:52:00 +0000 |
| Subject: | PHP 4.3.4 + Oracle 9i + Apache 2.0.47 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31489@lists.php.net to get a copy of this message | ||
Hello,
The system is Solaris sun4u sparc SUNW,UltraAX-i2, SunOS 5.8 i'm compiling this with a gcc 3.3.
I'm trying to configure a PHP 4.3.4 with oracle oci8 support.
i've pushed the vars for oracle in the enviroment
ORACLE_BASE="/opt/oracle/app/oracle"
export ORACLE_BASE
ORACLE_HOME="/opt/oracle/app/oracle/product/9.2"
export ORACLE_HOME
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/network/lib
export LD_LIBRARY_PATH
PATH=$PATH:$ORACLE_HOME/bin:/usr/ccs/bin:
export PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export CLASSPATH
LC_LANG=de_DE
export LC_LANG
LC_ALL=de_DE
export LC_ALL
and the configure with this options run through:
./configure \
--disable-cli \
--without-pear \
--enable-sigchild \
--prefix=${APACHE_DIR}/ext/php-4.3.4 \
--with-apxs2=${APACHE_DIR}/bin/apxs \
--enable-ftp=shared \
--with-mysql=shared \
--enable-sysvsem \
--enable-sysvshm \
--with-oracle=$ORACLE_HOME \
--with-oci8=$ORACLE_HOME
when i start to make the build all runs fine till the oci8 module compiling, then a whole bunch off missing functions and wrong syntaxes in the code showing up:
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1191: error: request for member `pError' in something not a structure or union
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1191: error: request for member `error' in something not a structure or union
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1196: error: invalid type argument of `->'
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1196: warning: passing arg 1 of `zend_list_insert' makes pointer from integer without a cast
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1197: error: invalid type argument of `->'
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1200: error: invalid type argument of `->'
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1202: warning: return makes pointer from integer without a cast
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: At top level:
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1210: error: parse error before '*' token
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: In function `_oci_get_ocicoll':
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1212: error: invalid operands to binary *
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1214: error: `id' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1218: error: `collection' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1218: error: invalid type argument of `unary *'
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1223: error: invalid type argument of `unary *'
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: At top level:
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1234: error: parse error before '*' token
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: In function `_oci_get_ocidesc':
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1236: error: `desc' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1238: error: `id' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1243: error: `descriptor' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: At top level:
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1255: error: parse error before '*' token
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c: In function `_oci_make_zval':
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1258: error: `ub4' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1258: error: parse error before "loblen"
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1262: error: `column' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1267: error: `statement' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1268: error: `value' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1276: error: `SQLT_RDD' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1276: error: `mode' undeclared (first use in this function)
/park/pub/source/www-rom/modules/php4/build/php-4.3.4/ext/oci8/oci8.c:1279: warning: assignment ^Cgmake: *** [ext/oci8/oci8.lo] Error 1
I'm a little bit confused. Cause the whole procedure runs through linux with no problems. Yeah i'm aware that this are 2 diffrent pair of shoes :)
so anybody got a hint or a clue or a bugfix ?
Regards Daniel
--
--
Pixelpark AG . . . . . . . . . . . . . . . . . . . . . . . . .
Daniel Sand . Webmaster . http://www.pixelpark.com
rotherstr. 8 . 10245 Berlin . Germany
phone: + 49.30.505.8 - 1790