php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7504 MySQL support broken
Submitted: 2000-10-28 03:06 UTC Modified: 2000-11-03 19:22 UTC
From: mrobinso@php.net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0 Latest CVS (28/10/2000) OS: RHL7.0
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mrobinso@php.net
New email:
PHP Version: OS:

 

 [2000-10-28 03:06 UTC] mrobinso@php.net
Snapshot from this morning, all scripts accessing mysql
cannot connect to mysql at all and fail.

./configure'd with --with-mysql ..."make" warns:

from libmysql.c:14:
mysql_version.h:14:41: warning: "MYSQL_UNIX_ADDR" redefined
/usr/src/php4-200010261145/php_config.h:1321:1: warning: this is the location of the
previous definition
/bin/sh /usr/src/php4-200010261145/libtool --silent --mode=compile gcc  -I.
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145
-I/usr/src/php4-200010261145/main -I/usr/include/apache -I/usr/src/php4-200010261145/Zend -I/usr/src/php4-200010261145
-I/usr/local/include -I/usr/include/freetype
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145/ext/xml/expat/xmltok
-I/usr/src/php4-200010261145/ext/xml/expat/xmlparse -I/usr/src/php4-200010261145/TSRM  -DEAPI -DEAPI -DXML_BYTE_ORDER=12 -g -O2 
-c errmsg.c
/bin/sh /usr/src/php4-200010261145/libtool --silent --mode=compile gcc  -I.
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145
-I/usr/src/php4-200010261145/main -I/usr/include/apache -I/usr/src/php4-200010261145/Zend -I/usr/src/php4-200010261145
-I/usr/local/include -I/usr/include/freetype
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145/ext/xml/expat/xmltok
-I/usr/src/php4-200010261145/ext/xml/expat/xmlparse -I/usr/src/php4-200010261145/TSRM  -DEAPI -DEAPI -DXML_BYTE_ORDER=12 -g -O2 
-c net.c
In file included from mysql.h:53,
                 from net.c:18:
mysql_version.h:14:41: warning: "MYSQL_UNIX_ADDR" redefined
/usr/src/php4-200010261145/php_config.h:1321:1: warning: this is the location of the
previous definition
/bin/sh /usr/src/php4-200010261145/libtool --silent --mode=compile gcc  -I.
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145
-I/usr/src/php4-200010261145/main -I/usr/include/apache -I/usr/src/php4-200010261145/Zend -I/usr/src/php4-200010261145
-I/usr/local/include -I/usr/include/freetype
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145/ext/xml/expat/xmltok
-I/usr/src/php4-200010261145/ext/xml/expat/xmlparse -I/usr/src/php4-200010261145/TSRM  -DEAPI -DEAPI -DXML_BYTE_ORDER=12 -g -O2 
-c violite.c
/bin/sh /usr/src/php4-200010261145/libtool --silent --mode=compile gcc  -I.
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145
-I/usr/src/php4-200010261145/main -I/usr/include/apache -I/usr/src/php4-200010261145/Zend -I/usr/src/php4-200010261145
-I/usr/local/include -I/usr/include/freetype
-I/usr/src/php4-200010261145/ext/mysql/libmysql -I/usr/src/php4-200010261145/ext/xml/expat/xmltok
-I/usr/src/php4-200010261145/ext/xml/expat/xmlparse -I/usr/src/php4-200010261145/TSRM  -DEAPI -DEAPI -DXML_BYTE_ORDER=12 -g -O2 
-c password.c
In file included from mysql.h:53,
                 from password.c:27:
mysql_version.h:14:41: warning: "MYSQL_UNIX_ADDR" redefined
/usr/src/php4-200010261145/php_config.h:1321:1: warning: this is the location of the
previous definition



...and a little later on....


from php_mysql.c:57:
/usr/src/php4-200010261145/ext/mysql/libmysql/mysql_version.h:14:41: warning:
"MYSQL_UNIX_ADDR" redefined
/usr/src/php4-200010261145/php_config.h:1321:1: warning: this is the location of the
previous definition
/bin/sh /usr/src/php4-200010261145/libtool --silent --mode=link gcc  -I.
-I/usr/src/php4-200010261145/ext/mysql -I/usr/src/php4-200010261145 -I/usr/src/php4-200010261145/main
-I/usr/include/apache -I


Reverting to 4.0.3pl1 fixes this.

I still have the snapshot installed if more info
is needed.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-03 19:22 UTC] mrobinso@php.net
Fixed in CVS, thanks Zeev.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 20:00:01 2026 UTC