Bug #15284 Issue with Mysql 5.0.16 Max Binary for OSX 10.4
Submitted: 28 Nov 2005 13:06 Modified: 28 Nov 2005 17:42
Reporter: Dan rossi Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S1 (Critical)
Version:5.0.16 OS:MacOS (OSX 10.4)
Assigned to: Kent Boortz CPU Architecture:Any

[28 Nov 2005 13:06] Dan rossi
Description:
Ive just updated the binary from beta to production 5.0 and ive receieved this error when trying to connect to the server

iElectro:/usr/local root# mysql
dyld: mysql can't open library: /usr/lib/libncurses.5.4.dylib  (No such file or directory, errno = 2)
Trace/BPT trap

The wierd thing is the server starts fine, I can connect using an SQL gui ok, its the command line client thats the problem.

I have nucurses in two spots, in the fink directory and also lib

iElectro:/usr/local root# cd /usr/lib; ls -l *curses*
lrwxr-xr-x  1 root  wheel      18 17 Feb  2005 libcurses.dylib -> libncurses.5.dylib
-rw-r--r--  1 root  wheel  279000 28 Sep 01:01 libncurses.5.dylib
lrwxr-xr-x  1 root  wheel      18 17 Feb  2005 libncurses.dylib -> libncurses.5.dylib

iElectro:/usr/lib root# cd /sw/lib; ls -l *curses*
lrwxr-xr-x  1 root  admin      26  6 Sep 00:40 libcurses.dylib -> ncurses/libncurses.5.dylib
-rw-r--r--  1 root  admin  277940 28 Sep 01:01 libncurses.5.dylib
lrwxr-xr-x  1 root  admin      26  6 Sep 00:40 libncurses.dylib -> ncurses/libncurses.5.dylib
lrwxr-xr-x  1 root  admin      26  6 Sep 00:37 libncurses.dylib.5 -> /sw/lib/libncurses.5.dylib

ncurses:
total 5536
lrwxr-xr-x  1 root  admin       12  6 Sep 00:40 libcurses.a -> libncurses.a
lrwxr-xr-x  1 root  admin       18  6 Sep 00:40 libcurses.dylib -> libncurses.5.dylib
-rw-r--r--  1 root  admin    60388  6 Sep 00:25 libform.5.dylib
-rw-r--r--  1 root  admin    93628  6 Sep 00:25 libform.a
lrwxr-xr-x  1 root  admin       15  6 Sep 00:40 libform.dylib -> libform.5.dylib
-rw-r--r--  1 root  admin   279212  6 Sep 00:25 libform_g.a
-rw-r--r--  1 root  admin    32336  6 Sep 00:25 libmenu.5.dylib
-rw-r--r--  1 root  admin    52232  6 Sep 00:25 libmenu.a
lrwxr-xr-x  1 root  admin       15  6 Sep 00:40 libmenu.dylib -> libmenu.5.dylib
-rw-r--r--  1 root  admin   149000  6 Sep 00:25 libmenu_g.a
-rwxr-xr-x  1 root  admin   126820  6 Sep 00:25 libncurses++.a
-rw-r--r--  1 root  admin   282232 28 Sep 01:01 libncurses.5.dylib
-rw-r--r--  1 root  admin   491688  6 Sep 00:25 libncurses.a
lrwxr-xr-x  1 root  admin       18  6 Sep 00:40 libncurses.dylib -> libncurses.5.dylib
-rw-r--r--  1 root  admin  1127508  6 Sep 00:25 libncurses_g.a

but this cannot be found

ls: /sw/lib/libncurses.5.4.dylib: No such file or directory
ls: /usr/lib/libncurses.5.4.dylib: No such file or directory

How to repeat:
iElectro:/usr/local root# mysql
dyld: mysql can't open library: /usr/lib/libncurses.5.4.dylib  (No such file or directory, errno = 2)
Trace/BPT trap
[28 Nov 2005 14:51] Valeriy Kravchuk
Thank you for a problem report. Please, try to create a symbolic link /usr/lib/libncurses.5.4.dylib poiting to existing /usr/lib/libncurses.5.dylib and try to start mysql client once more. Inform about the results.
[28 Nov 2005 15:48] Dan rossi
iElectro:/usr/lib root# mysql
dyld: mysql version mismatch for library: /usr/lib/libncurses.5.4.dylib (compatibility version of user: 5.4.0 greater than library's version: 5.0.0)
Trace/BPT trap

I guess i need to update the libs ?
[28 Nov 2005 16:12] Dan rossi
it seems due to the break in the client / libmysqlclient it has also broken the compile in php

configure:58255: checking for mysql_close in -lmysqlclient
configure:58274: gcc -o conftest -I/sw/include -I/sw/include -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -L/sw/lib -L/sw/lib -L/sw/lib conftest.c -lmysqlclient  -lintl -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm  -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&5
ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_printf$LDBLStub
configure: failed program was:
#line 58263 "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_close();

int main() {
mysql_close()
; return 0; }
configure:58495: checking for mysql_error in -lmysqlclient
configure:58514: gcc -o conftest -I/sw/include -I/sw/include -no-cpp-precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -L/sw/lib -L/sw/lib -L/sw/lib -L/usr -L/usr conftest.c -lmysqlclient  -lz -lintl -lpng -lz -ljpeg -lssl -lcrypto -lcurl -lz -lssl -lcrypto -lm  -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lssl -lcrypto -lssl -lcrypto -lz -lxml2 -lz -liconv -lm 1>&5
ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_printf$LDBLStub
configure: failed program was:
#line 58503 "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; }
[28 Nov 2005 16:25] Kent Boortz
To help us debug this, could you please provide the output from
"uname -a" and from "md5 /usr/lib/libncurses.5.dylib"? Are you
up to date using "Software Update"?
[28 Nov 2005 17:42] Dan rossi
im sorry for the hassle i am such a ditz. Im closing this, i have osx 10.3.9 obviouslly not tiger 10.4, i got the wrong package. Again sorry about the hassle :\