LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-26-2016, 05:52 PM   #1
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Rep: Reputation: Disabled
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!
 
Old 08-26-2016, 05:56 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Post the link you're using for LFS. Looks like an old book.
 
Old 08-26-2016, 07:15 PM   #3
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
link:

http://www.linuxfromscratch.org/lfs/...r06/glibc.html
 
Old 08-27-2016, 06:35 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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
 
1 members found this post helpful.
Old 08-27-2016, 10:40 AM   #5
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
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!
 
Old 08-27-2016, 10:51 AM   #6
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-27-2016, 11:18 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
ubuntu is not complient out of the box, you need to post the output of the version.sh script
 
1 members found this post helpful.
Old 08-27-2016, 11:20 AM   #8
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
sorry for being such a noob, but do I run version.sh inside the chroot environment or inside my os?
 
Old 08-27-2016, 11:22 AM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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?
 
Old 08-27-2016, 11:23 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by zoelee4 View Post
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
 
Old 08-27-2016, 11:25 AM   #11
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
ok, I don't exactly know how to find the path of gawk.
 
Old 08-27-2016, 11:28 AM   #12
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
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
 
Old 08-27-2016, 11:42 AM   #13
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
before you doanything else please post the op of the version script.
 
Old 08-27-2016, 11:48 AM   #14
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
sorry, but I am still confused about how to run the version script.

thanks
 
Old 08-27-2016, 11:49 AM   #15
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
http://www.linuxfromscratch.org/lfs/.../hostreqs.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Glibc not compiling in Chapter 6.9 corbis_demon Linux From Scratch 4 08-06-2010 08:44 AM
Yet another glibc, chapter 6.9 problem... gViscardi Linux From Scratch 4 10-25-2008 12:10 PM
glibc chapter 6.9 error jol123 Linux From Scratch 1 03-28-2007 04:03 PM
Problem with Glibc-2.3.4 chapter 6.11 adancoco Linux From Scratch 1 02-14-2005 12:04 PM
glibc-2.3.3 in chapter 6 error znif Linux From Scratch 11 06-28-2004 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration