php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65299 pdo mysql parsing errors
Submitted: 2013-07-19 20:32 UTC Modified: 2013-07-23 12:20 UTC
From: php at on-e dot com Assigned: mysql
Status: Closed Package: Compile Failure
PHP Version: 5.5.1 OS: Solaris 10
Private report: No CVE-ID:
 [2013-07-19 20:32 UTC] php at on-e dot com
Description:
------------
Mysql 5.1.65

/bin/bash /usr/local/src/php-5.5.1/libtool --silent --preserve-dup-deps --
mode=compile gcc -I/usr/local/src/php-5.5.1/ext -I -Iext/pdo_mysql/ -
I/usr/local/src/php-5.5.1/ext/pdo_mysql/ -DPHP_ATOM_INC -I/usr/local/src/php-
5.5.1/include -I/usr/local/src/php-5.5.1/main -I/usr/local/src/php-5.5.1 -
I/usr/local/src/php-5.5.1/ext/date/lib -I/usr/local/src/php-5.5.1/ext/ereg/regex 
-I/usr/local/include/libxml2 -I/usr/local/ssl/include -I/usr/local/include -
I/usr/local/include/freetype2 -I/usr/local/src/php-5.5.1/ext/mbstring/oniguruma 
-I/usr/local/src/php-5.5.1/ext/mbstring/libmbfl -I/usr/local/src/php-
5.5.1/ext/mbstring/libmbfl/mbfl -I/usr/local/mysql/include/mysql -
I/usr/local/src/php-5.5.1/ext/sqlite3/libsqlite -I/usr/local/src/php-5.5.1/TSRM 
-I/usr/local/src/php-5.5.1/Zend  -D_POSIX_PTHREAD_SEMANTICS -
D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -I/usr/local/include -g -O2 -DZTS  -c 
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c -o 
ext/pdo_mysql/mysql_driver.lo 
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c:532:1: warning: 
"MYSQL_UNIX_ADDR" redefined
In file included from /usr/local/mysql/include/mysql/mysql.h:74,
                 from /usr/local/src/php-
5.5.1/ext/pdo_mysql/php_pdo_mysql_int.h:31,
                 from /usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c:33:
/usr/local/mysql/include/mysql/mysql_version.h:19:1: warning: this is the 
location of the previous definition
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c: In function 
`pdo_mysql_handle_factory':
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c:717: error: 
`MYSQL_SERVER_PUBLIC_KEY' undeclared (first use in this function)
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c:717: error: (Each 
undeclared identifier is reported only once
/usr/local/src/php-5.5.1/ext/pdo_mysql/mysql_driver.c:717: error: for each 
function it appears in.)
make: *** [ext/pdo_mysql/mysql_driver.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-19 21:44 UTC] johannes@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2013-07-19 21:44 UTC] johannes@php.net
It is suggested to use mysqlnd, simply use  --with-mysql --with-mysqli -with-pdo-mysql without specifying a path. This is still a bug though.
 [2013-07-23 10:29 UTC] eugene at zhegan dot in
Got this on a Solaris 11.
 [2013-07-23 12:20 UTC] johannes@php.net
-Status: Assigned +Status: Closed
 [2013-07-23 12:20 UTC] johannes@php.net
Fixed in revision 7b92a227.

Note: It took me a while to figure out as you're most likely using a configure line which does something else than what you expect. I guess you are doing something like this:

  ./configure --with-mysqli --with-pdo-mysql=/path/to/bin/mysql_config

This will compile mysqli using our mysqlnd library as base (http://php.net/mysqlnd) which is suggested and will, at the same time, build pdo_mysql using libmysql which is not suggested. I suggest using

  ./configure --with-mysqli --with-pdo-mysql

which will use mysqlnd for both.
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 25 07:02:14 2014 UTC