LinuxQuestions.org
Review your favorite Linux distribution.
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 10-03-2020, 11:27 AM   #1
Iceberg6459
LQ Newbie
 
Registered: May 2020
Distribution: Linux from Scratch, Arch Linux, Slackware
Posts: 2

Rep: Reputation: Disabled
Readline-8.0 is not found when building JS-68.11.0 on LFS 10.0


Hi,
I am trying to build JS 68.11.0 from BLFS 10.0 on an LFS 10.0 x86_64 system. I have Readline 8.0, GCC-10.2.0, Binutils-2.35, Glibc-2.32, Autconf-2.13,ICU-67.1, and Python2-2.18.7. I configured it using the following options:
Code:
sed '21,+4d' -i js/moz.configure &&

mkdir obj &&
cd    obj &&

CC=gcc CXX=g++ LLVM_OBJDUMP=/bin/false       \
../js/src/configure --prefix=/usr            \
                    --with-intl-api          \
                    --with-system-zlib       \
                    --with-system-icu        \
                    --disable-jemalloc       \
                    --disable-debug-symbols  \
                    --enable-readline        \
                    --enable-unaligned-private-values
I end up getting the following output:
Code:
checking for readline in -lreadline... no
configure: error: No system readline library found.
DEBUG: <truncated - see config.log for full output>
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `tgetflag'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `UP'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `tgetent'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `tgetnum'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `PC'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `tgetstr'
DEBUG: /bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../lib/libreadline.so: undefined reference to `BC'
DEBUG: collect2: error: ld returned 1 exit status
DEBUG: configure: failed program was:
DEBUG: #line 8032 "configure"
DEBUG: #include "confdefs.h"
DEBUG: /* Override any gcc2 internal prototype to avoid an error.  */
DEBUG: /* We use char because int might match the return type of a gcc2
DEBUG:     builtin and then its argument prototype would still apply.  */
DEBUG: char readline();
DEBUG: 
DEBUG: int main() {
DEBUG: readline()
DEBUG: ; return 0; }
DEBUG: configure: error: No system readline library found.
ERROR: old-configure failed
Any help is appreciated. Thank you.
 
Old 10-03-2020, 12:38 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
It's looking for libreadline.so in the right place, /usr/lib/libreadline.so. This file should be a symbolic link to ../../lib/libreadline.so.8. Is it?

ISTR you have to create this link by hand when you install readline.
 
Old 10-03-2020, 01:50 PM   #3
Iceberg6459
LQ Newbie
 
Registered: May 2020
Distribution: Linux from Scratch, Arch Linux, Slackware
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you, I just recreated the symlink as mentioned in the book and that solved my issue.
 
  


Reply



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] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
Patch for readline.SlackBuild to include rlfe (ReadLine Fron-End) tfonz Slackware 0 10-22-2016 11:45 AM
Trying to install GDL? GNU readline is not found? hyperlitefan Linux - Software 2 07-19-2014 04:54 PM
Slack64; trying to compile libparted = "error: GNU Readline could not be found" GrapefruiTgirl Linux - Software 9 01-26-2010 12:30 PM
Using cat readline within cat readline while loop demxkn66 Programming 5 12-16-2007 05:10 PM

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

All times are GMT -5. The time now is 09:25 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