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.