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: 2021-11-21 04:22 UTC
Votes:17
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jan dot declercq at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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.
 [2021-11-09 09:19 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-11-09 09:19 UTC] cmb@php.net
> 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
PDO_INFORMIX (1.3.4)?

[1] <https://www.php.net/supported-versions.php>
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC