|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-07-07 02:42 UTC] lbc102 at 163 dot com
Description: ------------ hi,seniors,i install oci8 with php5 and oracle10g,i find a mistake when i execute make like this: [root@test php-5.1.4]# make /bin/sh /root/software/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile /root/software/php-5.1.4/meta_ccld -Iext/oci8/ -I/root/software/php-5.1.4/ext/oci8/ -DPHP_ATOM_INC -I/root/software/php-5.1.4/include -I/root/software/php-5.1.4/main -I/root/software/php-5.1.4 -I/usr/local/include/libxml2 -I/root/software/php-5.1.4/ext/date/lib -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/gd-2.0.28/ -I/usr/local/mysql/include -I/u01/app/oracle/product/10.1.0/db_1//rdbms/public -I/u01/app/oracle/product/10.1.0/db_1//rdbms/demo -I/u01/app/oracle/product/10.1.0/db_1//plsql/public -I/root/software/php-5.1.4/TSRM -I/root/software/php-5.1.4/Zend -D_REENTRANT -I/usr/include -g -O2 -pthread -DZTS -prefer-non-pic -c /root/software/php-5.1.4/ext/oci8/oci8_lob.c -o ext/oci8/oci8_lob.lo In file included from /root/software/php-5.1.4/ext/oci8/oci8_lob.c:43: /root/software/php-5.1.4/ext/oci8/php_oci8_int.h:328: syntax error before "oraub8" /root/software/php-5.1.4/ext/oci8/oci8_lob.c:150: syntax error before "oraub8" /root/software/php-5.1.4/ext/oci8/oci8_lob.c: In function `php_oci_lob_callback': /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: `len' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: (Each undeclared identifier is reported only once /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: for each function it appears in.) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:156: `ctxp' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:158: `piece' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:162: `bufxp' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c: In function `php_oci_lob_read': /root/software/php-5.1.4/ext/oci8/oci8_lob.c:220: `oraub8' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:220: syntax error before "bytes_read" /root/software/php-5.1.4/ext/oci8/oci8_lob.c:248: `requested_len' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:259: `offset' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:288: `chars_read' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:289: `bytes_read' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before ')' token /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before ')' token /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before "offset" make: *** [ext/oci8/oci8_lob.lo] Error 1 i ensure oci8_lob.c is the lastest version but i can not find the "oraub8" in any *.h head files,is this a bug or i miss some head files? help me thanks a lot Reproduce code: --------------- [root@test php-5.1.4]# make /bin/sh /root/software/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile /root/software/php-5.1.4/meta_ccld -Iext/oci8/ -I/root/software/php-5.1.4/ext/oci8/ -DPHP_ATOM_INC -I/root/software/php-5.1.4/include -I/root/software/php-5.1.4/main -I/root/software/php-5.1.4 -I/usr/local/include/libxml2 -I/root/software/php-5.1.4/ext/date/lib -I/usr/local/include -I/usr/local/include/freetype2 -I/usr/local/gd-2.0.28/ -I/usr/local/mysql/include -I/u01/app/oracle/product/10.1.0/db_1//rdbms/public -I/u01/app/oracle/product/10.1.0/db_1//rdbms/demo -I/u01/app/oracle/product/10.1.0/db_1//plsql/public -I/root/software/php-5.1.4/TSRM -I/root/software/php-5.1.4/Zend -D_REENTRANT -I/usr/include -g -O2 -pthread -DZTS -prefer-non-pic -c /root/software/php-5.1.4/ext/oci8/oci8_lob.c -o ext/oci8/oci8_lob.lo In file included from /root/software/php-5.1.4/ext/oci8/oci8_lob.c:43: /root/software/php-5.1.4/ext/oci8/php_oci8_int.h:328: syntax error before "oraub8" /root/software/php-5.1.4/ext/oci8/oci8_lob.c:150: syntax error before "oraub8" /root/software/php-5.1.4/ext/oci8/oci8_lob.c: In function `php_oci_lob_callback': /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: `len' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: (Each undeclared identifier is reported only once /root/software/php-5.1.4/ext/oci8/oci8_lob.c:155: for each function it appears in.) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:156: `ctxp' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:158: `piece' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:162: `bufxp' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c: In function `php_oci_lob_read': /root/software/php-5.1.4/ext/oci8/oci8_lob.c:220: `oraub8' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:220: syntax error before "bytes_read" /root/software/php-5.1.4/ext/oci8/oci8_lob.c:248: `requested_len' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:259: `offset' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:288: `chars_read' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:289: `bytes_read' undeclared (first use in this function) /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before ')' token /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before ')' token /root/software/php-5.1.4/ext/oci8/oci8_lob.c:315: syntax error before "offset" make: *** [ext/oci8/oci8_lob.lo] Error 1 Expected result: ---------------- make procedure success PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
I've reproduced the problem too, my config: AIX-5.2 php-5.1.6 Oracle-10g Error: oraub8 undeclared Cause: $ORAHOME/rbms/public/oratypes.h (for some mental or religional reasons) contains these lines: /* --- Signed/Unsigned eight-byte scalar (orasb8/oraub8) --- */ #if (__STDC__ != 1) || defined(__64BIT__) # define ORAXB8_DEFINED # ifndef lint # ifdef __64BIT__ typedef unsigned long oraub8; typedef signed long orasb8; Solution: 1. Add '|| defined(HAVE_LONG_LONG)' to the #if 2. Before configuring php, execute 'export CFLAGS="$CFLAGS -DHAVE_LONG_LONG"'