|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59450 ./configure fails with "Cannot find php_pdo_driver.h"
Submitted: 2010-10-06 02:51 UTC Modified: 2021-11-21 04:22 UTC
Avg. Score:3.9 ± 1.2
Reproduced:16 of 16 (100.0%)
Same Version:2 (12.5%)
Same OS:3 (18.8%)
From: jan dot declercq at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: PDO_INFORMIX (PECL)
PHP Version: 5.3.3 OS: Linux (opensuse 11.3)
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-10-06 02:51 UTC] jan dot declercq at gmail dot com
 Cannot find php_pdo_driver.h

The ./configure script doesn't look in in /usr/include/php5 
for the php_pdo_driver.h

Extra info:

#php -v
PHP 5.3.3 (cli) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend 

# rpm -q php5

# rpm -q php5-pdo

# php-config --include-dir

Reproduce code:
pecl install -n pdo_informix

Expected result:
pdo_informix should install..

Actual result:
> checking for PDO includes... configure: error: Cannot find
> php_pdo_driver.h.
> ERROR: `/tmp/pear/download/PDO_INFORMIX-1.2.6/configure
> --with-pdo-informix=/opt/IBM/informix' failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-06 02:56 UTC] jan dot declercq at gmail dot com
I manually altered /tmp/pear/download/PDO_INFORMIX-

Where you have the lines:

if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; 
   elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
   elif test -f 
$prefix/include/php/ext/pdo/php_pdo_driver.h; then
     as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5
 I added this lines so it would find the header file:  
 instead of
 .../php/..  )
   elif test -f 
$prefix/include/php5/ext/pdo/php_pdo_driver.h; then
 [2011-11-15 08:30 UTC] esserj at gmail dot com
same problem on UBUNTU,
solved the problem as per 
"[2010-10-06 02:56 UTC] jan dot declercq at gmail dot com" comment
 [2013-06-25 19:53 UTC] eosrei at gmail dot com
This problem is probably caused by acinclude.m4 which is used to generate the configure script, here:
 [2014-11-18 21:15 UTC] eosrei at gmail dot com
If you compile from source you will not have this issue, so it is not a bug in PHP. In OP's case it is an opensuse issue. The acinclude.m4 file needs to be updated.

A temporary workaround:
sudo ln -s /usr/include/php5/ /usr/include/php

I've added an Ubuntu bug report:

I believe this bug can be closed.
 [2021-11-09 09:19 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-11-09 09:19 UTC]
> I believe this bug can be closed.

Me too, or does anybody still experience this build issue with any
of the actively supported PHP versions[1] and the latest

[1] <>
 [2021-11-21 04:22 UTC] pecl-dev 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 "Re-Opened". Thank you.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC