In building LFS-7.5 and as is my habit, I was trying to install Vim-7.4 into /tools before I started Ch. 6. I did this at the same point last year when I built LFS-7.4, and all went well. I like having vim available right at the beginning of Ch. 6 in the chroot environment. However, this time vim-7.4 failed to configure with the following terminal output:

checking --with-tlib argument... empty: automatic terminal library selection
checking for tgetent in -ltinfo... no
checking for tgetent in -lncurses... no
checking for tgetent in -ltermlib... no
checking for tgetent in -ltermcap... no
checking for tgetent in -lcurses... no
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
      You need to install a terminal library; for example ncurses.
      Or specify the name of the library with --with-tlib.

This failure occurs, with identical output, whether I build as user lfs or as root in the chroot environment.

This, without all the other stuff, is what the configure log gives:

3560  configure:10388: checking for tgetent in -lcurses
3561 configure:10413: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/l
ib conftest.c -lcurses  -lnsl  >&5
3562 /toolz/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../x86_64-unknown-linu
x-gnu/bin/ld: cannot find -lcurses
  3563  collect2: error: ld returned 1 exit status

As I said this did not happen the last time I tried to do this. I used `.configure --prefix=/toolz --enable-multibyte`

The use of "/toolz" is not a type-o. It is my trying to recover from the major error that I made in building LFS-7.4 in which the links from /usr/lib/{libgcc_s.so*,libstdc++*} to /tools/lib--established at the beginning of Ch. 6--did not get removed. I am reasonably sure, checked and double-checked, that I got "/toolz" everywhere "/tools" was indicated. However........... The sanity checks of Ch. 5 passed and I have reread the book and don't believe I have missed or interchanged any major steps. However.............

Because of this error, I want to make sure that my temporary tool chain works without error. At this point, now, I am not sure. `./configure --help` indicates that I can use the switch "--with-tlib=library" but I don't know what to put there. I'd like some guidance to see if it works.

Depending on the results of this troubleshooting, I could scrap my build so far and start over. My instincts tell me that I made a mistake, but so far I haven't been able to figure it out. I'm asking for help to resolve this situation.

Thanks,
Dan



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

Reply via email to