[php-maint] Bug#454803: php5: Unable to build pdo_sqlite standlone because php_pdo_driver.h cannot be found (but is there)

Markus Fischer markus at fischer.name
Fri Dec 7 23:18:57 UTC 2007

Package: php5
Version: 5.2.3-1+lenny1
Severity: wishlist

Currently the pdo_sqlite extension cannot be built standalone because
the header file "php_pdo_driver.h" cannot be found although it's there.

See the example (the directory pdo_sqlite is directly copied from a
prestine 5.2.5 source directory):

markus at dev01:~/isrc/php/pdo_sqlite$ phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
./confmarkus at dev01:~/isrc/php/pdo_sqlite$ ./configure --help|less
markus at dev01:~/isrc/php/pdo_sqlite$ ./configure
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 gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
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/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.12.1 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for sqlite 3 support for PDO... yes, shared
checking for PDO includes... checking for PDO includes...
configure: error: Cannot find php_pdo_driver.h.
markus at dev01:~/isrc/php/pdo_sqlite$

The file is available at /usr/include/php5/ext/pdo/php_pdo_driver.h .

The check inside configure looks like this:
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
    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
In my case $abs_srcdir is set to /home/markus/isrc/php/pdo_sqlite .
When I symlink ext inside pdo_sqlite to ln -s /usr/include/php5/ext it

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable')
Architecture: i386 (i686)

Kernel: Linux (SMP w/4 CPU cores)
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5 depends on:
ii  libapache2-mod-php5       5.2.3-1+lenny1 server-side, HTML-embedded scripti
ii  php5-common               5.2.3-1+lenny1 Common files for packages built fr

php5 recommends no packages.

-- no debconf information

More information about the pkg-php-maint mailing list