Bug #17376 ndb_mgmd get linked with ncurses
Submitted: 14 Feb 2006 13:40 Modified: 15 Nov 2006 1:45
Reporter: Geert Vanderkelen Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.0.18,5.1-bk OS:Linux (Linux)
Assigned to: david li CPU Architecture:Any

[14 Feb 2006 13:40] Geert Vanderkelen
Description:
Hi!

ndb_mgmd needs ncurses, but probably serves no purpose. It failes to start when not avialable, though libcurses is installed widely..
Small thing.

Geert

How to repeat:
$ ldd bin/ndb_mgmd 
        libpthread.so.0 => /lib64/tls/libpthread.so.0 (0x0000003243b00000)
        libncurses.so.5 => /usr/lib64/libncurses.so.5 (0x0000003244300000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x0000003243f00000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003244700000)
        libm.so.6 => /lib64/tls/libm.so.6 (0x0000003243700000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x0000003243200000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003243000000)

Suggested fix:
in mysql-5.0/ndb/src/mgmsrv/Makefile.am following is found
            @readline_link@
            @TERMCAP_LIB@

readline is used in main.cpp but it looks like old code or a initial copy?
[14 Feb 2006 13:44] Geert Vanderkelen
Check both 5.0.18 32/64bit and latest 5.1-bk has same Makefile for ndb_mgmd.
[11 Jul 2006 12:09] Geert Vanderkelen
Verified using the latest 5.1bk.