LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-06-2002, 01:42 AM   #1
tanch00
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:
glibc-2.0.6.tar.gz
glibc-crypt-2.0.6.tar.gz
glibc-localedata-2.0.6.tar.gz
glibc-linuxthreada-2.0.6.tar.gz
glibc-2.0.6-mips.patch

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
--enable-add-ons=crypt,linuxthreads,localedata
--enable-profile

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, 02:33 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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 www.linuxfromscratch.org explains more about this.
 
  


Reply


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


All times are GMT -5. The time now is 12:05 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration