LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 02-17-2006, 02:03 PM   #1
ozzy_linux
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Question Error during compiling 2.6.9 kernel on ubuntu 5.10


Hello
I am trying to comile the 2.6.9 on my machine running ubuntu 5.10. I have compiled kernels before on other distros and am well aware of the procedure. But here I am facing a problem which I am never come across. Below is the output after I do make menuconfig

root@cluster:/home/ozzy/project/linuxsrc/linux-2.6.9# make O=../skasbuild menuconfig
HOSTCC scripts/basic/fixdep
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:112:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.2/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:11,
from /home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:113:
/usr/lib/gcc/i486-linux-gnu/4.0.2/include/limits.h:122:61: error: limits.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:114:19: error: ctype.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:115:23: error: arpa/inet.h: No such file or directory
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'usage':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:129: warning: implicit declaration of function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:129: error: 'stderr' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:129: error: for each function it appears in.)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:130: warning: implicit declaration of function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'print_cmdline':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:135: warning: implicit declaration of function 'printf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:135: warning: incompatible implicit declaration of built-in function 'printf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: At top level:
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:138: error: 'NULL' undeclared here (not in a function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'grow_config':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:151: warning: implicit declaration of function 'realloc'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:151: warning: assignment makes pointer from integer without a cast
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:153: warning: implicit declaration of function 'perror'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:153: warning: incompatible implicit declaration of built-in function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'is_defined_config':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:169: warning: implicit declaration of function 'memcmp'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'define_config':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:182: warning: implicit declaration of function 'memcpy'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:182: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'use_config':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:201: error: 'PATH_MAX' undeclared (first use in this function)/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:209: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:215: warning: implicit declaration of function 'tolower'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:217: warning: incompatible implicit declaration of built-in function 'printf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:201: warning: unused variable 's'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: At top level:
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:220: error: syntax error before 'size_t'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:221: warning: function declaration isn't a prototype
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'parse_config_file':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:222: error: 'map' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:222: error: 'len' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:228: warning: implicit declaration of function 'ntohl'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:239: warning: implicit declaration of function 'isalnum'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'strrcmp':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:252: warning: implicit declaration of function 'strlen'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:252: warning: incompatible implicit declaration of built-in function 'strlen'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'do_config_file':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:263: error: storage size of 'st' isn't known
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:267: warning: implicit declaration of function 'open'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:267: error: 'O_RDONLY' undeclared (first use in this function)/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:269: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:269: error: 'stderr' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:271: warning: incompatible implicit declaration of built-in function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:273: warning: implicit declaration of function 'fstat'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:275: warning: implicit declaration of function 'close'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:278: warning: implicit declaration of function 'mmap'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:278: error: 'PROT_READ' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:278: error: 'MAP_PRIVATE' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:278: warning: assignment makes pointer from integer without a cast
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:287: warning: implicit declaration of function 'munmap'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:263: warning: unused variable 'st'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: At top level:
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:292: error: syntax error before 'size_t'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:293: warning: function declaration isn't a prototype
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'parse_dep_file':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:294: error: 'map' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:295: error: 'len' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:297: error: 'PATH_MAX' undeclared (first use in this function)/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:299: warning: implicit declaration of function 'strchr'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:299: warning: incompatible implicit declaration of built-in function 'strchr'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:301: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:301: error: 'stderr' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:302: warning: incompatible implicit declaration of built-in function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:304: warning: incompatible implicit declaration of built-in function 'memcpy'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:305: warning: incompatible implicit declaration of built-in function 'printf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:297: warning: unused variable 's'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'print_deps':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:334: error: storage size of 'st' isn't known
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:338: error: 'O_RDONLY' undeclared (first use in this function)/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:340: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:340: error: 'stderr' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:342: warning: incompatible implicit declaration of built-in function 'exit'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:346: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:350: error: 'PROT_READ' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:350: error: 'MAP_PRIVATE' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:350: warning: assignment makes pointer from integer without a cast
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:334: warning: unused variable 'st'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c: In function 'traps':
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:369: warning: incompatible implicit declaration of built-in function 'fprintf'
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:369: error: 'stderr' undeclared (first use in this function)
/home/ozzy/project/linuxsrc/linux-2.6.9/scripts/basic/fixdep.c:371: warning: incompatible implicit declaration of built-in function 'exit'
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make: *** [menuconfig] Error 2



and after doing make mrproper I get..

root@cluster:/home/ozzy/project/linuxsrc/linux-2.6.9# make O=../skasbuild mrproper
grep: /usr/include/bits/stat.h: No such file or directory

I checked for this error on google and the solution there was to install glibc. I checked glibc by doing apt-get and it said glibc is already the latest version. Can anyone tell me why such a thing is happening? Thanks..
 
Old 02-17-2006, 02:11 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Did you try installing the build-essential packages?
 
  


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
Error compiling kernel. Royle Debian 8 08-25-2005 03:42 PM
2.2.26 Kernel Compiling error arurank Linux - Software 2 08-06-2005 07:56 PM
Error compiling kernel 2.6.8 tmp_versions Linux - Software 14 08-29-2004 10:53 PM
error compiling kernel trutnev Red Hat 0 04-21-2004 04:51 AM
kernel compiling error draker Linux - Newbie 0 08-19-2003 01:05 AM


All times are GMT -5. The time now is 08:55 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration