Problem building RTEMS - readline/undefined reference to tputs

John Graham johngavingraham at googlemail.com
Wed Jun 5 12:27:03 UTC 2019


Hi there,

I'm trying to build RTEMS to see about starting development work, I took
the advice to build the tools as per the user manual, and everything goes
okay until this page:

    https://docs.rtems.org/branches/master/user/start/tools.html

I've followed the instructions but when I try and actually build the tools
(i.e. ../source-builder/sb-set-builder --prefix=${RTEMS_PREFIX?}
5/rtems-sparc) I get a linker error with lots of undefined references to
tputs, e.g.:

~~~
gcc -O2 -pipe -I/home/john/src/
git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/include
-DHAVE_CONFIG_H       -DDEFAULT_INLINE=0      -DFAST_UART
-I../../../gdb-8.2.1/sim/sis/../.. `echo -Dsparc-rtems5 | sed s/-rtems.//`
  -I. -I../../../gdb-8.2.1/sim/sis -I../common
-I../../../gdb-8.2.1/sim/sis/../common -I../../include
-I../../../gdb-8.2.1/sim/sis/../../include -I../../bfd
-I../../../gdb-8.2.1/sim/sis/../../bfd -I../../opcodes
-I../../../gdb-8.2.1/sim/sis/../../opcodes  -g -O2 -static-libstdc++
-static-libgcc -L/home/john/src/
git.rtems.org/rsb/rtems/build/tmp/sb-john/5/rtems-sparc/home/john/src/git.rtems.org/install/lib
-o run \
  run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a
 ../../libiberty/libiberty.a -ldl -lnsl  -L../../zlib -lz
../../readline/libreadline.a  -lm
/usr/bin/ld: ../../readline/libreadline.a(display.o): in function
`_rl_move_cursor_relative':
/home/john/src/
git.rtems.org/rsb/rtems/build/sparc-rtems5-gdb-8.2.1-x86_64-linux-gnu-1/build/readline/../../gdb-8.2.1/readline/display.c:1985:
undefined reference to `tputs'
~~~

I'm not sure how to go about solving this in the context of the RTEMS build
system. This thread (https://github.com/monero-project/monero/issues/2919)
seems to suggest I just need to link in termcap wherever readline is,
though I can't find where that's done.

I'm coming back to this sort of development after a long break, so may have
missed something obvious! I'm using a fresh Ubuntu 19.04 system, nothing
installed except emacs and what the RTEMS user guide says.

Thanks for any help,

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190605/6fa875c6/attachment.html>


More information about the devel mailing list