Log further below.
Error when building lua.
I needed to use
sed -i 's/-lreadline/-lreadline -lncurses/' src/Makefile
(I prefer to explicitly repeat the search string, if it is not too large).
Is it just me, or I should fix the book?
Log:
{{{
$ make linux
...
gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o loadlib.o
loadlib.c
gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o linit.o
linit.c
ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o
lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o
ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o
lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o
loadlib.o linit.o
ranlib liblua.a
gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tputs'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tgoto'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tgetflag'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `UP'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tgetent'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tgetnum'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `PC'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `tgetstr'
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libreadline.so: undefined
reference to `BC'
collect2: error: ld returned 1 exit status
Makefile:70: recipe for target 'lua' failed
make[2]: *** [lua] Error 1
make[2]: Leaving directory
'/home/fernando/tmp/paco-build-2014.05.14-16h14m52s/lua-5.2.3/src'
Makefile:113: recipe for target 'linux' failed
make[1]: *** [linux] Error 2
make[1]: Leaving directory
'/home/fernando/tmp/paco-build-2014.05.14-16h14m52s/lua-5.2.3/src'
Makefile:55: recipe for target 'linux' failed
make: *** [linux] Error 2
}}}
--
[]s,
Fernando
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page