Sorry, I got this posted in the wrong forum.

 

Hi there,

 

I have been updating Baho-Utot's scripts to build LFS with RPM from LFS v.

7.4 to v. 7.5.

 

RPM needs Lua, and I have just copied the instructions from BLFS 7.5. When I 
run the scripts I get:

 

Building---> lua

/mnt/lfs/rpmbuild/TOOLS-RPM/lua-5.2.3 /mnt/lfs/rpmbuild/TOOLS-RPM patching file 
Makefile patching file src/Makefile cd src && make linux V=5.2 R=5.2.3

make[1]: Entering directory

'/mnt/lfs/LFS-RPM/rpmbuild/TOOLS-RPM/lua-5.2.3/src'

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 -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lapi.o lapi.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lcode.o

lcode.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lctype.o

lctype.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ldebug.o

ldebug.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ldo.o ldo.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ldump.o

ldump.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lfunc.o

lfunc.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lgc.o lgc.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o llex.o llex.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lmem.o lmem.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lobject.o

lobject.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lopcodes.o

lopcodes.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lparser.o

lparser.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lstate.o

lstate.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lstring.o

lstring.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ltable.o

ltable.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ltm.o ltm.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lundump.o

lundump.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lvm.o lvm.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lzio.o lzio.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lauxlib.o

lauxlib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lbaselib.o

lbaselib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lbitlib.o

lbitlib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lcorolib.o

lcorolib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ldblib.o

ldblib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o liolib.o

liolib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lmathlib.o

lmathlib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o loslib.o

loslib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lstrlib.o

lstrlib.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o ltablib.o

ltablib.c

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

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lua.o lua.c

gcc -fPIC -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o luac.o luac.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 gcc -shared 
-ldl -Wl,-soname,liblua.so.5.2 -o liblua.so.5.2.3 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 -lm ranlib liblua.a

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'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetflag'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `UP'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetent'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetnum'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `PC'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetstr'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `BC'

collect2: error: ld returned 1 exit status

Makefile:73: recipe for target 'luac' failed

make[2]: *** [luac] Error 1

make[2]: *** Waiting for unfinished jobs....

ln -sf liblua.so.5.2.3 liblua.so.5.2

ln -sf liblua.so.5.2.3 liblua.so

/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'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetflag'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `UP'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetent'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetnum'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `PC'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: undefined reference to `tgetstr'

/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.8.2/../../../libreadline.s

o: 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

'/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

 

I suspect that the error is a result of one or more of other modifications - 
but I have not been able to pinpoint what is the problem.

 

Can anybody help ?

 

Greetings

 

Niels

 

 

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to