Edit report at https://bugs.php.net/bug.php?id=54451&edit=1

 ID:                 54451
 Updated by:         [email protected]
 Reported by:        schkovich at gmail dot com
 Summary:            Cannot Compile PDO_* on Ubuntu
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            PDO related
 Operating System:   Linux Ubuntu
 PHP Version:        5.3SVN-2011-04-02 (snap)
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2011-04-05 14:47:42] schkovich at gmail dot com

Right. I scanned other extensions to see how similar cases are handled. Closest 
match is in XMLRPC extension. See 
ext/xmlrpc/config.m4 lines 95 - 116.

Here is the new patch having loop: http://ubuntuone.com/p/kyx/ 

I guess that setting pdo_inc_path could be further optimized to eliminate the 
first condition at least. Speaking of:     
if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
      pdo_inc_path=$abs_srcdir/ext
appears to be wrong. Shouldn't the second line (line 208) read 
pdo_inc_path=$abs_srcdir/include/php/ext?

------------------------------------------------------------------------
[2011-04-04 19:14:51] [email protected]

This is generic across PDP. All ext/pdo_*/config.m4 files make the same 
assumptions about the install path.

------------------------------------------------------------------------
[2011-04-02 12:03:08] schkovich at gmail dot com

Description:
------------
PDO_OCI complied using PHP 5.3-201103302030 snap
Oracle Instant Client 11.2.0.2.0 x64 zip Basic, SDK

Running: PHP 5.3.3-1ubuntu9.3, on Linux  2.6.35-28-generic #49-Ubuntu SMP Tue 
Mar 
1 14:39:03 UTC 2011 x86_64

Configure reports two problems:
* PHP_CHECK_PDO_INCLUDES variable must and with _cv_ to be cached
* cannot find php_pdo_driver.h

Test script:
---------------
user@user:/usr/local/src/pdo_oci$ phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
...
config.m4:202: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, 
must contain _cv_ to be cached
...
aclocal.m4:2739: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:202: the top level
user@user:/usr/local/src/pdo_oci$ ./configure 
--with-pdo-oci=shared,instantclient,/opt/oracle/instantclient,11.2
checking for grep that handles long lines and -e... /bin/grep
...
checking for PDO includes... checking for PDO includes... 
configure: error: Cannot find php_pdo_driver.h.

Expected result:
----------------
Configure runs successfully 

Actual result:
--------------
Configure fails with message: Cannot find php_pdo_driver.h


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=54451&edit=1

Reply via email to