[php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h."

Cassiano Leal cassianoleal at gmail.com
Thu Jan 15 13:56:25 UTC 2009


Package: php5
Version: 5.2.6.dfsg.1-2
Severity: serious
Tags: patch
Justification: no longer builds from source


Trying to build pdo_oci from php5 sources fails with the message below:

checking for PDO includes... checking for PDO includes...
configure: error: Cannot find php_pdo_driver.h.
make: *** [configure-stamp-v5] Error 1

The following patch solves the problem (has to be applied after
phpizing the source):

*** configure   2009-01-15 11:41:34.000000000 -0200
--- configure.new       2009-01-15 11:43:35.000000000 -0200
***************
*** 7049,7056 ****
        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
      fi

  fi
--- 7049,7056 ----
        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/php5/ext/pdo/php_pdo_driver.h; then
!       pdo_inc_path=$prefix/include/php5/ext
      fi

  fi


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (990, 'testing'), (520, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.27-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the pkg-php-maint mailing list