Opened 11 years ago
Closed 11 years ago
#3481 closed defect (fixed)
libncurses.so link required to build util-linux
Reported by: | Tiago Koji Castro Shibata | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.5 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
While building util-linux-2.24.1 in SVN for the temporary system (step 5.33), make links using -lncurses. Since the links from ncurses to ncursesw are only created in step 6.21 (inside the final system), the compilation fails. Creating libncurses.so as a soft link to libncursesw.so before step 5.33 solves the problem: ln -s libncursesw.so $LFS/tools/lib/libncurses.so
Change History (8)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Yes, and the wide character libraries were built. The problem is util-linux using -lncurses instead of -lncursesw. It can be solved with the links from 6.21, but they must be created before compilation.
comment:3 by , 11 years ago
My log has:
checking for NCURSESW... yes checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes
I don't have a verbose build log, but I got no failures. Perhaps this is a host issue. Does your host have /usr/lib/libncurses.so?
comment:4 by , 11 years ago
The host has /usr/lib/x86_64-linux-gnu/libncurses.so. I'll build a clean LFS and get the logs (didn't save them, I feel stupid now). I had no problem in the configuration, only when linking to the library.
comment:5 by , 11 years ago
Yeah, it's a host issue. ld from /tools isn't detecting the host's libraries. The following works:
LIBRARY_PATH=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu make
comment:6 by , 11 years ago
What host distro are you using? What are the contents of /etc/ld.so.conf?
The paths you mention are definitely non-standard. Perhaps the fix to #3482 fixes the issue.
comment:7 by , 11 years ago
Distro is Lubuntu 13.04. The fix to #3482 proposed by pierre.labastie fixes the problems :) . /etc/ld.so.conf has "include /etc/ld.so.conf.d/*.conf" and the configuration files have:
/usr/lib/i386-linux-gnu/mesa # Multiarch support /lib/i386-linux-gnu /usr/lib/i386-linux-gnu /lib/i686-linux-gnu /usr/lib/i686-linux-gnu # libc default configuration /usr/local/lib # Multiarch support /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/mesa-egl /usr/lib/x86_64-linux-gnu/mesa
comment:8 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
That's weird. In any case, I'll close this as fixed.
Did you rebuild ncurses with --enable-widec as now specified in Chapter 5?
I'll leave open for a while until I get an answer. If not, I'll then close as invalid.