php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42782 Failure On OCI8
Submitted: 2007-09-27 18:54 UTC Modified: 2007-09-29 04:53 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dgrimes at scvl dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.2.4 OS: IA64 HPUX 11.23
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dgrimes at scvl dot com
New email:
PHP Version: OS:

 

 [2007-09-27 18:54 UTC] dgrimes at scvl dot com
Description:
------------
Trying to compile PHP 5.2.4 with Oracle Instant Client 10.2 and I receive the following error:

In file included from /dc_user01/dgrimes/cdev/php-5.2.4/ext/oci8/oci8.c:50:
/dc_user01/dgrimes/cdev/php-5.2.4/ext/oci8/php_oci8_int.h:354: error: expected declaration specifiers or '...' before 'oraub8'
/dc_user01/dgrimes/cdev/php-5.2.4/ext/oci8/php_oci8_int.h:354: error: expected declaration specifiers or '...' before 'oraub8'
make: *** [ext/oci8/oci8.lo] Error 1


Reproduce code:
---------------
Using GCC 4.2.1
GNU Make 3.81

configure \
  --with-oci8=shared,instantclient,$ORACLE_HOME/instantclient_10_2 \
  --with-zlib-dir=/usr/local \
  --without-sqlite \
  --without-pdo-sqlite \
  --disable-reflection


Expected result:
----------------
A php executable with Oracle support

Actual result:
--------------
Compile failure.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-28 13:57 UTC] dgrimes at scvl dot com
If I change OCI8 in the configure statement to:

--with-oci8=instantclient,$ORACLE_HOME/instantclient_10_2

I get the following after configure:

+--------------------------------------------------------------------+
|                       *** ATTENTION ***                            |
|                                                                    |
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |
|                                                                    |
| If you are unable to fix this, send the file debug.log to the      |
| php-install@lists.php.net mailing list and include appropiate      |
| information about your setup.                                      |
+--------------------------------------------------------------------+

This is what is in debug.log:

gcc -o conftest -I/usr/local/include -g -O2  -D_XOPEN_SOURCE_EXTENDED -liconv -L
/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -L/dc_user01/app/oracle/produc
t/10.2/instantclient_10_2 -L/dc_user01/app/oracle/product/10.2/instantclient_10_
2 conftest.c -liconv -lz -lm -lnsl  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -l
m -lclntsh -lnnz10 -lxml2 -lz -liconv -lm 1>&5
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in function 'e
xit'
ld: Mismatched ABI for -lclntsh, found /dc_user01/app/oracle/product/10.2/instan
tclient_10_2/libclntsh.so
Fatal error.
collect2: ld returned 1 exit status

Thanks,
Dean
 [2007-09-29 04:53 UTC] sixd@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

---------
The oraub8 issue is an Oracle bug (#4901517) on AIX and HP-UX 64 bit.  See http://forums.oracle.com/forums/thread.jspa?messageID=1929534 for the workaround.
---------

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 05:01:31 2024 UTC