php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37309 Cannot Configure against mysql 5.0.21
Submitted: 2006-05-04 14:41 UTC Modified: 2006-05-11 19:38 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:2 (40.0%)
From: aren at epithna dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.1.3/4 OS: Linux Slackware 10.2
Private report: No CVE-ID: None
 [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; }



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-05 18:24 UTC] aren at epithna dot com
I tried configuring against the new 5.1.4 release  and get the exact same error in the exact same place, just thought you should know.
 [2006-05-05 19:29 UTC] aren at epithna dot com
5.1.4 configures fine against MYSQL 5.0.16, but has the same problems as 5.1.3 against 5.0.21
 [2006-05-06 09:55 UTC] tony2001@php.net
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.
 [2006-05-11 19:26 UTC] aren at epithna dot com
It turns out (sorry for the delayed response, something else entirely, more critical blew up this week) the problem was that the build was being attempted against the wrong Mysql (glibc22 vs glibc23) the person who had downloaded the install got the 22 version our system is 23 based so that was messing up the configure.  Once I saw the real problem and grabbed the glibc23 version the problem went away.  Sorry to trouble you.
 [2006-05-11 19:38 UTC] tony2001@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC