Bug #54642 [Fbk->NoF]: Compile w/ MySQLi on OSX fail
| From: | johannes@php.net | Date: | Fri, 04 Nov 2011 09:53:15 +0000 |
| Subject: | Bug #54642 [Fbk->NoF]: Compile w/ MySQLi on OSX fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164869@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54642&edit=1
ID: 54642
Updated by: johannes@php.net
Reported by: grzegorz129 at gmail dot com
Summary: Compile w/ MySQLi on OSX fail
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Compile Failure
Operating System: Mac OS X 10.6.8
PHP Version: Irrelevant
Assigned To: mysql
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2011-05-10 17:19:59] johannes@php.net
in fact this seems to be fixed as bug #52413 please test the patch from there.
------------------------------------------------------------------------
[2011-05-10 17:18:23] 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-09 17:54:45] 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-01 00:31:39] grzegorz129 at gmail dot com
browser autocompleted wrong title ... sry :)
------------------------------------------------------------------------
[2011-05-01 00:22:39] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54642&edit=1