Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 381479 - dev-lang/php-5.3.8: compile failure while using +mysqli (possibly other mysql flags too) and dev-db/mariadb-5.1.50
Summary: dev-lang/php-5.3.8: compile failure while using +mysqli (possibly other mysql...
Status: RESOLVED DUPLICATE of bug 341853
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 19:43 UTC by Dan Reidy
Modified: 2011-09-06 11:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,410.95 KB, text/plain)
2011-09-01 19:47 UTC, Dan Reidy
Details
emerge --info (emerge-info.txt,12.20 KB, text/plain)
2011-09-01 19:48 UTC, Dan Reidy
Details
build.log dev-lang/php-5.3.8 (build.log,408.25 KB, text/plain)
2011-09-03 10:07 UTC, Mario Bachmann
Details
emerge --info (emerge_info.txt,4.83 KB, text/plain)
2011-09-03 10:08 UTC, Mario Bachmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Reidy 2011-09-01 19:43:46 UTC
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?
Comment 1 Dan Reidy 2011-09-01 19:45:14 UTC
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:
Comment 2 Dan Reidy 2011-09-01 19:47:22 UTC
Created attachment 285283 [details]
build.log
Comment 3 Dan Reidy 2011-09-01 19:48:39 UTC
Created attachment 285285 [details]
emerge --info
Comment 4 Mario Bachmann 2011-09-03 10:07:10 UTC
same here: make: *** [ext/mysqli/mysqli_api.lo] Error 1
Comment 5 Mario Bachmann 2011-09-03 10:07:47 UTC
Created attachment 285405 [details]
build.log dev-lang/php-5.3.8

build.log dev-lang/php-5.3.8
Comment 6 Mario Bachmann 2011-09-03 10:08:12 UTC
Created attachment 285407 [details]
emerge --info

emerge --info
Comment 7 Jorge Manuel B. S. Vicetto (RETIRED) gentoo-dev 2011-09-06 11:07:37 UTC

*** This bug has been marked as a duplicate of bug 341853 ***