php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54642 Compile w/ MySQLi on OSX fail
Submitted: 2011-05-01 00:22 UTC Modified: 2011-11-04 09:53 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: grzegorz129 at gmail dot com Assigned: mysql (profile)
Status: No Feedback Package: Compile Failure
PHP Version: Irrelevant OS: Mac OS X 10.6.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
30 - 14 = ?
Subscribe to this entry?

 
 [2011-05-01 00:22 UTC] grzegorz129 at gmail dot com
Description:
------------
PHP 5.3.3 wont compile due to mysqllib bug (newer PHP cant be builded due to LSAPI 
bug.. ehh).

Test script:
---------------
./configure '--prefix=/usr/local/lsws/lsphp5' '--enable-cli' '--with-curl=/usr' '--with-gd' '--enable-exif' '--enable-gd-native-ttf' '--with-ttf' '--without-gettext' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local' '--with-freetype-dir=/opt/local' '--with-openssl=/usr' '--with-mcrypt=/opt/local' '--with-mhash' '--with-mysql-sock=/var/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-mysql=/usr/local/mysql' '--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--with-pear' '--with-zlib-dir=/usr' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-mbstring' '--enable-mbregex' '--with-litespeed' '--enable-shmop' '--enable-track-vars' '--enable-sysvsem' '--enable-sysvshm' '--enable-pcntl' '--enable-sigchild' '--with-libxml-dir=/usr'

Actual result:
--------------
/bin/sh /usr/local/lsws/phpbuild/php-5.3.3/libtool --silent --preserve-dup-deps 
--mode=compile gcc  -Iext/mysqli/ -I/usr/local/lsws/phpbuild/php-
5.3.3/ext/mysqli/ -DPHP_ATOM_INC -I/usr/local/lsws/phpbuild/php-5.3.3/include -
I/usr/local/lsws/phpbuild/php-5.3.3/main -I/usr/local/lsws/phpbuild/php-5.3.3 -
I/usr/local/lsws/phpbuild/php-5.3.3/ext/date/lib -I/usr/local/lsws/phpbuild/php-
5.3.3/ext/ereg/regex -I/usr/include/libxml2 -I/opt/local/include -
I/opt/local/include/freetype2 -I/usr/local/include -
I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/oniguruma -
I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/libmbfl -
I/usr/local/lsws/phpbuild/php-5.3.3/ext/mbstring/libmbfl/mbfl -
I/usr/local/mysql/include -I/usr/local/lsws/phpbuild/php-
5.3.3/ext/sqlite3/libsqlite -I/usr/local/lsws/phpbuild/php-5.3.3/TSRM -
I/usr/local/lsws/phpbuild/php-5.3.3/Zend  -no-cpp-precomp  -I/usr/local/include 
-g -O2 -fvisibility=hidden  -c /usr/local/lsws/phpbuild/php-
5.3.3/ext/mysqli/mysqli.c -o ext/mysqli/mysqli.lo 
In file included from /usr/local/mysql/include/my_global.h:76,
                 from /usr/local/lsws/phpbuild/php-
5.3.3/ext/mysqli/php_mysqli_structs.h:57,
                 from /usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_config.h:326:1: warning: "SIZEOF_SIZE_T" redefined
In file included from /usr/local/lsws/phpbuild/php-5.3.3/TSRM/tsrm_config.h:1,
                 from /usr/local/lsws/phpbuild/php-
5.3.3/TSRM/tsrm_config_common.h:13,
                 from /usr/local/lsws/phpbuild/php-
5.3.3/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/lsws/phpbuild/php-5.3.3/main/php.h:410,
                 from /usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:29:
/usr/local/lsws/phpbuild/php-5.3.3/include/../main/php_config.h:151:1: warning: 
this is the location of the previous definition
In file included from /usr/local/lsws/phpbuild/php-
5.3.3/ext/mysqli/php_mysqli_structs.h:57,
                 from /usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/mysql/include/my_global.h:909: error: duplicate ‘unsigned’
/usr/local/mysql/include/my_global.h:909: warning: useless type name in empty 
declaration
make: *** [ext/mysqli/mysqli.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-01 00:31 UTC] grzegorz129 at gmail dot com
-Summary: No error with endless dir() +Summary: Compile w/ MySQLi on OSX fail
 [2011-05-01 00:31 UTC] grzegorz129 at gmail dot com
browser autocompleted wrong title ... sry :)
 [2011-05-09 17:54 UTC] uw@php.net
-Assigned To: +Assigned To: mysql
 [2011-05-09 17:54 UTC] uw@php.net
/usr/local/mysql/include/my_global.h:909: error: duplicate ‘unsigned’

This does not look like a PHP issue. I'm afraid /usr/local/mysql/include/my_global.h is beyond the scope of the php.net team. This file belongs to your MySQL distribution. You may want to consult Oracle/MySQL for help.
 [2011-05-10 17:18 UTC] johannes@php.net
-Status: Assigned +Status: Feedback
 [2011-05-10 17:18 UTC] johannes@php.net
Hi, can you add a line

#undef ulong

before /usr/local/lsws/phpbuild/php-5.3.3/ext/mysqli/mysqli.c line 33?

I can't reproduce it but from the error message it seems that there is a bad define somewhere. If this fixes this issue we'd have to find the source for this.
 [2011-05-10 17:19 UTC] johannes@php.net
in fact this seems to be fixed as bug #52413 please test the patch from there.
 [2011-11-04 09:53 UTC] johannes@php.net
-Status: Feedback +Status: No Feedback
 [2011-11-04 09:53 UTC] johannes@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 11:01:31 2024 UTC