[Techtalk] Trying to get octave to compile.
John Clarke
johnc+linuxchix at kirriwa.net
Wed Mar 17 21:18:53 EST 2004
On Wed, Mar 17, 2004 at 08:14:09 +1100, Sue Stones wrote:
Hi Sue,
> oct-rl-edit.c: In function `octave_rl_prompt_start_ignore':
> oct-rl-edit.c:268: `RL_PROMPT_START_IGNORE' undeclared (first use in this
> function)
> oct-rl-edit.c: In function `octave_rl_prompt_end_ignore':
> oct-rl-edit.c:274: `RL_PROMPT_END_IGNORE' undeclared (first use in this
> function)
These two should be defined in readline.h:
[johnc at dropbear ~]$ egrep -w 'RL_PROMPT_(START|END)_IGNORE' /usr/include/readline/*.h
/usr/include/readline/readline.h:#define RL_PROMPT_START_IGNORE '\001'
/usr/include/readline/readline.h:#define RL_PROMPT_END_IGNORE '\002'
Does oct-rl-edit.c include readline.h, and if so, and if you have
multiple copies of readline.h, do they all define these symbols?
> oct-rl-edit.c: In function `octave_rl_set_terminal_name':
> oct-rl-edit.c:286: `rl_terminal_name' undeclared (first use in this function)
That symbol should be in libreadline.so:
[johnc at dropbear ~]$ nm /usr/lib/libreadline.so|grep -w rl_terminal_name
00021064 D rl_terminal_name
Is it linking with libreadline.so? Check the linker command line - it
should include '-lreadline'.
I have readline-4.2a:
[johnc at dropbear ~]$ rpm -q readline readline-devel
readline-4.2a-4
readline-devel-4.2a-4
Things may be slightly different in 4.3 (which, IIRC, is the version you
installed), but they shouldn't be that different.
Cheers,
John
--
"Virii is still completely silly, so don't do that; otherwise, everyone will
know you're just a blathering script kiddie."
Tom Christiansen describes how not to pluralise "virus".
http://language.perl.com/misc/virus.html
More information about the Techtalk
mailing list