Re: gdb cross compilation, error from gdb/tui module.... please help.

paawan oza
2010-10-28T04:02:29Z

I ran into readline error now.

gdb is configured as below....
> ./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi
>--build=i686-pc-linux-gnu --disable-tui

> make <snippet>
arm-none-linux-gnueabi-gcc -g -O2 -I. -I. -I./common -I./config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_Carm-none-linux-gnueabi-gcc -g
-O2 \
-o gdb gdb.o libgdb.a \
../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lm
../libiberty/libiberty.a gnulib/libgnu.a -ldl
-Wl,--dynamic-list=./proc-service.list
libgdb.a(utils.o): In function `init_page_info':
/home/oza/mk_patch/gdb/gdb-7.2/gdb/utils.c:2102: undefined reference to
`tgetnum'
../readline/libreadline.a(display.o): In function `_rl_clear_screen':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2091: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `_rl_clear_to_eol':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2062: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `cr':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2211: undefined reference to
`tputs'
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2211: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `_rl_move_vert':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:1789: undefined reference to
`tputs'
../readline/libreadline.a(display.o):/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:1805:
more undefined references to `tputs' follow
../readline/libreadline.a(display.o): In function `insert_some_chars':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2116: undefined reference to
`tgoto'
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2117: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `delete_chars':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2166: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `insert_some_chars':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2142: undefined reference to
`tputs'
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2133: undefined reference to
`tputs'
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2126: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `delete_chars':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2159: undefined reference to
`tgoto'
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2160: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `rl_redisplay':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:984: undefined reference to
`tputs'
../readline/libreadline.a(display.o): In function `cr':
/home/oza/mk_patch/gdb/gdb-7.2/readline/display.c:2211: undefined reference to
`tputs'
../readline/libreadline.a(terminal.o): In function `_rl_set_cursor':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:756: undefined reference to
`tputs'
../readline/libreadline.a(terminal.o): In function `_rl_control_keypad':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:730: undefined reference to
`tputs'
../readline/libreadline.a(terminal.o):/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:718:
more undefined references to `tputs' follow
../readline/libreadline.a(terminal.o): In function `_rl_get_screen_size':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:282: undefined reference to
`tgetnum'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:263: undefined reference to
`tgetnum'
../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:468: undefined reference to
`tgetent'
../readline/libreadline.a(terminal.o): In function `get_term_capabilities':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:414: undefined reference to
`tgetstr'
../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:534: undefined reference to
`tgetflag'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:549: undefined reference to
`tgetflag'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:534: undefined reference to
`tgetflag'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:549: undefined reference to
`tgetflag'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:461: undefined reference to
`BC'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:461: undefined reference to
`UP'
/home/oza/mk_patch/gdb/gdb-7.2/readline/terminal.c:461: undefined reference to
`PC'
collect2: ld returned 1 exit status
make[2]: *** [gdb] Error 1
make[2]: Leaving directory `/home/oza/mk_patch/gdb/gdb-7.2/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/oza/mk_patch/gdb/gdb-7.2'
make: *** [all] Error 2

PS: using vmware on x86.

Regards,
Oza.

----- Original Message ----
From: Baurzhan Ismagulov <ibr@radix50.net>
To: paawan oza <paawan1982@yahoo.com>
Cc: gdb@sourceware.org
Sent: Wed, October 27, 2010 9:43:44 PM
Subject: Re: gdb cross compilation, error from gdb/tui module.... please help.

On Wed, Oct 27, 2010 at 08:36:15AM -0700, paawan oza wrote:
> ./tui/tui-data.h:38: error: expected specifier-qualifier-list before 'WINDOW'

It doesn't answer your question, but if you don't need tui, you can
configure --disable-tui. FWIW, I never use it, let alone on arm; does
anybody really use it?

With kind regards,
Baurzhan.