Using the MariaDB drop-in replacement for MySQL results in a failed PHP emerge due to (supposedly) missing headers. Reproducible: Always Steps to Reproduce: 1. emerge mariadb 2. emerge php 3. Actual Results: doom, destruction, armageddon Expected Results: a new working php, and a vacation. php-5.3.8 is marked stable, there's nothing too out of the ordinary on this machine, so how could it be "stable" if it wont even compile?
In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:33: /usr/include/mysql/my_config.h:1273:1: warning: "PACKAGE_NAME" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2102:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:33: /usr/include/mysql/my_config.h:1276:1: warning: "PACKAGE_STRING" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2105:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:33: /usr/include/mysql/my_config.h:1279:1: warning: "PACKAGE_TARNAME" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2108:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:33: /usr/include/mysql/my_config.h:1285:1: warning: "PACKAGE_VERSION" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2114:1: warning: this is the location of the previous definition In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli.c:33: /usr/include/mysql/my_global.h:650:25: error: my_compiler.h: No such file or directory make: *** [ext/mysqli/mysqli.lo] Error 1 make: *** Waiting for unfinished jobs.... In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33: /usr/include/mysql/my_config.h:1273:1: warning: "PACKAGE_NAME" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2102:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33: /usr/include/mysql/my_config.h:1276:1: warning: "PACKAGE_STRING" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2105:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33: /usr/include/mysql/my_config.h:1279:1: warning: "PACKAGE_TARNAME" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2108:1: warning: this is the location of the previous definition In file included from /usr/include/mysql/my_global.h:84, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33: /usr/include/mysql/my_config.h:1285:1: warning: "PACKAGE_VERSION" redefined In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config.h:1, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_config_common.h:13, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/TSRM/tsrm_virtual_cwd.h:27, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/main/php.h:411, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:29: /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/include/../main/php_config.h:2114:1: warning: this is the location of the previous definition In file included from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/php_mysqli_structs.h:61, from /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:33: /usr/include/mysql/my_global.h:650:25: error: my_compiler.h: No such file or directory /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_affected_rows': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:54: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_insert_id': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1417: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_num_rows': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1616: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_affected_rows': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:1963: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_insert_id': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:2055: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c: In function 'zif_mysqli_stmt_num_rows': /var/tmp/portage/dev-lang/php-5.3.8/work/sapis-build/cli/ext/mysqli/mysqli_api.c:2110: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'my_ulonglong' make: *** [ext/mysqli/mysqli_api.lo] Error 1 * ERROR: dev-lang/php-5.3.8 failed (compile phase): * emake failed * * If you need support, post the output of 'emerge --info =dev-lang/php-5.3.8', * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.3.8'. * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.3.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.3.8/temp/environment'. * S: '/var/tmp/portage/dev-lang/php-5.3.8/work/php-5.3.8' >>> Failed to emerge dev-lang/php-5.3.8, Log file:
Created attachment 285283 [details] build.log
Created attachment 285285 [details] emerge --info
same here: make: *** [ext/mysqli/mysqli_api.lo] Error 1
Created attachment 285405 [details] build.log dev-lang/php-5.3.8 build.log dev-lang/php-5.3.8
Created attachment 285407 [details] emerge --info emerge --info
*** This bug has been marked as a duplicate of bug 341853 ***