Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » MSPGCC
  • » [Mspgcc-users] undefined reference error while building gdb [RSS Feed]

#1 June 23, 2010 06:17:54

Brian N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] undefined reference error while building gdb


I'm trying to build (or 'make') gdb for mspgcc and I'm getting a number of
undefined references:
`_tgetent',`_tgetnum',`_tgetstr',`_tgetflag',`_tputs',`_tgoto'. The
instructions I'm following are here:http://mspgcc.sourceforge.net/manual/x1746.htmlBrian

Here's the complete output, sorry if it makes the email kind of long:
/bin/sh: command substitution: line 0: syntax error near unexpected token
`then'

/bin/sh: command substitution: line 0: `if test -r
../libtermcap/libtermcap.a; t
hen echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi'
libgdb.a(utils.o): In function `init_page_info':
/home/bn2008/gdb-5.1.1/gdb/utils.c:1531: undefined reference to `_tgetent'
/home/bn2008/gdb-5.1.1/gdb/utils.c:1537: undefined reference to `_tgetnum'
/home/bn2008/gdb-5.1.1/gdb/utils.c:1547: undefined reference to `_tgetnum'
../readline/libreadline.a(terminal.o): In function `_rl_get_screen_size':
/home/bn2008/gdb-5.1.1/readline/terminal.c:199: undefined reference to
`_tgetnum
'
/home/bn2008/gdb-5.1.1/readline/terminal.c:215: undefined reference to
`_tgetnum
'
../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
/home/bn2008/gdb-5.1.1/readline/terminal.c:360: undefined reference to
`_tgetent
'
/home/bn2008/gdb-5.1.1/readline/terminal.c:309: undefined reference to
`_tgetstr
'
/home/bn2008/gdb-5.1.1/readline/terminal.c:419: undefined reference to
`_tgetfla
g'
/home/bn2008/gdb-5.1.1/readline/terminal.c:431: undefined reference to
`_tgetfla
g'
/home/bn2008/gdb-5.1.1/readline/terminal.c:431: undefined reference to
`_tgetfla
g'
/home/bn2008/gdb-5.1.1/readline/terminal.c:419: undefined reference to
`_tgetfla
g'
../readline/libreadline.a(terminal.o): In function `_rl_backspace':
/home/bn2008/gdb-5.1.1/readline/terminal.c:528: undefined reference to
`_tputs'
../readline/libreadline.a(terminal.o): In function `ding':
/home/bn2008/gdb-5.1.1/readline/terminal.c:566: undefined reference to
`_tputs'
../readline/libreadline.a(terminal.o): In function `_rl_enable_meta_key':
/home/bn2008/gdb-5.1.1/readline/terminal.c:592: undefined reference to
`_tputs'
../readline/libreadline.a(terminal.o): In function `_rl_control_keypad':
/home/bn2008/gdb-5.1.1/readline/terminal.c:604: undefined reference to
`_tputs'
../readline/libreadline.a(display.o): In function `cr':
/home/bn2008/gdb-5.1.1/readline/display.c:1600: undefined reference to
`_tputs'
../readline/libreadline.a(display.o):/home/bn2008/gdb-5.1.1/readline/display.c:1
225: more undefined references to `_tputs' follow
../readline/libreadline.a(display.o): In function `update_line':
/home/bn2008/gdb-5.1.1/readline/display.c:1502: undefined reference to
`_tgoto'
/home/bn2008/gdb-5.1.1/readline/display.c:1503: undefined reference to
`_tputs'
/home/bn2008/gdb-5.1.1/readline/display.c:1512: undefined reference to
`_tputs'
/home/bn2008/gdb-5.1.1/readline/display.c:1528: undefined reference to
`_tputs'
/home/bn2008/gdb-5.1.1/readline/display.c:1545: undefined reference to
`_tgoto'
/home/bn2008/gdb-5.1.1/readline/display.c:1546: undefined reference to
`_tputs'
../readline/libreadline.a(display.o): In function `rl_redisplay':
/home/bn2008/gdb-5.1.1/readline/display.c:695: undefined reference to
`_tputs'
../readline/libreadline.a(display.o): In function
`_rl_redisplay_after_sigwinch'
:
/home/bn2008/gdb-5.1.1/readline/display.c:1650: undefined reference to
`_tputs'
/home/bn2008/gdb-5.1.1/readline/display.c:1662: undefined reference to
`_tputs'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/bn2008/gdb-5.1.1/gdb'
make: *** Error 2

Offline

#2 June 24, 2010 05:52:55

Brian N.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] undefined reference error while building gdb


You can disregard this email I sent out yesterday. I never figured out what
was wrong but a fact finally penetrated my thick skull and that fact is that
I don't need to build the tool, I just need to use the tool. I can just
download that. In case it's not obvious, I'm a little out of my depth
here. But I'm learning by leaps and bounds and I'll figure everything out
eventually.
Thanks anyways.
Brian


On Tue, Jun 22, 2010 at 4:17 PM, Brian Nolte <brianno***@*mail.com> wrote:

> I'm trying to build (or 'make') gdb for mspgcc and I'm getting a number of
> undefined references:
> `_tgetent',`_tgetnum',`_tgetstr',`_tgetflag',`_tputs',`_tgoto'. The
> instructions I'm following are here:
>http://mspgcc.sourceforge.net/manual/x1746.html> Brian
>
> Here's the complete output, sorry if it makes the email kind of long:
> /bin/sh: command substitution: line 0: syntax error near unexpected token
> `then'
>
> /bin/sh: command substitution: line 0: `if test -r
> ../libtermcap/libtermcap.a; t
> hen echo ../libtermcap/libtermcap.a; else echo -ltermcap; fi'
> libgdb.a(utils.o): In function `init_page_info':
> /home/bn2008/gdb-5.1.1/gdb/utils.c:1531: undefined reference to `_tgetent'
> /home/bn2008/gdb-5.1.1/gdb/utils.c:1537: undefined reference to `_tgetnum'
> /home/bn2008/gdb-5.1.1/gdb/utils.c:1547: undefined reference to `_tgetnum'
> ../readline/libreadline.a(terminal.o): In function `_rl_get_screen_size':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:199: undefined reference to
> `_tgetnum
> '
> /home/bn2008/gdb-5.1.1/readline/terminal.c:215: undefined reference to
> `_tgetnum
> '
> ../readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:360: undefined reference to
> `_tgetent
> '
> /home/bn2008/gdb-5.1.1/readline/terminal.c:309: undefined reference to
> `_tgetstr
> '
> /home/bn2008/gdb-5.1.1/readline/terminal.c:419: undefined reference to
> `_tgetfla
> g'
> /home/bn2008/gdb-5.1.1/readline/terminal.c:431: undefined reference to
> `_tgetfla
> g'
> /home/bn2008/gdb-5.1.1/readline/terminal.c:431: undefined reference to
> `_tgetfla
> g'
> /home/bn2008/gdb-5.1.1/readline/terminal.c:419: undefined reference to
> `_tgetfla
> g'
> ../readline/libreadline.a(terminal.o): In function `_rl_backspace':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:528: undefined reference to
> `_tputs'
> ../readline/libreadline.a(terminal.o): In function `ding':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:566: undefined reference to
> `_tputs'
> ../readline/libreadline.a(terminal.o): In function `_rl_enable_meta_key':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:592: undefined reference to
> `_tputs'
> ../readline/libreadline.a(terminal.o): In function `_rl_control_keypad':
> /home/bn2008/gdb-5.1.1/readline/terminal.c:604: undefined reference to
> `_tputs'
> ../readline/libreadline.a(display.o): In function `cr':
> /home/bn2008/gdb-5.1.1/readline/display.c:1600: undefined reference to
> `_tputs'
>
> ../readline/libreadline.a(display.o):/home/bn2008/gdb-5.1.1/readline/display.c:1
> 225: more undefined references to `_tputs' follow
> ../readline/libreadline.a(display.o): In function `update_line':
> /home/bn2008/gdb-5.1.1/readline/display.c:1502: undefined reference to
> `_tgoto'
> /home/bn2008/gdb-5.1.1/readline/display.c:1503: undefined reference to
> `_tputs'
> /home/bn2008/gdb-5.1.1/readline/display.c:1512: undefined reference to
> `_tputs'
> /home/bn2008/gdb-5.1.1/readline/display.c:1528: undefined reference to
> `_tputs'
> /home/bn2008/gdb-5.1.1/readline/display.c:1545: undefined reference to
> `_tgoto'
> /home/bn2008/gdb-5.1.1/readline/display.c:1546: undefined reference to
> `_tputs'
> ../readline/libreadline.a(display.o): In function `rl_redisplay':
> /home/bn2008/gdb-5.1.1/readline/display.c:695: undefined reference to
> `_tputs'
> ../readline/libreadline.a(display.o): In function
> `_rl_redisplay_after_sigwinch'
> :
> /home/bn2008/gdb-5.1.1/readline/display.c:1650: undefined reference to
> `_tputs'
> /home/bn2008/gdb-5.1.1/readline/display.c:1662: undefined reference to
> `_tputs'
> collect2: ld returned 1 exit status
> make: *** Error 1
> make: Leaving directory `/home/bn2008/gdb-5.1.1/gdb'
> make: *** Error 2
>
>

Offline

  • Root
  • » MSPGCC
  • » [Mspgcc-users] undefined reference error while building gdb [RSS Feed]

Board footer

Moderator control

Enjoy the 14th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support