#44502 [NEW]: Compile error: 'MYSQL_TYPE_VARCHAR' undeclared
| From: | nickg78 at gmail dot com | Date: | Sat, 22 Mar 2008 03:34:07 +0000 |
| Subject: | #44502 [NEW]: Compile error: 'MYSQL_TYPE_VARCHAR' undeclared | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-123534@lists.php.net to get a copy of this message | ||
From: nickg78 at gmail dot com
Operating system: Linux
PHP version: 6CVS-2008-03-22 (snap)
PHP Bug Type: Compile Failure
Bug description: Compile error: 'MYSQL_TYPE_VARCHAR' undeclared
Description:
------------
While trying to compile PHP 6 with mysql or mysqli, compile fails with
error /ext/mysql/php_mysql.c:2086: error: 'MYSQL_TYPE_VARCHAR' undeclared
(first use in this function)
Reproduce code:
---------------
These are the configure options for MySQL that were working with no
problems while compiling PHP 5.0-5.2:
./configure --with-mysqli --with-mysql=/usr
Expected result:
----------------
Successful PHP compile
Actual result:
--------------
ext/mysql/php_mysql.c: In function 'php_mysql_fetch_hash':
ext/mysql/php_mysql.c:2086: error: 'MYSQL_TYPE_VARCHAR' undeclared (first
use in this function)
ext/mysql/php_mysql.c:2086: error: (Each undeclared identifier is reported
only once
ext/mysql/php_mysql.c:2086: error: for each function it appears in.)
make: *** [ext/mysql/php_mysql.lo] Error 1
MySQL version is 4.1.22
--
Edit bug report at http://bugs.php.net/?id=44502&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44502&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44502&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44502&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44502&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44502&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44502&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44502&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44502&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44502&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44502&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44502&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44502&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44502&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44502&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44502&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44502&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44502&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44502&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44502&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44502&r=mysqlcfg