The section I'm following is 8.34 of the LFS book (stable view).
I ran the following command in /sources/grep-3.11 with chroot:
Code:
./configure --prefix=/usr
I run "make" after that and I get this:
Code:
../lib/getopt.h:84:10: fatal error: getopt-cdefs.h: No such file or directory
84 | #include <getopt-cdefs.h>
| ^~~~~~~~~~~~~~~~
getopt-cdefs.in.h exists, but not getopt-cdefs.h. Grep output from ls (focus on the first line, and try looking for the actual getopt-cdefs.h file):
Code:
(lfs chroot) root:/sources/grep-3.11# ls lib | grep getopt
getopt-cdefs.in.h
getopt-core.h
getopt-ext.h
getopt-pfx-core.h
getopt-pfx-ext.h
getopt.c
getopt.h
getopt.in.h
getopt1.c
getopt_int.h
libgreputils_a-getopt.o
libgreputils_a-getopt1.o