|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #529 Mysql-3.22.1 and mysql_real_connect()
Submitted: 1998-07-09 10:31 UTC Modified: 1998-07-09 12:08 UTC
From: eschmid at delos dot lf dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 3.0 Latest CVS OS: Linux/Debian
Private report: No CVE-ID: None
 [1998-07-09 10:31 UTC] eschmid at delos dot lf dot net
 I upgraded from 3.22.0a to 3.22.3 and it worked just fine.
Whenever I make the CGI version or compile Apache with mysql included it will fail:

/usr/local/lib/mysql/libmysqlclient.a(libmysql.o): In function
/usr/local/mysql-3.22.3-alpha/client/libmysql.c:832: undefined reference
to `gethostbyname_r'
make: *** [php] Error 1

Some manipulation to the function_entries doesn't help (I mapped to

>From the Docs:

Upgrading to 3.22 from a 3.21 version.

   The C interface to mysql_real_connect() has changed.  If you have an
old client program that calls this, you must place a 0 for the new DB
argument (or recode the client to send the db element for faster

Changes in release 3.22.1

   * Added new API functions: mysql_init() and mysql_options().  One
     MUST now call mysql_init() before one calls mysql_real_connect().
     One doesn't have to call mysql_init() if one only uses



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-07-09 12:08 UTC] eschmid
Configure mySQL without --enable-thread-safe-client.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 04:01:26 2019 UTC