#38029 [Opn->Fbk]: oci8 make procedure mistake
ID: 38029
Updated by: tony2001@php.net
Reported By: lbc102 at 163 dot com
-Status: Open
+Status: Feedback
Bug Type: OCI8 related
Operating System: linux 2.4.21-32.E
PHP Version: 5.1.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-07-07 02:42:35] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38029&edit=1
Thread (6 messages)