|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59694 configure: error: Cannot find php_pdo_driver.h
Submitted: 2011-03-28 03:39 UTC Modified: 2013-02-18 00:35 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 3 (66.7%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.3.5 OS: Debian Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2011-03-28 03:39 UTC]
At least in Debian the PHP5 headers are installed to /usr/include/php5 and not /usr/include/php which causes this extension to be unable to build.

A patch would be:

$ diff -u configure.orig configure
--- configure.orig      2011-03-28 10:35:06.000000000 +0200
+++ configure   2011-03-28 10:34:13.000000000 +0200
@@ -5978,6 +5978,8 @@
     elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
+    elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then
+      pdo_inc_path=$prefix/include/php5/ext

Expected result:

Actual result:
$ ./configure --with-pdo-oci=instantclient,/usr,11.1
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... ^[[Ayes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20090626+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking Oracle OCI support for PDO... yes, shared
checking Oracle Install-Dir... instantclient,/usr,11.1
checking if that is sane... yes
checking for oci.h... /usr/include/oracle/11.1/client
checking for OCIEnvCreate in -lclntsh... yes
checking for OCIEnvNlsCreate in -lclntsh... yes
checking for OCILobIsTemporary in -lclntsh... yes
checking for OCICollAssign in -lclntsh... yes
checking for OCIStmtFetch2 in -lclntsh... yes
checking for PDO includes... checking for PDO includes... 
configure: error: Cannot find php_pdo_driver.h.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-25 09:52 UTC]
This is when compiling this extension standalone? Presumably php-config --
include-dir would return the right directory which would make a standalone build 
 [2012-02-25 09:52 UTC]
-Status: Open +Status: Feedback -Package: PDO_OCI +Package: *General Issues
 [2013-02-18 00:35 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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 07:01:28 2024 UTC