php.net |  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: 2010-10-06 02:56 UTC
Votes:9
Avg. Score:4.1 ± 0.9
Reproduced:9 of 9 (100.0%)
Same Version:2 (22.2%)
Same OS:3 (33.3%)
From: jan dot declercq at gmail dot com Assigned:
Status: Open Package: PDO_INFORMIX (PECL)
PHP Version: 5.3.3 OS: Linux (opensuse 11.3)
Private report: No CVE-ID:
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
Description:
------------
 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 
Technologies

# rpm -q php5
php5-5.3.3-0.1.2.x86_64

# rpm -q php5-pdo
php5-pdo-5.3.3-0.1.2.x86_64

# php-config --include-dir
/usr/include/php5



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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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-
1.2.6/configure

Where you have the lines:

if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; 
then
     pdo_inc_path=$abs_srcdir/ext
   elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
     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
   else
     as_fn_error "Cannot find php_pdo_driver.h." "$LINENO" 5
   fi
 
 
 I added this lines so it would find the header file:  
(../php5/..
 instead of
 .../php/..  )
 
   elif test -f 
$prefix/include/php5/ext/pdo/php_pdo_driver.h; then
     pdo_inc_path=$prefix/include/php5/ext
 [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: https://github.com/php/php-src/blob/master/acinclude.m4#L2774
 [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: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1393640

I believe this bug can be closed.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Feb 21 14:01:44 2017 UTC