LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2006, 06:22 PM   #1
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
strange errors while compiling kernel...


hellow

does someone knows whats going wrong over here? This is my first kernel compilations and it won't work. System is a ubuntu 5.10 with 2.6.12 kernel. gcc is installed... The one i tried to compile is a 2.6.15.6. This is the output:

root@ubuntu:/home/freddy/Desktop/linux-2.6.15.6# make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:105:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:106:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:108:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:109:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: stdlib.h: No such file or directory
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 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
scripts/basic/fixdep.c:114:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:115:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function ‘usage’:
scripts/basic/fixdep.c:129: warning: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:129: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:129: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:129: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:129: error: for each function it appears in.)
scripts/basic/fixdep.c:130: warning: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:130: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:135: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:135: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:138: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:151: warning: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:151: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:153: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:153: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:169: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:182: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:182: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:201: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:209: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:215: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:217: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:201: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:220: error: syntax error before ‘size_t’
scripts/basic/fixdep.c:221: warning: function declaration isn’t a prototype
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:222: error: ‘map’ undeclared (first use in this function)
scripts/basic/fixdep.c:222: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:228: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:239: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:252: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:252: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:263: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:267: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:267: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:269: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:269: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:271: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:273: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:275: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:278: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:278: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:287: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:263: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:292: error: syntax error before ‘size_t’
scripts/basic/fixdep.c:293: warning: function declaration isn’t a prototype
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:294: error: ‘map’ undeclared (first use in this function)
scripts/basic/fixdep.c:295: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:297: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:299: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:299: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:301: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:301: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:302: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:304: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:305: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:297: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:334: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:338: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:340: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:340: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:342: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:346: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:350: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:350: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:350: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:334: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:369: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:369: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:371: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
 
Old 03-17-2006, 04:17 AM   #2
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
problem solved!

install libc6-dev and everything works fine.
 
  


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
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 01:15 AM
Compiling modules suddenly gets strange errors... weav Linux - Software 1 12-19-2005 03:04 PM
Strange errors when compiling GTK progs??? sharma_deepak83 Programming 1 11-21-2004 01:44 AM
Strange problems after compiling kernel (SuSE 9.1) Mikessu Linux - General 0 05-22-2004 05:19 PM
Strange network problem after compiling new kernel.. katana Linux - General 1 12-19-2002 10:51 AM


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