Bug #7371 | Problems with using libedit instead of readline. | ||
---|---|---|---|
Submitted: | 16 Dec 2004 23:30 | Modified: | 27 May 2005 20:11 |
Reporter: | Boyd GERBER | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S2 (Serious) |
Version: | 4.1.8,4.1.9,4.1.10,4.1.11 | OS: | UnixWare 7.1.4 |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[16 Dec 2004 23:30]
Boyd GERBER
[17 Dec 2004 0:38]
Boyd GERBER
Manually editing all Makefile that need libedit and change them to use readline. This ia a real pain when this worked in all previous version of MySQL. Such changes should be in the release notes.
[15 Jan 2005 17:11]
Boyd GERBER
This is also still happening with the latest 4.1.9 release.
[15 Jan 2005 17:12]
Boyd GERBER
Still happening now with all version of MySQL.
[15 Jan 2005 21:35]
Stéphane Messerli
Same problem here with 4.1.8a and 4.1.9 sources (tar.gz packages). History search (ctrl+r) doesn't work.
[7 Apr 2005 3:38]
Boyd GERBER
libedit has been fixed in mysql-4.1.11 so I am able to use it. It would be better if readline was used but this is acceptable.
[7 Apr 2005 15:42]
Boyd GERBER
Libedit problem is fixed and usuable, but I would prefer that readline was used.
[26 Apr 2005 10:20]
Magnus Blåudd
You can select readline when configuring your package ./configure --with-readline or select libedit with ./configure --with-libedit or to try and link with the libreadline library installed on your system ./configure --without-readline --without-libedit Please try the above.
[26 May 2005 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[27 May 2005 1:55]
Boyd GERBER
I have been trying these with mysql-4.1.12 and I am getting a SEGFAULT. Using the options does force the intended behaviour. I just would like to know why the default was changed from using the systems readline to defaulting to libedit.
[27 May 2005 2:02]
Boyd GERBER
Not all patches for readline have been applied for the version bundled with mysql so the system library is more up today and patched.
[27 May 2005 20:11]
Boyd GERBER
--without-readline --without-libedit generates this message Making all in client make[2]: Entering directory `/home/mount/zensco/local/zenez/build/mysql-4.1.11.new/client' source='mysql.cc' object='mysql.o' libtool=no \ depfile='.deps/mysql.Po' tmpdepfile='.deps/mysql.TPo' \ depmode=none /bin/ksh ../depcomp \ CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK -DUNDEF_THREADS_HACK -I. -I. -I.. -I../include -I../regex -O3 -DDBUG_OFF -DNO_CPLUSPLUS_ALLOCA -c -o mysql.o mysql.cc "mysql.cc", line 780: warning: statement is unreachable break; ^ "mysql.cc", line 1311: error: a value of type "CPPFunction *" cannot be assigned to an entity of type "rl_completion_func_t *" rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion; ^ "mysql.cc", line 1312: error: a value of type "Function *" cannot be assigned to an entity of type "rl_compentry_func_t *" rl_completion_entry_function= (Function*)&no_completion; ^ "mysql.cc", line 1331: error: identifier "completion_matches" is undefined return completion_matches((char *)text, (CPFunction *)new_command_generator); ^ make[2]: *** [mysql.o] Error 1 make[2]: Leaving directory `/home/mount/zensco/local/zenez/build/mysql-4.1.11.new/client' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/mount/zensco/local/zenez/build/mysql-4.1.11.new' make: *** [all] Error 2