[Techtalk] Trying to get octave to compile.
Sue Stones
suzo at spin.net.au
Thu Mar 18 01:18:35 EST 2004
On Wed, 17 Mar 2004 08:18 pm, John Clarke wrote:
> 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'
I have readline-4.3-4 it includes these lines as in yours.
> 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 contains the line
#include <readline/readline.h>
I suspect that my readline. is in the wong place. Can you tell me what should
be where? Where should I be installing things from.
> > 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
When I try this it just returns "no symbols".
[sue at localhost lib]$ ls /lib/libread*
/lib/libreadline.so@ /lib/libreadline.so.4.1@ /lib/libreadline.so.4.3
/lib/libreadline.so.4@ /lib/libreadline.so.4.2@
[sue at localhost lib]$ nm libreadline.so | grep -w 'rl_terminal_name'
nm: libreadline.so: no symbols
> Is it linking with libreadline.so? Check the linker command line - it
> should include '-lreadline'.
I think this is there. (I'm a little confused and very tierd at this point)
I suspect this may be a "things are in the wrong place" error too.
sue
> 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.
[sue at localhost octave-2.1.50]$ rpm -q readline
readline-4.3-4mdk
>
> Cheers,
>
> John
More information about the Techtalk
mailing list