Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-06-2002, 02:42 AM   #1
LQ Newbie
Registered: Nov 2001
Location: Singapore
Posts: 4

Rep: Reputation: 0
GNU libc installation to setup cross compiler env - kernel header file TOO OLD !!

HI, I am trying to setup my cross compiler environment and have reached the last step of installing GNU libc.

The following files are used:

Installation procedure as follows:
gzip -cd glibc-2.0.6.tar.gz | tar xf -
cd glibc-2.0.6
gzip -cd glibc-crypt-2.0.6.tar.gz | tar xf -
gzip -cd glibc-localedata-2.0.6.tar.gz | tar xf -
gzip -cd glibc-linuxthreads-2.0.6.tar.gz | tar xf -
patch -p1 < ../glibc-2.0.6-mips.patch
mkdir build
cd build

Single line Command run:
CC=mipsel-linux-gcc BUILD_CC=gcc AR=mipsel-linux-ar RANLIB=mipsel-linux-ranlib
../configure --prefix=/usr --host=mipsel

At this point, the following error message was shown:
checking installed Linux Kernel header files.. TOO OLD!
configure:error:GNU Libc requires kernel header files from Linux2.0.10 or later to be installed before configuring. The kernel header files are found usually in /usr/include/asm and /usr/include.linux; make sure these directories use files from Linux2.0.10 or later. This check uses <linux/version.h>, so make sure that file was built correctly when installing the kernel header files.

What's the causes of this error to occur since my kernel version is 2.2 using kernelversion command? Or is there a bug? What other method can I use to install glibc which is to compile an application for TX39 target board.

Thanks !!
Old 02-06-2002, 03:33 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well depending on which distribution you use the kernel headers are either copied in /usr/include/linux or that's a symbolic link to /usr/src/linux/include. These headers should be the ones belonging to the original kernel when the system was installed. Usually when you compile a new kernel you should leave the old headers in place, because other programs where compiled using those headers. One of the main ones being glibc. If you are going to be replacing glibc then you could probably just replace the old headers with the new ones from the newer kernel you are running.

The book from explains more about this.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cross compiler alpha_foobar Linux - General 0 08-17-2005 07:15 PM
GNU based c++ cross compiler unable to link c library k_taid Programming 1 06-29-2005 10:38 AM
Kernel compilation error using cross compiler bond_7942 Linux - Software 0 02-02-2005 01:18 AM
lufs installation and kernel header saurya_s Linux - Software 0 02-06-2004 09:10 AM
GNU libc libraries error Kaotica Linux - Software 1 04-16-2003 05:56 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 PM.

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