php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22350 Compile failure: [sapi/cli/php]`zif_mysql_client_encoding'
Submitted: 2003-02-21 06:13 UTC Modified: 2003-02-22 14:25 UTC
From: stuii at rhydio dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: Linux 2.4.18 i686
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stuii at rhydio dot com
New email:
PHP Version: OS:

 

 [2003-02-21 06:13 UTC] stuii at rhydio dot com
I am getting this error when attempting to compile PHP 4.3.1:

ext/mysql/php_mysql.lo: In function `zif_mysql_client_encoding':
/home/stuii/temp/php-4.3.1/ext/mysql/php_mysql.c:1077: undefined reference to `mysql_character_set_name'
ext/mysql/php_mysql.lo: In function `zif_mysql_real_escape_string':
/home/stuii/temp/php-4.3.1/ext/mysql/php_mysql.c:1671: undefined reference to `mysql_real_escape_string'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

I have searched the documentation and the bug database but I cannot find any information on this, nor can I find a report from anyone who's had the same problem.

My configure command (which worked with no problems)

./configure --with-mysql=/usr/local/my
sql --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --with-gd=/usr/l
ocal/ --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr
/local --with-gif-dir=/usr/local

Any ideas?

Thanks!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-22 14:25 UTC] georg@php.net
Please update MySQL to a recent version. MySQL 3.22.x isn't supported anymore by PHP and MySQL AB.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Feb 11 23:00:01 2026 UTC