php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24950 Compiling PHP --with-oci8 --with oracle (Oracle 9i) fails
Submitted: 2003-08-05 06:24 UTC Modified: 2003-08-12 06:49 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: fschulze at more-radio dot de Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.2 OS: Solaris8
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fschulze at more-radio dot de
New email:
PHP Version: OS:

 

 [2003-08-05 06:24 UTC] fschulze at more-radio dot de
Description:
------------
HI,
problem to MAKE php after the following

./configure --with-apxs2=/www/currentsw/apache/bin/apxs --with-mysql=/www/currentsw/mysql --enable-versioning --enable-track-vars=yes --enable-url-includes --with-config-file-path=/www/currentsw/apache/conf --prefix=/www/bin/php-4.3.2 --with-oci8

configure looks good. make brings up hunderts of error-lines. here are the last ones:

/www/source/php-4.3.2/ext/oci8/oci8.c:5472: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5472: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5472: parse error before ')' token
/www/source/php-4.3.2/ext/oci8/oci8.c:5472: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5480: request for member `coll_typecode' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5494: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5494: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5494: request for member `tdo' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5494: parse error before ')' token
/www/source/php-4.3.2/ext/oci8/oci8.c:5494: request for member `in_call' in something not a structure or union
/www/source/php-4.3.2/ext/oci8/oci8.c:5502: request for member `id' in something not a structure or union
*** Error code 1
make: Fatal error: Command failed for target `ext/oci8/oci8.lo'


if configured without --oci8 everything is ok.
any ideas?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-05 18:27 UTC] cunha17 at uol dot com dot br
This is caused by configure not locating oci.h. Verify that you installed the C/C++ OCI interface (wich must be selected manually with the Installer).

I guess that the oci.h file after installation is located inside the demo directory.

Hope it helps.
 [2003-08-06 09:40 UTC] fschulze at more-radio dot de
thanks for the answers. CVS brings the same error.

after install c++ OCI interface from oracle CD make brings up this error:

ight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend
ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_A
I.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_inde
t.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/
end_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/apache2handler/sa
i_apache2.lo sapi/apache2handler/apache_config.lo sapi/apache2handler/php_funct
ons.lo main/internal_functions.lo -lmysqlclient -lresolv -lm -ldl -lnsl -lsocke
 -lgcc -lnsl -lsocket -lgen -ldl -lclntsh  -o libphp4.la
ld: fatal: file /www/bin/oracle/produkt/9.2.0/lib/libclntsh.so: wrong ELF class
 ELFCLASS64
ld: fatal: File processing errors. No output written to .libs/libphp4.so
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
 [2003-08-06 09:54 UTC] sniper@php.net
http://www.phpbuilder.com/mail/php-install/2003011/0231.php

There are other 64bit issues that need to be solved and this falls in the same category. I'll add a note about this in the bug #21973 (currently I have no access to such machine so there isn't much I can do about these.)

 [2003-08-12 06:49 UTC] fschulze at more-radio dot de
note:
i figured out that using oracle for solaris 32(!) bit 
version runs without any problem. this version is available at oracle.com for download. install "client" and select "custom". select management tools, c/c++ librarys and programmers tools. use --with-oracle.
 [2004-07-06 14:59 UTC] Joerg dot Dieter dot Friedrich at uni-konstanz dot de
maybe someone could add a test to ext/oci/config.m4 to check if ORACLE_HOME/lib and ORACLE_HOME/lib32 is in place. 
if both are there, check what type of binary is 'produced' 32-bit or 64-bit, similar to the irix-checks in aclocal.m4 and then decide which lib-directory to use.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jun 06 06:01:27 2025 UTC