From:             cataphract
Operating system: Linux
PHP version:      master-Git-2012-05-23 (Git)
Package:          Compile Failure
Bug Type:         Bug
Bug description:PDO mishandles build outside of tree

Description:
------------
If you have a different configuration in the tree, when you configure PHP
outside the tree and build PDO, the build will either fail (if you include
pdo-sqlite) or it will fail at runtime due to missing symbols.

Actual result:
--------------
In file included from /home/gustavo/php-src/main/php_compat.h:27,
                 from /home/gustavo/php-src/main/php.h:36,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/tmp/t/main/php_config.h:2179:1: warning: "PHP_BUILD_DATE" redefined
In file included from /tmp/t/TSRM/tsrm_config.h:1,
                 from /home/gustavo/php-src/Zend/../TSRM/TSRM.h:20,
                 from /home/gustavo/php-src/Zend/zend_alloc.h:27,
                 from /home/gustavo/php-src/Zend/zend.h:237,
                 from /home/gustavo/php-src/main/php.h:34,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/home/gustavo/php-src/ext/../main/php_config.h:2179:1: warning: this is the
location of the previous definition
In file included from /home/gustavo/php-src/main/php_compat.h:27,
                 from /home/gustavo/php-src/main/php.h:36,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/tmp/t/main/php_config.h:2404:1: warning: "ZEND_DEBUG" redefined
In file included from /tmp/t/TSRM/tsrm_config.h:1,
                 from /home/gustavo/php-src/Zend/../TSRM/TSRM.h:20,
                 from /home/gustavo/php-src/Zend/zend_alloc.h:27,
                 from /home/gustavo/php-src/Zend/zend.h:237,
                 from /home/gustavo/php-src/main/php.h:34,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/home/gustavo/php-src/ext/../main/php_config.h:2404:1: warning: this is the
location of the previous definition
In file included from /tmp/t/TSRM/tsrm_config.h:1,
                 from /home/gustavo/php-src/TSRM/tsrm_config_common.h:13,
                 from /home/gustavo/php-src/TSRM/tsrm_virtual_cwd.h:27,
                 from /home/gustavo/php-src/main/php.h:401,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/home/gustavo/php-src/ext/../main/php_config.h:2179:1: warning:
"PHP_BUILD_DATE" redefined
In file included from /home/gustavo/php-src/main/php_compat.h:27,
                 from /home/gustavo/php-src/main/php.h:36,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/tmp/t/main/php_config.h:2179:1: warning: this is the location of the
previous definition
In file included from /tmp/t/TSRM/tsrm_config.h:1,
                 from /home/gustavo/php-src/TSRM/tsrm_config_common.h:13,
                 from /home/gustavo/php-src/TSRM/tsrm_virtual_cwd.h:27,
                 from /home/gustavo/php-src/main/php.h:401,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/home/gustavo/php-src/ext/../main/php_config.h:2404:1: warning:
"ZEND_DEBUG" redefined
In file included from /home/gustavo/php-src/main/php_compat.h:27,
                 from /home/gustavo/php-src/main/php.h:36,
                 from /home/gustavo/php-src/ext/pdo_mysql/pdo_mysql.c:26:
/tmp/t/main/php_config.h:2404:1: warning: this is the location of the
previous definition


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

Reply via email to