Bug#511900: closed by Raphael Geissert atomo64+deb...@gmail.com (Re: [php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with Cannot find php_pdo_driver.h.)
On Friday 16 January 2009 18:57:03 Debian Bug Tracking System wrote: 2009/1/15 Cassiano Leal cassianol...@gmail.com: [...] checking for PDO includes... checking for PDO includes... configure: error: Cannot find php_pdo_driver.h. make: *** [configure-stamp-v5] Error 1 Fix the --prefix, php_pdo_driver.h is available at /usr/include/php*5*/ext/pdo/php_pdo_driver.h not /usr/include/php/ext/pdo/php_pdo_driver.h Where am I doing wrong? Here's my process: $ cd php5-5.2.6.dfsg.1/ext/pdo_oci $ pecl package package2.xml $ dh-make-pecl --only 5 PDO_OCI-1.0.1.tgz $ cd php-pdo-oci-1.0.1 $ dpkg-buildpackage And here's where configure throws the error. Where do I fix the --prefix? Thanks for your attention! Regards, Cassiano Leal -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#511900: php5: Compiling pdo_oci extension fails with Cannot find php_pdo_driver.h.
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.0 -0200 --- configure.new 2009-01-15 11:43:35.0 -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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#511900: [php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with Cannot find php_pdo_driver.h.
severity 511900 important tags 511900 -patch thanks hi cassiano, On Thu, Jan 15, 2009 at 11:56:25AM -0200, Cassiano Leal wrote: Severity: serious Justification: no longer builds from source Trying to build pdo_oci from php5 sources fails with the message below: i don't think this justification applies if the thing failing to build is not the package itself, or one of its packaged dependencies. therefore i'm lowering the severity until i'm convinced otherwise. others on the team can override me if they feel differently. pdo_oci is not packaged/enabled in anything in debian as far as i know. that doesn't mean we don't want to help fix it, but it should be viewed as a best effort process. maybe someone else on the list has more experience working with the pdo_oci driver and can take a look? 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.0 -0200 --- configure.new 2009-01-15 11:43:35.0 -0200 a couple points: - we don't accept patches against configure, because we regenerate this file as part of the build process. instead please patch the configure.in or the m4 files used to generate configure. - unified diff format, please in addition i'm a bit confused with the goal of this patch: ! elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then ! pdo_inc_path=$prefix/include/php/ext /usr/include/php doesn't exist... sean -- signature.asc Description: Digital signature