ID:               38029
 Comment by:       roland dot wendler at miele dot de
 Reported By:      lbc102 at 163 dot com
 Status:           No Feedback
 Bug Type:         OCI8 related
 Operating System: linux  2.4.21-32.E
 PHP Version:      5.1.4
 New Comment:

I have a similar problem on an IBM-AIX system: 

Error Message after invoking "make":
------------------------------------
/bin/sh /usr/src/php5.2-200609071230/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/oci8/
-I/usr/src/php5.2-200609071230/ext/oci8/ -DPHP_ATOM_INC
-I/usr/src/php5.2-200609071230/include
-I/usr/src/php5.2-200609071230/main -I/usr/src/php5.2-200609071230
-I/usr/local/include/libxml2
-I/usr/src/php5.2-200609071230/ext/date/lib -I/usr/local/include
-I/oracle/client/102_64/rdbms/public -I/oracle/client/102_64/rdbms/demo
-I/usr/src/php5.2-200609071230/TSRM -I/usr/src/php5.2-200609071230/Zend 
  -I/usr/include -g -O2   -c
/usr/src/php5.2-200609071230/ext/oci8/oci8.c -o ext/oci8/oci8.lo
In file included from /usr/src/php5.2-200609071230/ext/oci8/oci8.c:50:
/usr/src/php5.2-200609071230/ext/oci8/php_oci8_int.h:343: error: parse
error before 'oraub8'
/usr/src/php5.2-200609071230/ext/oci8/oci8.c: In function
'php_oci_init_global_handles':
/usr/src/php5.2-200609071230/ext/oci8/oci8.c:433: warning: pointer
targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/php5.2-200609071230/ext/oci8/oci8.c: In function
'php_oci_fetch_errmsg':
/usr/src/php5.2-200609071230/ext/oci8/oci8.c:913: warning: pointer
targets in passing argument 1 of 'strlen' differ in signedness
/usr/src/php5.2-200609071230/ext/oci8/oci8.c:920: warning: pointer
targets in passing argument 1 of '_estrndup' differ in signedness
/usr/src/php5.2-200609071230/ext/oci8/oci8.c:920: warning: pointer
targets in assignment differ in signedness
/usr/src/php5.2-200609071230/ext/oci8/oci8.c: In function
'php_oci_do_connect_ex':
/usr/src/php5.2-200609071230/ext/oci8/oci8.c:1032: warning: pointer
targets in passing argument 2 of 'OCINlsCharSetNameToId' differ in
signedness
make: 1254-004 The error code from the last command is 1.

Environment:
------------
[root]# export ORACLE_HOME=/oracle/client/102_64
[root]# export LIBPATH=$LIBPATH:$ORACLE_HOME/lib
[root]# export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib

Invoking configure:
-------------------
./configure  \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-ldap \
--with-oracle=/oracle/client/102_64 \
--with-oci8=/oracle/client/102_64 \
--prefix=/usr/local/apache2/php \
--without-mysql

Excerpt from configure:
-----------------------
checking host system type... powerpc-ibm-aix5.3.0.0
checking size of long int... 4
checking checking if we're at 64-bit platform... no
checking OCI8 libraries dir... lib32

Comments:
---------
As you all can see, I tried the latest CVS snapshot.
I guess that there is a problem identifying the 64-bit Environment. The
OCI8-library-path has to be /path/to/oracle_home/lib instead of
.../lib32


Previous Comments:
------------------------------------------------------------------------

[2006-07-07 08:33:59] [EMAIL PROTECTED]

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



------------------------------------------------------------------------

[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:
[EMAIL PROTECTED] 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:
---------------
[EMAIL PROTECTED] 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

Reply via email to