ID:               37309
 Updated by:       [EMAIL PROTECTED]
 Reported By:      aren at epithna dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         MySQL related
 Operating System: Linux Slackware 10.2
 PHP Version:      5.1.3/4
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2006-05-05 19:29:09] 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-05 18:24:33] 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-04 14:41:50] 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; }




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37309&edit=1

Reply via email to