|  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 (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.5.1 OS: Solaris 10
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 !
Your email address:
Solve the problem:
23 + 36 = ?
Subscribe to this entry?

 [2013-07-19 20:32 UTC] php at on-e dot com
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 
/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-
                 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 
/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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-19 21:44 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2013-07-19 21:44 UTC]
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]
-Status: Assigned +Status: Closed
 [2013-07-23 12:20 UTC]
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 ( 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-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 23:01:26 2023 UTC