LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Glibc-2.23 (chapter 6.9) (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-2-23-chapter-6-9-a-4175588076/)

zoelee4 08-26-2016 05:52 PM

Glibc-2.23 (chapter 6.9)
 
Hi there! sorry for the noob question but I am having trouble installing glibc. I get the error:
Code:

configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.

when I configure glibc
Code:

../configure --prefix=/usr          \
            --disable-profile      \
            --enable-kernel=2.6.32 \
            --enable-obsolete-rpc

I am running this while in the chroot environment inside of the build directory inside of the glibc-2.23 directory inside of the sources directory.

thank you again!

Rinndalir 08-26-2016 05:56 PM

Post the link you're using for LFS. Looks like an old book.

zoelee4 08-26-2016 07:15 PM

link:
 
http://www.linuxfromscratch.org/lfs/...r06/glibc.html

Keith Hedger 08-27-2016 06:35 AM

post the version script what host you are on and are you using a vm the configure script is complaining about gawk so that is probably your problem

zoelee4 08-27-2016 10:40 AM

I am not running a VM. My OS is Ubuntu. This is exactly how I run the script (sorry if this is too much detail.)
Code:

root:/# cd sources/
root:/sources# tar xf glibc-2.23.tar.xz
root:/sources# cd glibc-2.23
root:/sources/glibc-2.23# patch -Np1 -i ../glibc-2.23-fhs-1.patch
patching file Makeconfig
Hunk #1 succeeded at 260 (offset 10 lines).
patching file nscd/nscd.h
Hunk #1 succeeded at 161 (offset 49 lines).
patching file nss/db-Makefile
patching file sysdeps/generic/paths.h
patching file sysdeps/unix/sysv/linux/paths.h
root:/sources/glibc-2.23# mkdir -v build
mkdir: created directory 'build'
root:/sources/glibc-2.23# cd      build
root:/sources/glibc-2.23/build# ../configure --prefix=/usr          \
>              --disable-profile      \
>              --enable-kernel=2.6.32 \
>              --enable-obsolete-rpc
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
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 readelf... readelf
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ can link programs... yes
checking for sysdeps preconfigure fragments... aarch64 alpha arm hppa i386 m68k microblaze mips nacl nios2 powerpc s390 sh sparc tile x86_64 checking whether gcc compiles in -mx32 mode by default... no

configure: running configure fragment for add-on libidn
checking for assembler and linker STT_GNU_IFUNC support... yes
checking sysdep dirs... sysdeps/unix/sysv/linux/x86_64/64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/wordsize-64 sysdeps/x86_64/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/x86_64 sysdeps/unix sysdeps/posix sysdeps/x86_64/64 sysdeps/x86_64/fpu/multiarch sysdeps/x86_64/fpu sysdeps/x86/fpu sysdeps/x86_64/multiarch sysdeps/x86_64 sysdeps/x86 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64/wordsize-64 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/wordsize-64 sysdeps/ieee754 sysdeps/generic
checking for a BSD-compatible install... /tools/bin/install -c
checking whether ln -s works... yes
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.26.20160125, ok
checking for ld... ld
checking version of ld... 2.26.20160125, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 4.1, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.19.7, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 6.1, ok
checking for sed... sed
checking version of sed... 4.2.2, ok
checking for gawk... no
checking if gcc is sufficient to build libc... yes
checking for nm... nm
configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.
root:/sources/glibc-2.23/build#

thanks again for all your help!

zoelee4 08-27-2016 10:51 AM

I do have gawk installed (on my host os).
Code:

➜  ~ gawk
Usage: gawk [POSIX or GNU style options] -f progfile [--] file ...

I installed it for chapter 5.7 (http://www.linuxfromscratch.org/lfs/...r05/glibc.html). However when in the chroot environment when I type gawk, nothing comes up
Code:

root:/sources/glibc-2.23/build# gawk
bash: gawk: command not found

I ignored this because I thought that it did not matter.

thanks

Keith Hedger 08-27-2016 11:18 AM

ubuntu is not complient out of the box, you need to post the output of the version.sh script

zoelee4 08-27-2016 11:20 AM

sorry for being such a noob, but do I run version.sh inside the chroot environment or inside my os?

Keith Hedger 08-27-2016 11:22 AM

dont ignore errors unless you know what your your doing by ignoring them.
gawk should be in the tool chain from chap5, whatisyour PATH set to?

Keith Hedger 08-27-2016 11:23 AM

Quote:

Originally Posted by zoelee4 (Post 5596917)
sorry for being such a noob, but do I run version.sh inside the chroot environment or inside my os?

from the host, we were all noobs one day, no need to apologize

zoelee4 08-27-2016 11:25 AM

ok, I don't exactly know how to find the path of gawk.

zoelee4 08-27-2016 11:28 AM

I ran
Code:

command -v gawk
and nothing showed up, does this mean that gawk is not installed, and if so, what would be the best thing to do, should I reinstall it, and if I do reinstall it do I need to reinstall anything else?

thanks

Keith Hedger 08-27-2016 11:42 AM

before you doanything else please post the op of the version script.

zoelee4 08-27-2016 11:48 AM

sorry, but I am still confused about how to run the version script.

thanks

Keith Hedger 08-27-2016 11:49 AM

http://www.linuxfromscratch.org/lfs/.../hostreqs.html


All times are GMT -5. The time now is 01:38 PM.