On Mon, Oct 31, 2016 at 03:58:30PM -0500, Seve Martinez wrote: > Currently working on building an LFS system that will boot UEFI. I've > installed the popt-1.16 file as listed in the book: > http://www.linuxfromscratch.org/blfs/view/cvs/general/popt.html > > I've also been following this guide: > http://www.linuxfromscratch.org/hints/downloads/files/lfs-uefi.txt > > Namely the following commands: > Compile the package: > sed 's|-O0|-Os|g' -i Make.defaults > sed 's|-rpath=$(TOPDIR)/src/|-rpath=$(libdir)|g' > -i src/test/Makefile > make libdir="/usr/lib/" bindir="/usr/bin/" > mandir="/usr/share/man/" > includedir="/usr/include/" V=1 -j1 > > however it fails at: > > root:/sources/efivar# > make libdir="/usr/lib/" bindir="/usr/bin/" > mandir="/usr/share/man/" > includedir="/usr/include/" V=1 -j1 > > gcc -O2 -flto -g3 -I/sources/efivar/src/include/efivar/ > -specs=/sources/efivar/gcc.specs -L. -static -o efivar-static efivar.c > dp.static.o dp-acpi.static.o dp-hw.static.o dp-media.static.o > dp-message.static.o efivarfs.static.o error.static.o export.static.o > guid.static.o guids.static.o guid-symbols.static.o lib.static.o > vars.static.o -ldl -lpopt > /usr/bin/ld: cannot find -lpopt > collect2: error: ld returned 1 exit status > > Below I've confimed these exist: > > root:/sources/efivar# ls /usr/lib64 | grep libpopt.so > libpopt.so > libpopt.so.0 > libpopt.so.0.0.0
1. Try running ldconfig, just in case (my log suggests it does get run automatically by make install in popt, but no harm in repeating it). 2. If that doesn't help, run 'file' on /usr/lib/libpopt.so and /usr/lib64/libpopt.so. They should be the same file because of the symlink, but perhaps something broke. ĸen -- `I shall take my mountains', said Lu-Tze. `The climate will be good for them.' -- Small Gods -- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
