LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-13-2009, 04:35 PM   #1
cscrieciu0
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: Disabled
'Program Too Old' Error When Installing glibc 2.9


Hi,
I'm trying to install glibc 2.9 using the instructions in the package but i get:
Code:
c@c-laptop:~/U-Boot/glibc-build$ sudo ../glibc-2.9/configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
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 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 for ranlib... ranlib
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20, bad
checking for ld... ld
checking version of ld... 2.20, bad
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.4.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
Now here is what I have so far:
Code:
c@c-laptop:~/U-Boot/glibc-build$ which ld
/usr/local/bin/ld
cristian@cristian-laptop:~/U-Boot/glibc-build$ which as
/usr/local/bin/as
cristian@cristian-laptop:~/U-Boot/glibc-build$ ld -v
GNU ld (GNU Binutils) 2.20
cristian@cristian-laptop:~/U-Boot/glibc-build$ as -v
GNU assembler version 2.20 (i686-pc-linux-gnu) using BFD version (GNU Binutils) 2.20
Furthermore, my env vars contain PATH as follows:
Code:
c@c-laptop:~/U-Boot/glibc-build$ env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
These are the latest versions of the software from: hxxp://ftp.gnu.org/gnu/. I have also tried to put an older version of glibc in the hopes that my 'old' ld and as will be accepted but it was a no go (i tried 2.7 and 2.8).

I'll also state that I am running:
Code:
c@c-laptop:~/U-Boot/glibc-build$ uname -a
Linux c-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
, which is actually:
Code:
c@c-laptop:~/U-Boot/glibc-build$ cat /etc/issue
Ubuntu 9.10 \n \l
(aka Karmic Koala with all updates applied).

What am I doing wrong?? I'm stuck!

Can anyone throw any ideas please...

BR,
/C
 
Old 11-14-2009, 12:47 AM   #2
everest40
Member
 
Registered: Jul 2008
Distribution: Ubuntu $LATESTVERSION
Posts: 168

Rep: Reputation: 68
How come you're trying to install glibc version 2.9 when 2.10 is available in ubuntu's repositories? For some reason Ubuntu calls it libc6 instead of glibc.
 
Old 11-14-2009, 12:52 AM   #3
everest40
Member
 
Registered: Jul 2008
Distribution: Ubuntu $LATESTVERSION
Posts: 168

Rep: Reputation: 68
Also, I'd bet that your programs are actually too new for glibc 2.9. Sometimes installers will only look for a particular version of a program, and any version that is not the same as that is reported as being too old.
 
Old 11-14-2009, 02:48 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

One thing is sure, you can't mix versions not fitting together.

Either it is for U-Boot / Embedded / Cross compiling or
Linux From Scratch.

Suggest : Follow the LFS Book strictly
http://www.linuxfromscratch.org/lfs/view/6.5/

or even better CLFS , " Cross Linux From Scratch ",
if you are cross building : http://trac.cross-lfs.org/
http://www.linuxfromscratch.org/news.html

The binutils you have = version 2.20 is too new for glibc-2.9 .
Current stable binutils is 2.19.51. Some older ones : more stable.

About cross tools : The recommended / supported / maintained one
is crosstools-ng : http://ymorin.is-a-geek.org/dokuwiki/projects/crosstool
( Updated about two weeks ago.)
.....

Last edited by knudfl; 11-14-2009 at 02:56 PM.
 
Old 02-01-2010, 02:55 PM   #5
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
I can't build glibc either in LFS

Did you ever figure this out? I have the same exact problem.



Quote:
Originally Posted by cscrieciu0 View Post
Hi,
I'm trying to install glibc 2.9 using the instructions in the package but i get:
Code:
c@c-laptop:~/U-Boot/glibc-build$ sudo ../glibc-2.9/configure 
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
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 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 for ranlib... ranlib
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20, bad
checking for ld... ld
checking version of ld... 2.20, bad
checking for pwd... /bin/pwd
checking for gcc... gcc
checking version of gcc... 4.4.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.17, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.13, ok
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
Now here is what I have so far:
Code:
c@c-laptop:~/U-Boot/glibc-build$ which ld
/usr/local/bin/ld
cristian@cristian-laptop:~/U-Boot/glibc-build$ which as
/usr/local/bin/as
cristian@cristian-laptop:~/U-Boot/glibc-build$ ld -v
GNU ld (GNU Binutils) 2.20
cristian@cristian-laptop:~/U-Boot/glibc-build$ as -v
GNU assembler version 2.20 (i686-pc-linux-gnu) using BFD version (GNU Binutils) 2.20
Furthermore, my env vars contain PATH as follows:
Code:
c@c-laptop:~/U-Boot/glibc-build$ env | grep PATH
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
These are the latest versions of the software from: hxxp://ftp.gnu.org/gnu/. I have also tried to put an older version of glibc in the hopes that my 'old' ld and as will be accepted but it was a no go (i tried 2.7 and 2.8).

I'll also state that I am running:
Code:
c@c-laptop:~/U-Boot/glibc-build$ uname -a
Linux c-laptop 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
, which is actually:
Code:
c@c-laptop:~/U-Boot/glibc-build$ cat /etc/issue
Ubuntu 9.10 \n \l
(aka Karmic Koala with all updates applied).

What am I doing wrong?? I'm stuck!

Can anyone throw any ideas please...

BR,
/C
 
Old 05-06-2010, 08:49 AM   #6
tcicone
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 1
I had this problem, with using binutils-2.20.1. To get past it, I edited the configure script for glibc, and changed these lines:

case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2.1[3-9]*)
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2.1[3-9]*)
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

to this:

case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2.2[0-9]*)
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

case $ac_prog_version in
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
2.2[0-9]*)
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
1 members found this post helpful.
Old 05-06-2010, 11:55 AM   #7
AlphaBravo
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Why are you trying to install glibc 2.9? You should use either 2.10 or 2.11. You should use LFS 6.5+
 
Old 10-16-2010, 07:54 AM   #8
Ramón Frutos Sánchez
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Problem editting configure file

I had exactly the same problem and I've tryed your workaround editting the file as you say, but the problem is that when I try to run again
sh demo-powerpc-750.sh it overwrites my configure file, How have you overcome this problem?
 
Old 02-02-2011, 10:26 AM   #9
TimKouters
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
Alter the file configure.in instead of configure.
This way the new settings will be kept when rerunning ./configure.

Quote:
Originally Posted by Ramón Frutos Sánchez View Post
I had exactly the same problem and I've tryed your workaround editting the file as you say, but the problem is that when I try to run again
sh demo-powerpc-750.sh it overwrites my configure file, How have you overcome this problem?
 
  


Reply

Tags
lfs



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
Error when installing glibc ReyJavikVI Linux From Scratch 8 06-20-2009 01:11 PM
error installing glibc gaur.ankit2007@gmail.com Linux - Newbie 3 01-29-2009 12:18 AM
installing Glibc-2.4 Error a.dehqan Linux - Software 6 06-17-2008 10:55 AM
Error during installing glibc-2.2.5 giri616 Linux From Scratch 3 11-09-2006 11:34 PM
Error running a C program, glibc detected *** free(): invalid next size (normal) mesh2005 Programming 3 11-08-2006 01:52 PM

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

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