From:
Operating system: FreeBSD 8.1-RC2
PHP version: 5.3.3
Package: Compile Failure
Bug Type: Bug
Bug description:compilation fails when building mysqli
Description:
------------
When compiling PHP from source, it bails out on building mysqli with the
following error:
In file included from
/root/bc_www_contrib/php-5.3/php-5.3.3/ext/mysqli/php_mysqli_structs.h:57,
from
/root/bc_www_contrib/php-5.3/php-5.3.3/ext/mysqli/mysqli.c:33:
/usr/local/include/mysql/my_global.h:918: error: duplicate 'unsigned'
/usr/local/include/mysql/my_global.h:918: warning: useless type name in
empty declaration
The version of the MySQL client lib is: mysql-client-5.0.90
Test script:
---------------
./configure \
--prefix=$PREFIX --with-config-file-path=$PREFIX/etc \
--disable-ipv6 \
--enable-hash \
--enable-libxml=shared --enable-xml=shared \
--enable-xmlreader=shared --enable-xmlwriter=shared \
--enable-wddx=shared --with-xsl=shared \
--with-openssl=shared \
--enable-ftp=shared \
--with-zlib=shared --with-bz2=shared \
--enable-calendar=shared \
--enable-ctype=shared \
--with-curl=shared \
--enable-dba=shared \
--enable-exif=shared \
--enable-fileinfo=shared \
--enable-filter=shared \
--with-gd=shared \
--with-png-dir \
--with-jpeg-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--with-gettext=shared \
--with-mhash=shared \
--with-iconv=shred \
--enable-dom=shared \
--enable-mbstring=shared \
--with-mcrypt=shared \
--enable-json=shared \
--disable-mbregex \
--with-mysql=shared \
--with-mysqli=shared \
--enable-pdo=shared --with-pdo-pgsql=shared --with-pdo-mysql=shared
--with-pdo-sqlite=shared \
--with-pgsql=shared \
--enable-phar=shared \
--enable-posix=shared \
--with-pspell=shared \
--with-recode=shared \
--enable-session \
--enable-simplexml=shared \
--enable-soap=shared \
--enable-sockets=shared \
--with-sqlite=shared \
--enable-sqlite-utf8 \
--enable-tokenizer=shared \
--enable-zip=shared
make
--
Edit bug report at http://bugs.php.net/bug.php?id=52416&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52416&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52416&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52416&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52416&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52416&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52416&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52416&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52416&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52416&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52416&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52416&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52416&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52416&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52416&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52416&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52416&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52416&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52416&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52416&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52416&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52416&r=mysqlcfg