LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-24-2020, 12:18 AM   #1
SINISTER750
Member
 
Registered: Sep 2020
Posts: 53

Rep: Reputation: Disabled
Error while installing slang-2.3.2


I am trying to build BLFS 8.4
An error occurs while installing slang.
This is the configuration, make and installing script:
Code:
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --with-readline=gnu &&
make -j1


make install_doc_dir=/usr/share/doc/slang-2.3.2   \
     SLSH_DOC_DIR=/usr/share/doc/slang-2.3.2/slsh \
     install-all &&

chmod -v 755 /usr/lib/libslang.so.2.3.2 \
             /usr/lib/slang/v2/modules/*.so
The program builds successfully but does not install.
Here is the error:
Code:
autoconf/mkinsdir.sh /usr/lib/pkgconfig
/usr/bin/install -c -m 644 slang.pc /usr/lib/pkgconfig/
cd src; make install-elf
make[1]: Entering directory '/sources/BLFS/slang-2.3.2/src'
rm -f /sources/BLFS/slang-2.3.2/src/elfobjs/libslang.so.2.3.2
installing slang.h and slcurses.h in /usr/include/
/usr/bin/install -c -m 644 /sources/BLFS/slang-2.3.2/src/slang.h /usr/include/
cd /sources/BLFS/slang-2.3.2/src/elfobjs && gcc  -shared -Wl,-O1 -Wl,--version-script,/sources/BLFS/slang-2.3.2/src/slang.ver -Wl,-soname,libslang.so.2 -o libslang.so.2.3.2 sltermin.o sldisply.o slutty.o slang.o slarray.o slclass.o slcmd.o slerr.o slgetkey.o slkeymap.o slmalloc.o slmath.o slmemchr.o slmemcmp.o slmemcpy.o slmemset.o slmisc.o slparse.o slprepr.o slregexp.o slrline.o slsearch.o slsmg.o slstd.o sltoken.o sltypes.o slxstrng.o slcurses.o slscroll.o slsignal.o slkeypad.o slerrno.o slstring.o slstruct.o slcmplex.o slarrfun.o slimport.o slpath.o slarith.o slassoc.o slcompat.o slposdir.o slstdio.o slproc.o sltime.o slstrops.o slbstr.o slpack.o slintall.o slistruc.o slposio.o slnspace.o slarrmis.o slospath.o slscanf.o sllower.o slupper.o slischar.o slutf8.o slwcwidth.o slwclut.o slcommon.o sllist.o slexcept.o slfpu.o slsig.o slboseos.o  -ldl -lm -lc
/usr/bin/install -c -m 644 /sources/BLFS/slang-2.3.2/src/slcurses.h /usr/include/
/usr/bin/install -c -m 644 ../changes.txt /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../COPYING /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../doc/slangdoc.html /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../doc/text/cref.txt /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../doc/text/cslang.txt /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../doc/text/slangfun.txt /usr/share/doc/slang-2.3.2/
/usr/bin/install -c -m 644 ../doc/text/slang.txt /usr/share/doc/slang-2.3.2/
rm -f /usr/lib/libslang.so
rm -f /usr/lib/libslang.so.2
installing libslang.so.2.3.2 in /usr/lib
/usr/bin/install -c /sources/BLFS/slang-2.3.2/src/elfobjs/libslang.so.2.3.2 /usr/lib/
cd /usr/lib && /bin/ln -sf libslang.so.2.3.2 libslang.so.2
cd /usr/lib && /bin/ln -sf libslang.so.2 libslang.so

libslang.so.2.3.2 created in /usr/lib.
The links libslang.so and libslang.so.2 to libslang.so.2.3.2 were also created.

if [ libslang.so.2 != libslang.so.2.3.2 ]; then \
  cd /sources/BLFS/slang-2.3.2/src/elfobjs && rm -f libslang.so.2 && /bin/ln -sf libslang.so.2.3.2 libslang.so.2; \
fi
cd /sources/BLFS/slang-2.3.2/src/elfobjs && rm -f libslang.so && /bin/ln -sf libslang.so.2.3.2 libslang.so

libslang.so.2.3.2 created in /sources/BLFS/slang-2.3.2/src/elfobjs.
The link libslang.so to libslang.so.2.3.2 was also created.

make[1]: Leaving directory '/sources/BLFS/slang-2.3.2/src'
Now installing slsh
cd slsh; make install
make[1]: Entering directory '/sources/BLFS/slang-2.3.2/slsh'
gcc -g -O2   objs/slsh.o objs/readline.o -o objs/slsh  -Wl,-export-dynamic -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -lslang -lreadline -ldl  -lm
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/bin
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/man/man1
/usr/bin/ld: /usr/lib/libslang.so: file not recognized: file truncated
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:95: objs/slsh] Error 1
make[1]: *** Waiting for unfinished jobs....
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /etc
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/slsh
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/slsh/rline
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/slsh/help
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/slsh/local-packages
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/slsh/scripts
/sources/BLFS/slang-2.3.2/autoconf/mkinsdir.sh /usr/share/doc/slang-2.3.2/slsh/html
make[1]: Leaving directory '/sources/BLFS/slang-2.3.2/slsh'
make: *** [Makefile:87: install-elf] Error 2
Thanks!
 
Old 11-25-2020, 08:52 AM   #2
SINISTER750
Member
 
Registered: Sep 2020
Posts: 53

Original Poster
Rep: Reputation: Disabled
Use
Code:
make -j1 {etc.}
in the installation also instead of simple 'make {etc.}' as given in the book.
 
  


Reply

Tags
lfs



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] jed is broken - possibly due to slang mudherm Slackware 2 02-27-2013 03:49 AM
Puppy 525 2nd install Slang 2.2.2-i486.pet missing. Kenneth R Linux - Newbie 1 08-07-2011 12:06 PM
slang.h / gcc error in Slackware 12? andrew.46 Slackware 3 12-19-2007 03:35 PM
slang linking probs in slackware iwasapenguin Programming 3 07-20-2007 09:57 AM
Some internet slang you may not know dave_starsky General 8 11-10-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration