#50337 [Bgs->Csd]: Caching of pdo_cv_inc_path breaks compile of PDO extensions

From: Date: Mon, 30 Nov 2009 22:13:14 +0000
Subject: #50337 [Bgs->Csd]: Caching of pdo_cv_inc_path breaks compile of PDO extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145244@lists.php.net to get a copy of this message
ID: 50337 Updated by: jani@php.net Reported By: jd at cpanel dot net -Status: Bogus +Status: Closed Bug Type: *Compile Issues Operating System: linux PHP Version: 6 Previous Comments: ------------------------------------------------------------------------ [2009-11-30 19:15:58] rasmus@php.net Actually I hadn't noticed that ext/sqlite/config.m4 redefined pdo_cv_inc_path like that. Thanks for picking that up. That's probably why caching that value didn't work in the PHP_5_2 and PHP_5_3 branches. ------------------------------------------------------------------------ [2009-11-30 19:13:50] svn@php.net Automatic comment from SVN on behalf of rasmus Revision: http://svn.php.net/viewvc/?view=revision&revision=291517 Log: Fix bug #50337 ------------------------------------------------------------------------ [2009-11-30 19:09:09] jani@php.net Thanks, but we know about this. Trunk is development branch, you can expect it to have occasional problems. ------------------------------------------------------------------------ [2009-11-30 18:59:39] jd at cpanel dot net Description: ------------ Revision 291283 fixes the caching of the PDO include path, but it causes compile failures when the cached value is used. The problem seems to be in ext/sqlite/config.m4 on line 53. pdo_cv_inc_path="-I$pdo_cv_inc_path" Other users of pdo_cv_inc_path expect it to be a path without the -I. On the run of configure, when this cached value is used in ext/pdo_mysql/config.m4 it ends up with a Makefile like this: ext/pdo_mysql/pdo_mysql.lo: /home/cpeasyapache/src/php-5.2.12RC3/ext/pdo_mysql/pdo_mysql.c $(LIBTOOL) --mode=compile $(CC) -I-I/home/cpeasyapache/src/php-5.2.12RC3/ext -Iext/pdo_mysql/ -I/home/cpeasyapache/src/php-5.2.12RC3/ext/pdo_mysql/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -prefer-non-pic -c /home/cpeasyapache/src/php-5.2.12RC3/ext/pdo_mysql/pdo_mysql.c -o ext/pdo_mysql/pdo_mysql.lo The -I-I<path> is the problem. It looks like 291283 was reverted in the PHP 5.2 branch with revision 291414 but this bug still exists in trunk. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50337&edit=1

« previous php.bugs (#145244) next »