From: nick at us dot maskina dot com Operating system: Red Hat Linux 9 (Shrike) PHP version: 4.4.0 PHP Bug Type: OCI8 related Bug description: Problems Compiling OCI8 > 1.1 Extension
Description: ------------ When attempting to compile PHP 4.4.0 with the recently updated OCI8 extension (http://pecl.php.net/package/oci8, 1.1 and/or 1.1.1) statically compiled in I am receiving numerous errors regarding: undefined reference to `zif_oci_***' Everything compiles and works correctly using OCI8 1.0. I am able to compile as a shared extension, HOWEVER when starting apache the following error is returned by Apache: PHP Warning: Unknown(): Unable to load dynamic library '/ usr/local/lib/php/extensions/oci8.so' - /usr/local/lib/php/ extensions/oci8.so: undefined symbol: php_oci_statement_free in Unknown on line 0 Oracle version is 8.1.7.3 Reproduce code: --------------- ./configure --with-oci8=/usr/local/oracle/Orahome81 Expected result: ---------------- Successful Compile Actual result: -------------- /home/nick/src/php-4.4.0/ext/mysql/libmysql/my_tempnam.c: 115: the use of `tempnam' is dangerous, better use `mkstemp' ext/oci8/oci8.lo(.text+0x970): In function `php_oci_descriptor_flush_hash_dtor': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:749: undefined reference to `php_oci_lob_flush' ext/oci8/oci8.lo(.text+0x21b2): In function `php_oci_column_to_zval': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:1479: undefined reference to `php_oci_lob_read' ext/oci8/oci8.lo(.text+0x22b0): In function `php_oci_fetch_row': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:1560: undefined reference to `php_oci_statement_fetch' ext/oci8/oci8.lo(.text+0x23b3):/home/nick/src/php-4.4.0/ext/ oci8/oci8.c:1568: undefined reference to `php_oci_statement_get_column' ext/oci8/oci8.lo(.text+0x865): In function `php_oci_statement_list_dtor': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:668: undefined reference to `php_oci_statement_free' ext/oci8/oci8.lo(.text+0x879): In function `php_oci_descriptor_list_dtor': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:676: undefined reference to `php_oci_lob_free' ext/oci8/oci8.lo(.text+0x88d): In function `php_oci_collection_list_dtor': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:684: undefined reference to `php_oci_collection_close' ext/oci8/oci8.lo(.data+0x4): In function `php_oci_init_global_handles': /home/nick/src/php-4.4.0/ext/oci8/oci8.c:382: undefined reference to `zif_oci_define_by_name' ext/oci8/oci8.lo(.data+0x10):/home/nick/src/php-4.4.0/ext/ oci8/oci8.c:387: undefined reference to `zif_oci_bind_by_name' ext/oci8/oci8.lo(.data+0x1c):/home/nick/src/php-4.4.0/ext/ oci8/oci8.c:384: undefined reference to `zif_oci_field_is_null' ext/oci8/oci8.lo(.data+0x28):/home/nick/src/php-4.4.0/ext/ oci8/oci8.c:389: undefined reference to `zif_oci_field_name' ... ... -- Edit bug report at http://bugs.php.net/?id=34995&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34995&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34995&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34995&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34995&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34995&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34995&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34995&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34995&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34995&r=support Expected behavior: http://bugs.php.net/fix.php?id=34995&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34995&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34995&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34995&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34995&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34995&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34995&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34995&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34995&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34995&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34995&r=mysqlcfg