|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-05-04 14:41 UTC] aren at epithna dot com
Description:
------------
During a round of Upgrades yesterday I attempted to build php 5.1.3 against my newly upgraded (from 5.0.16 to 5.0.21) MYSQL install. I get a configure error. I was previously able to configure and build against 5.0.16.
I reextracted the PHP 5.1.3 source (in a new directory) just to be sure everything was clean, that didn't fix anything.
Config line:
'./configure' '--with-apxs2=/net-services/apache22/bin/apxs' '--with-mysql=/net-services/mysql-max-5.0.21-linux-i686' '--with-gd' '--with-zlib-dir=/usr/lib' '--with-imap=/usr/lib/imap-2002e' '--with-mysqli=/net-services/mysql-max-5.0.21-linux-i686/bin/mysql_config' '--enable-mbstring'
Reproduce code:
---------------
Error:
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
Expected result:
----------------
Clip from Bottom of config.log:
#line 58779 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 22:00:02 2025 UTC |
Works just fine here. Please try to build this code: test.c: ---- char mysql_error(); int main() { mysql_error() ; return 0; } ---- gcc -o test -lmysqlclient -lresolv -lm -ldl -lnsl test.c You'll see what the problem is.