php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62120 PDO mishandles build outside of tree
Submitted: 2012-05-23 09:09 UTC Modified: 2024-07-14 05:59 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: cataphract@php.net Assigned: petk (profile)
Status: Closed Package: Compile Failure
PHP Version: master-Git-2012-05-23 (Git) OS: Linux
Private report: No CVE-ID: None
 [2012-05-23 09:09 UTC] cataphract@php.net
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2024-07-14 05:59 UTC] petk@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: petk
 [2024-07-14 05:59 UTC] petk@php.net
This has been rechecked at current versions and it seems to be working fine now. In case you're still experiencing this issue please reopen a bug at https://github.com/php/php-src/issues
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 27 00:01:30 2024 UTC