Debian Bug report logs - #511900
php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h."

version graph

Package: php5; Maintainer for php5 is (unknown);

Reported by: Cassiano Leal <cassianoleal@gmail.com>

Date: Thu, 15 Jan 2009 13:57:02 UTC

Severity: important

Found in version php5/5.2.6.dfsg.1-2

Done: "Raphael Geissert" <atomo64+debian@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#511900; Package php5. (Thu, 15 Jan 2009 13:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Cassiano Leal <cassianoleal@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 15 Jan 2009 13:57:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Cassiano Leal <cassianoleal@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h."
Date: Thu, 15 Jan 2009 11:56:25 -0200
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




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#511900; Package php5. (Fri, 16 Jan 2009 07:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to sean finney <seanius@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Fri, 16 Jan 2009 07:24:03 GMT) (full text, mbox, link).


Message #10 received at 511900@bugs.debian.org (full text, mbox, reply):

From: sean finney <seanius@debian.org>
To: Cassiano Leal <cassianoleal@gmail.com>, 511900@bugs.debian.org
Cc: control@bugs.debian.org
Subject: Re: [php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h."
Date: Fri, 16 Jan 2009 08:20:32 +0100
[Message part 1 (text/plain, inline)]
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.000000000 -0200
> --- configure.new       2009-01-15 11:43:35.000000000 -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 (application/pgp-signature, inline)]

Severity set to `important' from `serious' Request was from sean finney <seanius@debian.org> to control@bugs.debian.org. (Fri, 16 Jan 2009 07:24:04 GMT) (full text, mbox, link).


Tags removed: patch Request was from sean finney <seanius@debian.org> to control@bugs.debian.org. (Fri, 16 Jan 2009 07:24:04 GMT) (full text, mbox, link).


Reply sent to "Raphael Geissert" <atomo64+debian@gmail.com>:
You have taken responsibility. (Fri, 16 Jan 2009 20:57:02 GMT) (full text, mbox, link).


Notification sent to Cassiano Leal <cassianoleal@gmail.com>:
Bug acknowledged by developer. (Fri, 16 Jan 2009 20:57:03 GMT) (full text, mbox, link).


Message #19 received at 511900-close@bugs.debian.org (full text, mbox, reply):

From: "Raphael Geissert" <atomo64+debian@gmail.com>
To: "Cassiano Leal" <cassianoleal@gmail.com>, 511900-close@bugs.debian.org
Subject: Re: [php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h."
Date: Fri, 16 Jan 2009 14:55:47 -0600
2009/1/15 Cassiano Leal <cassianoleal@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

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

no, it doesn't; and patches against the phpize-generated configure
script will never be accepted.

Closing.

Regards,
-- 
Raphael Geissert - Debian Maintainer
www.debian.org - get.debian.net

Bob Hope  - "I grew up with six brothers. That's how I learned to
dance - waiting for the bathroom."




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#511900; Package php5. (Thu, 22 Jan 2009 13:12:02 GMT) (full text, mbox, link).


Acknowledgement sent to Cassiano Leal <cassianoleal@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 22 Jan 2009 13:12:02 GMT) (full text, mbox, link).


Message #24 received at 511900@bugs.debian.org (full text, mbox, reply):

From: Cassiano Leal <cassianoleal@gmail.com>
To: 511900@bugs.debian.org
Subject: Re: Bug#511900 closed by "Raphael Geissert" <atomo64+debian@gmail.com> (Re: [php-maint] Bug#511900: php5: Compiling pdo_oci extension fails with "Cannot find php_pdo_driver.h.")
Date: Thu, 22 Jan 2009 11:10:11 -0200
On Friday 16 January 2009 18:57:03 Debian Bug Tracking System wrote:
> 2009/1/15 Cassiano Leal <cassianoleal@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




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 20 Feb 2009 07:31:57 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:23:07 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.