From:             jd at cpanel dot net
Operating system: linux
PHP version:      5.2.12RC3
PHP Bug Type:     *Compile Issues
Bug description:  Caching of pdo_cv_inc_path breaks compile of PDO extensions

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 bug report at http://bugs.php.net/?id=50337&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50337&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50337&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50337&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50337&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50337&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50337&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50337&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50337&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50337&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50337&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50337&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50337&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50337&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50337&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50337&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50337&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50337&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50337&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50337&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50337&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50337&r=mysqlcfg

Reply via email to