LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2016, 06:26 AM   #1
newuser21
LQ Newbie
 
Registered: Jun 2016
Posts: 9

Rep: Reputation: Disabled
6.9. Glibc-2.23 / 6.9.1. Installation of Glibc


hi,

I ran into a problem. I got this far and I think I did everything well, but here I got this error while I tried to prepare glibc for compilation.

I applied the patch which went fine and obviously created the directory entered into the directory.

I ran the /configure and the error I got was this:

/build# $LFS/sources/glibc-2.23/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... no
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 sysdeps/x86/fpu 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... /sources/glibc-2.23/scripts/install-sh -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... v. ?.??, bad
checking for sed... sed
checking version of sed... 4.2.2, ok
checking for gawk... gawk
checking version of gawk... 4.1.3, ok
checking if gcc is sufficient to build libc... yes
checking for nm... nm
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking for bash... /bin/bash
checking for perl... /usr/bin/perl
/sources/glibc-2.23/configure: line 5162: /usr/bin/perl: No such file or directory
checking for install-info... /tools/bin/install-info
checking for bison... no
checking for .set assembler directive... yes
checking linker support for protected data symbol... yes
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... yes
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for linker that supports -z execstack... no
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking for GLOB_DAT reloc... yes
checking linker output format... elf64-x86-64
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fstack-protector-strong... yes
checking whether cc puts quotes around section names... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for compiler option to disable generation of FMA instructions... -ffp-contract=off
checking if gcc accepts -fno-tree-loop-distribute-patterns with __attribute__ ((__optimize__))... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for _FORTIFY_SOURCE predefine... no
checking whether gcc implicitly enables -fstack-protector... configure: error: unexpected symbols in test:
root:/sources/glibc-2.23/build# make
make: *** No targets specified and no makefile found. Stop.
< --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... no
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 sysdeps/x86/fpu 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... /sources/glibc-2.23/scripts/install-sh -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... v. ?.??, bad
checking for sed... sed
checking version of sed... 4.2.2, ok
checking for gawk... gawk
checking version of gawk... 4.1.3, ok
checking if gcc is sufficient to build libc... yes
checking for nm... nm
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking for bash... /bin/bash
checking for perl... /usr/bin/perl
/sources/glibc-2.23/configure: line 5162: /usr/bin/perl: No such file or directory
checking for install-info... /tools/bin/install-info
checking for bison... no
checking for .set assembler directive... yes
checking linker support for protected data symbol... yes
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... yes
checking whether to use .ctors/.dtors header and trailer... no
checking for libunwind-support in compiler... yes
checking whether --noexecstack is desirable for .S files... yes
checking for -z combreloc... yes
checking for linker that supports -z execstack... no
checking for -fpie... yes
checking for --hash-style option... yes
checking for sufficient default -shared layout... no
checking for GLOB_DAT reloc... yes
checking linker output format... elf64-x86-64
checking for -fno-toplevel-reorder -fno-section-anchors... yes
checking for -fstack-protector... yes
checking for -fstack-protector-strong... yes
checking whether cc puts quotes around section names... yes
checking for __builtin_memset... no
checking for redirection of built-in functions... yes
checking for compiler option to disable generation of FMA instructions... -ffp-contract=off
checking if gcc accepts -fno-tree-loop-distribute-patterns with __attribute__ ((__optimize__))... yes
checking for libgd... no
checking for is_selinux_enabled in -lselinux... no
checking for _FORTIFY_SOURCE predefine... no
checking whether gcc implicitly enables -fstack-protector... configure: error: unexpected symbols in test:

and obviously it stopped.

does anybody have any idea what went wrong, what I missed, etc.?

I tried to decompile again the glibc and creating a new build directory but it did not help of course.

thanks in advance!
 
Old 06-16-2016, 06:54 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
looks like perl is missing and makeinfo, check perl was installed in chap 5 properly, please also post your version.sh script output
 
Old 06-16-2016, 07:10 AM   #3
newuser21
LQ Newbie
 
Registered: Jun 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
looks like perl is missing and makeinfo, check perl was installed in chap 5 properly, please also post your version.sh script output
I have perl installed. I installed everything. I checked and I have the perl under usr/bin/ 5.22.1
 
Old 06-16-2016, 07:13 AM   #4
newuser21
LQ Newbie
 
Registered: Jun 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
I can see that the system cannot see it. but I think my question would be is it ok to reinstall perl as in chapter 5 now and carry on with the above step?
 
Old 06-16-2016, 08:18 AM   #5
newuser21
LQ Newbie
 
Registered: Jun 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
looks like perl is missing and makeinfo, check perl was installed in chap 5 properly, please also post your version.sh script output
i'll just start to build it again. it is only for learning the Linux system anyway. :-) thanks for the help anyway. I think I know what went wrong. I had trouble installing perl but I managed to install somehow, and I have the required files I am sure of it but could be some privilege issue. I look into it. the good thing that anything else went great so far. a little glitch. but what would be the computer world without glitches, right? :-)

thanks again!
 
Old 06-16-2016, 08:39 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,615
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Chapter 6 requires a symbolic link in /usr/bin to /tools/bin/perl, because some configure scripts have that location wired in. You'll find it under the section on creating essential directories and links.
 
Old 06-16-2016, 08:46 AM   #7
newuser21
LQ Newbie
 
Registered: Jun 2016
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Chapter 6 requires a symbolic link in /usr/bin to /tools/bin/perl, because some configure scripts have that location wired in. You'll find it under the section on creating essential directories and links.
cheers! I keep it in mind.
 
  


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
LFS 7.3: 6.9. Glibc-2.17 failed glibc testing after 2 hours running quicktime2004 Linux From Scratch 5 06-12-2013 02:48 AM
Upcoming pain with glibc-2.14 and Linux-PAM: RPC build supt. is removed from glibc! JoelPB Linux From Scratch 6 12-13-2011 06:31 AM
problem installing glibc-2.3.2-4.80.i686, glibc-common-2.3.2-4.80.8.i386.rpm martianpackets Red Hat 8 05-01-2009 03:22 PM
glibc-compiling loves to make errors? ok, let me post mine here: glibc 2.9 me-$-on Linux From Scratch 7 04-11-2009 06:22 PM
Replacing glibc using linuxthreads for glibc using nptl (native positx thread library CestusGW Linux From Scratch 4 01-20-2005 07:26 AM

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

All times are GMT -5. The time now is 07:18 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