ID: 35107 User updated by: alex at whitewhale dot net Reported By: alex at whitewhale dot net -Status: Feedback +Status: Open Bug Type: PDO related Operating System: MacOS X 10.4.3 PHP Version: 5CVS-2005-11-05 (snap) Assigned To: wez New Comment:
Okay, tried the following with latest snapshot: rm config.cache ./configure --with-apxs=/usr/sbin/apxs --prefix=/usr --with- mysqli=/usr/local/mysql/bin/mysql_config --with-zlib --with- pdo-mysql It fails to run with: checking for MySQL support for PDO... yes checking for mysql_config... not found configure: error: Cannot find MySQL header files under I have verified that /usr/local/mysql/bin/mysql_config is there and mysql.h is in /usr/local/mysql/include. This was a standard MySQL 5.0.15 install with the MacOS X installer. If I use the same configure line without --with-pdo-mysql it finishes configure successfully. Previous Comments: ------------------------------------------------------------------------ [2005-11-05 17:20:32] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip I just committed a fix; please try the next snapshot. ------------------------------------------------------------------------ [2005-11-05 16:44:14] [EMAIL PROTECTED] Where is your mysql.h ? ------------------------------------------------------------------------ [2005-11-05 16:38:52] [EMAIL PROTECTED] Assigned to the PDO maintainer. ------------------------------------------------------------------------ [2005-11-05 15:42:33] alex at whitewhale dot net Okay, using that configure line I now get: In file included from /Users/sahara/Documents/LAMP/php/ php5-200511041330/ext/pdo_mysql/pdo_mysql.c:31: /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:25:19: error: mysql.h: No such file or directory In file included from /Users/sahara/Documents/LAMP/php/ php5-200511041330/ext/pdo_mysql/pdo_mysql.c:31: /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:36: error: parse error before 'MYSQL' /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:36: warning: no semicolon at end of struct or union /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:38: error: parse error before ':' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:39: error: parse error before ':' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:40: error: parse error before ':' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:43: error: parse error before '}' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:43: warning: data definition has no type or storage class /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:46: error: parse error before 'MYSQL_FIELD' /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:46: warning: no semicolon at end of struct or union /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:47: warning: data definition has no type or storage class /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:50: error: parse error before 'pdo_mysql_db_handle' /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:50: warning: no semicolon at end of struct or union /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:51: warning: data definition has no type or storage class /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:52: error: parse error before '*' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:52: warning: data definition has no type or storage class /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:53: error: parse error before 'current_data' /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:53: warning: data definition has no type or storage class /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:69: error: parse error before '}' token /Users/sahara/Documents/LAMP/php/php5-200511041330/ext/ pdo_mysql/php_pdo_mysql_int.h:69: warning: data definition has no type or storage class make: *** [ext/pdo_mysql/pdo_mysql.lo] Error 1 ------------------------------------------------------------------------ [2005-11-05 12:39:07] [EMAIL PROTECTED] So now we've found out that the problem isn't in ext/mysqli. Try this configure line (with the usual "rm config.cache" and "make clean", which are only needed if you're not using fresh sources everytime) # ./configure --disable-all --enable-pdo --with-pdo-mysql ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35107 -- Edit this bug report at http://bugs.php.net/?id=35107&edit=1