Article 6JTAG ./configure file not creating getopt-cdefs.h from it's .in.h file (grep-3.11)

./configure file not creating getopt-cdefs.h from it's .in.h file (grep-3.11)

by
josiauh
from LinuxQuestions.org on (#6JTAG)
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=/usrI 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
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments