From: astorozhuk at ukrcard dot com dot ua Operating system: sles9 PHP version: 5.2.3 PHP Bug Type: Compile Failure Bug description: i foud solution, publish it on website
Description: ------------ 1.look: /usr/local/src/php-5.2.3/ext/oci8/oci8_lob.c:304: error: `OCI_NLS_CHARSET_MAXBYTESZ' undeclared (first use in this function) /usr/local/src/php-5.2.3/ext/oci8/oci8_lob.c:304: error: (Each undeclared identifier is reported only once /usr/local/src/php-5.2.3/ext/oci8/oci8_lob.c:304: error: for each function it appears in.) make: *** [ext/oci8/oci8_lob.lo] Error 1 http://bugs.php.net/bug.php?id=41563&edit=1 [4 Jun 8:36am UTC] [EMAIL PROTECTED] Sorry, we don't support Oracle 8 anymore. http://bugs.php.net/bug.php?id=41348 [10 May 8:05pm UTC] [EMAIL PROTECTED] Upgrade to newer Oracle version. 2. description this things happen if compile with OCI8 support you must understand, that it is not ORACLE 8(!) support, it is ORALCE suppurt we have oracle9 or 10 , and OCI8 is standart library (there is no OCI9 OCI10 library, or OCI library) so you replys is stupid 3.solution (solution was took and analysed from http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2007-May/120308.html) solution itself: tar xvfz php-5.2.3.tar.gz cd ext/oci8 EDIT oci8_lob.c, near line 340 add compiler commands to make text: =================================== if (is_clob) { #ifdef OCI_NLS_CHARSET_MAXBYTESZ PHP_OCI_CALL_RETURN(connection->errcode, OCINlsNumericInfoGet, (connection->env, connection->err, &bytes_per_char, OCI_NLS_CHARSET_MAXBYTESZ)); if (connection->errcode != OCI_SUCCESS) { php_oci_error(connection->err, connection->errcode TSRMLS_CC); PHP_OCI_HANDLE_ERROR(connection, connection->errcode); return 1; } #else bytes_per_char = 4; #endif } else { /* BLOBs don't have encoding, so bytes_per_char == 1 */ } =================================== added lines: #ifdef OCI_NLS_CHARSET_MAXBYTESZ #else bytes_per_char = 4; #endif =================================== 4. TODO for you please change your comments to this solution, because i had to use old php version because i dodnt know solution to make it work in new versions and after sawing your replys i was shocked places to change comments http://bugs.php.net/bug.php?id=41563&edit=1 http://bugs.php.net/bug.php?id=41348 -- Edit bug report at http://bugs.php.net/?id=42456&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42456&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42456&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42456&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42456&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42456&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42456&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42456&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42456&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42456&r=support Expected behavior: http://bugs.php.net/fix.php?id=42456&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42456&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42456&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42456&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42456&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42456&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42456&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42456&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42456&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42456&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42456&r=mysqlcfg
