php.net |  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
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: eschmid at delos dot lf dot net
New email:
PHP Version: OS:

 

 [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
`mysql_real_connect':
/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
mysql_connect). 

>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
connections).

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
     mysql_connect().

-Egon


Patches

Pull Requests

History

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

-Egon
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat May 10 03:01:26 2025 UTC