Em 14-06-2014 13:32, Niels Terp escreveu:
> make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" > make[2]: Entering directory > '/mnt/lfs/LFS-RPM/rpmbuild/TOOLS-RPM/lua-5.2.3/src' > gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline > gcc -o luac luac.o liblua.a -lm -Wl,-E -ldl -lreadline > /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s > o: undefined reference to `tputs' > /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s > o: undefined reference to `tgoto' > collect2: error: ld returned 1 exit status > Makefile:70: recipe for target 'lua' failed > make[2]: *** [lua] Error 1 > make[2]: Leaving directory > '/mnt/lfs/LFS-RPM/rpmbuild/TOOLS-RPM/lua-5.2.3/src' > Makefile:113: recipe for target 'linux' failed > make[1]: *** [linux] Error 2 > make[1]: Leaving directory > '/mnt/lfs/LFS-RPM/rpmbuild/TOOLS-RPM/lua-5.2.3/src' > Makefile:55: recipe for target 'linux' failed > make: *** [linux] Error 2 IIRC, it is a problem we have already solved. "Problem lua-5.2.3 with Readline-6.3 and Ncurses-5." Em 07-06-2014 14:58, William Harrington escreveu: > > On May 14, 2014, at 3:20 PM, Fernando de Oliveira wrote: First, I solved with >> sed -i 's/-lreadline/-lreadline -lncurses/' src/Makefile But the another package needed the same fix, and I removed from the book, reinstalled readline, and the problem was solved for me, but not understood. Then, William Harrington hit the same and found the solution, wich Bruce added to LFS: > The problem is with the new Readline 6.3 build. 6.2 is fine. > If you do this with an LFS build before Readline 6.3 was introduced: > > readelf -d /lib/libreadline.so.6.3 | grep NEEDED > > should output: > 0x00000001 (NEEDED) Shared library: [libncursesw.so.5] > 0x00000001 (NEEDED) Shared library: [libc.so.6] > > But with our current builds of readline 6.3 we only get: > > 0x00000001 (NEEDED) Shared library: [libncursesw.so.5] ... > The other way is to include SHLIB_LIBS=-lncurses during the make > install of readline. > > Read the following bug report as to why this is happening with > Readline 6.3: > http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00005.html make SHLIB_LIBS=-lncurses install (in readline). -- []s, Fernando -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
