Edit report at https://bugs.php.net/bug.php?id=59694&edit=1
ID: 59694
Updated by: ras...@php.net
Reported by: c...@php.net
Summary: configure: error: Cannot find php_pdo_driver.h
-Status: Open
+Status: Feedback
Type: Bug
-Package: PDO_OCI
+Package: *General Issues
Operating System: Debian Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
This is when compiling this extension standalone? Presumably php-config --
include-dir would return the right directory which would make a standalone
build
work.
Previous Comments:
------------------------------------------------------------------------
[2011-03-28 03:39:20] c...@php.net
Description:
------------
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 @@
pdo_inc_path=$abs_srcdir/ext
elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
pdo_inc_path=$prefix/include/php/ext
+ elif test -f $prefix/include/php5/ext/pdo/php_pdo_driver.h; then
+ pdo_inc_path=$prefix/include/php5/ext
fi
fi
Expected result:
----------------
builds
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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=59694&edit=1