I'm in chapter 6.51 of LFS 7.9 and, after installing the package like it is explained in the book, when I check if the directory exist I got an error.
Here is the log:
Code:
root:/sources/gperf-3.0.4# ./configure --prefix=/usr --docdir=/usr/share/doc/gperf-3.0.4
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
=== configuring in lib (/sources/gperf-3.0.4/lib)
configure: running /bin/sh ./configure '--prefix=/usr' '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
=== configuring in src (/sources/gperf-3.0.4/src)
configure: running /bin/sh ./configure '--prefix=/usr' '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking for stack-allocated variable-size arrays... yes
checking for rand in -lm... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
=== configuring in tests (/sources/gperf-3.0.4/tests)
configure: running /bin/sh ./configure '--prefix=/usr' '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
configure: creating ./config.status
config.status: creating Makefile
=== configuring in doc (/sources/gperf-3.0.4/doc)
configure: running /bin/sh ./configure '--prefix=/usr' '--docdir=/usr/share/doc/gperf-3.0.4' --cache-file=/dev/null --srcdir=.
checking whether make sets $(MAKE)... yes
checking for a BSD compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
root:/sources/gperf-3.0.4# make
cd lib; make all
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
gcc -g -O2 -I. -c ./getopt.c
gcc -g -O2 -I. -c ./getopt1.c
g++ -g -O2 -I. -c ./getline.cc
g++ -g -O2 -I. -c ./hash.cc
rm -f libgp.a
ar rc libgp.a getopt.o getopt1.o getline.o hash.o
ranlib libgp.a
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make all
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2 -I. -I./../lib -c ./version.cc
g++ -g -O2 -I. -I./../lib -c ./positions.cc
g++ -g -O2 -I. -I./../lib -c ./options.cc
g++ -g -O2 -I. -I./../lib -c ./keyword.cc
g++ -g -O2 -I. -I./../lib -c ./keyword-list.cc
g++ -g -O2 -I. -I./../lib -c ./input.cc
g++ -g -O2 -I. -I./../lib -c ./bool-array.cc
g++ -g -O2 -I. -I./../lib -c ./hash-table.cc
g++ -g -O2 -I. -I./../lib -c ./search.cc
g++ -g -O2 -I. -I./../lib -c ./output.cc
g++ -g -O2 -I. -I./../lib -c ./main.cc
g++ -g -O2 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:33: recipe for target 'all' failed
make: *** [all] Error 2
root:/sources/gperf-3.0.4# make -j1 check
cd lib; make check
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make check
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:57: recipe for target 'check' failed
make: *** [check] Error 2
root:/sources/gperf-3.0.4# make install
cd lib; make install
make[1]: Entering directory '/sources/gperf-3.0.4/lib'
make[1]: Nothing to be done for 'install'.
make[1]: Leaving directory '/sources/gperf-3.0.4/lib'
cd src; make install
make[1]: Entering directory '/sources/gperf-3.0.4/src'
g++ -g -O2 -o gperf version.o positions.o options.o keyword.o keyword-list.o input.o bool-array.o hash-table.o search.o output.o main.o ../lib/libgp.a -lm
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
collect2: error: ld returned 1 exit status
Makefile:74: recipe for target 'gperf' failed
make[1]: *** [gperf] Error 1
make[1]: Leaving directory '/sources/gperf-3.0.4/src'
Makefile:39: recipe for target 'install' failed
make: *** [install] Error 2
root:/sources/gperf-3.0.4# /usr/share/doc/gperf-3.0.4
bash: /usr/share/doc/gperf-3.0.4: No such file or directory
root:/sources/gperf-3.0.4#
Is it installed in a different directory or what happens?
Thanks in advance