Re: [PHP-DB] PHP 4.3.4 + Oracle 9i + Apache 2.0.47 ! SOLVED !
Hey Folks, in first cast their where missing .h libs from the oracle installation but after installing them the gmake was not working correct anymore. I cannot realy explain why. But in some case the configure shredded the Make files in think, because gmake tried to make .dll libs and not .so libs. So i deleted all and reconfigured all again and then it worked well. Regards Daniel Daniel Sand wrote: 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)
Re: [PHP-DB] PHP 4.3.4 + Oracle 9i + Apache 2.0.47
I don't have this combo to test unfortunately. It may be an include path problem. Check the Makefile has a valid -I path for the Oracle headers. An unrelated issue to be aware of is http://bugs.php.net/bug.php?id=25980 Chris Daniel Sand wrote: 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:
[PHP-DB] PHP 4.3.4 + Oracle 9i + Apache 2.0.47
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)