bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

probs making bash-4.4(+ patches)


From: L. A. Walsh
Subject: probs making bash-4.4(+ patches)
Date: Tue, 15 Nov 2016 13:12:18 -0800
User-agent: Thunderbird

Still having probs building bash-4.4 -- trying first, the builtin
version of readline, and on running got:

readline: ~/.inputrc: line 6: history-size=-1: unknown variable name
readline: ~/.inputrc: line 35: completion-prefix-display-length=256: unknown variable name
readline: ~/.inputrc: line 37: expand-tilda: unknown variable name
readline: ~/.inputrc: line 42: quoted-insert: unknown variable name
readline: ~/.inputrc: line 44: tab-insert: unknown variable name
Ishtar:tools/bash/bash-4.4> echo $BASH_VERSION
4.4.5(1)-release

-------
Next I tried using installed readline (libreadline.so.6.2 **1)
and got an error in the final link step:

bashline.o:bashline.c:function bash_execute_unix_command: error: undefined reference to 'rl_executing_keyseq' bashline.o:bashline.c:function bash_execute_unix_command: error: undefined reference to 'rl_clear_visible_line' bashline.o:bashline.c:function bash_execute_unix_command: error: undefined reference to 'rl_redraw_prompt_last_line' bashline.o:bashline.c:function bashline_set_event_hook: error: undefined reference to 'rl_signal_event_hook' bashline.o:bashline.c:function bashline_reset_event_hook: error: undefined reference to 'rl_signal_event_hook' bashline.o:bashline.c:function command_word_completion_function: error: undefined reference to 'rl_filename_stat_hook' bashline.o:bashline.c:function attempt_shell_completion: error: undefined reference to 'rl_filename_stat_hook' bashline.o:bashline.c:function bashline_reset: error: undefined reference to 'rl_filename_stat_hook' bashline.o:bashline.c:function initialize_readline: error: undefined reference to 'rl_filename_stat_hook' ./lib/sh/libsh.a(tmpfile.o):tmpfile.c:function sh_mktmpname: warning: the use of `mktemp' is dangerous, better use `mkstemp'
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target 'bash' failed
make: *** [bash] Error 1

(see note '**1' below)

---------------------------
(3rd try)
Next I tried prepending the dir w/readline-7.0 to the
LDFLAGS but the patch for libreadline/history.c didn't make it
into the readline sources:
 bash
User law's .bashrc called 2nd time
bash: xmalloc: cannot allocate 8589934608 bytes (3088384 bytes allocated)
----
(4th try)
Next tried patching readline-7.0 along lines of bash-44-001.  Even though
I altered the LDPATH, it seems to be looking in //lib [sic]:

Note -- had problems making bash-4.4 w/o patches, so the patches
didn't break anything -- just didn't help as much as I'd hoped.


Link started off with:
/usr/bin/gcc -L./builtins -L//lib -L//lib -L./lib/glob -L./lib/tilde -L./lib/malloc -L./lib/sh -L/home/tools/bash/readline-7.0 -O2 -m64
Note 1: On cygwin, '//lib' says to go out and try the root-share of machine
"lib"...probably not what is wanted?

Note 2: Shouldn't it be /lib64?  I had my libdir set for that...
From config:
CFLAGS="$CFLAGS" LD_FLAGS="$LDFLAGS" configure "--prefix=/ --exec-prefix=/ --bindir=/bin --sbindir=/sbin --datadir=/usr/share --datarootdir=/usr/share --includedir=/include --oldincludedir=/include --libdir=/lib64 --libexecdir=/lib64/bash [...]

----


**1 - since it is linking against /lib instead of /lib64, it was really
linking against "libreadline.so.5.2" -- so maybe if it can listen
to "libdir" it might link with a 6.x version of readline -- and that
might work -- but still -- shouldn't my prepending the location
of my libreadline dir, allow it to pick up Version 7?

----

So can I link this with version 7, or will that not work?  Why would
the builtin readline give me errors reading my current inputrc?  And
3rd, why does the config/make ignore my setting of libdir?


Thanks & sorry for so much at once, but after the patches, thought
it should work.   Maybe if I hacked the makefile or something...?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]