php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54451 Cannot Compile PDO_* on Ubuntu
Submitted: 2011-04-02 12:03 UTC Modified: 2016-03-08 01:44 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: schkovich at gmail dot com Assigned:
Status: No Feedback Package: PDO OCI
PHP Version: 5.3SVN-2011-04-02 (snap) OS: Linux Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-04-02 12:03 UTC] schkovich at gmail dot com
Description:
------------
PDO_OCI complied using PHP 5.3-201103302030 snap
Oracle Instant Client 11.2.0.2.0 x64 zip Basic, SDK

Running: PHP 5.3.3-1ubuntu9.3, on Linux  2.6.35-28-generic #49-Ubuntu SMP Tue Mar 
1 14:39:03 UTC 2011 x86_64

Configure reports two problems:
* PHP_CHECK_PDO_INCLUDES variable must and with _cv_ to be cached
* cannot find php_pdo_driver.h

Test script:
---------------
user@user:/usr/local/src/pdo_oci$ phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
...
config.m4:202: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
...
aclocal.m4:2739: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:202: the top level
user@user:/usr/local/src/pdo_oci$ ./configure --with-pdo-oci=shared,instantclient,/opt/oracle/instantclient,11.2
checking for grep that handles long lines and -e... /bin/grep
...
checking for PDO includes... checking for PDO includes... 
configure: error: Cannot find php_pdo_driver.h.

Expected result:
----------------
Configure runs successfully 

Actual result:
--------------
Configure fails with message: Cannot find php_pdo_driver.h

Patches

config.m4.deb.patch (last revision 2011-04-05 19:00 UTC by schkovich at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-02 17:56 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: sixd
 [2011-04-04 19:14 UTC] sixd@php.net
-Summary: Cannot Compile PDO_OCI on Ubuntu +Summary: Cannot Compile PDO_* on Ubuntu -Assigned To: sixd +Assigned To:
 [2011-04-04 19:14 UTC] sixd@php.net
This is generic across PDP. All ext/pdo_*/config.m4 files make the same assumptions about the install path.
 [2011-04-05 14:47 UTC] schkovich at gmail dot com
Right. I scanned other extensions to see how similar cases are handled. Closest 
match is in XMLRPC extension. See 
ext/xmlrpc/config.m4 lines 95 - 116.

Here is the new patch having loop: http://ubuntuone.com/p/kyx/ 

I guess that setting pdo_inc_path could be further optimized to eliminate the 
first condition at least. Speaking of:     
if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
      pdo_inc_path=$abs_srcdir/ext
appears to be wrong. Shouldn't the second line (line 208) read 
pdo_inc_path=$abs_srcdir/include/php/ext?
 [2011-11-16 14:32 UTC] felipe@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2011-11-16 14:32 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2016-03-08 01:44 UTC] sixd@php.net
-Package: PDO related +Package: PDO OCI
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Jan 24 09:01:24 2020 UTC