LinuxQuestions.org
Review your favorite Linux distribution.
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 12-21-2011, 09:44 AM   #1
AbuLaila
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Kernel Compilation Help


Hello.
Im new to linux and i need help in the following point:
Im running ubuntu 8.04 kernel 2.6.24-16. and I need to compile the kernel for certain reasons.
I downloaded the gzipped kernel file linux-2.6.39.1. is it ok to make the configure the kernel with this different version? if ok ...im getting the following errors when executing the make menuconfig order:


HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:106:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:107:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:109:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:110:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:111:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:113:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/syslimits.h:7,
from /usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:11,
from scripts/basic/fixdep.c:114:
/usr/lib/gcc/i486-linux-gnu/4.2.3/include/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:115:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:116: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:138: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:138: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:170: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:181: warning: implicit declaration of function ‘malloc’
scripts/basic/fixdep.c:181: warning: incompatible implicit declaration of built-in function ‘malloc’
scripts/basic/fixdep.c:184: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:185: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:187: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘clear_config’:
scripts/basic/fixdep.c:205: warning: implicit declaration of function ‘free’
scripts/basic/fixdep.c:207: error: ‘NULL’ undeclared (first use in this function)
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:224: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:230: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:231: warning: implicit declaration of function ‘putchar’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:236: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:238: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:244: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:255: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:272: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:272: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:283: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:287: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:287: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:289: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:291: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:293: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:295: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:298: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:298: error: ‘NULL’ undeclared (first use in this function)
scripts/basic/fixdep.c:298: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:298: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:298: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:305: error: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:307: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:283: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:317: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:320: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:322: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:325: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:325: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:327: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:327: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:328: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:330: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:356: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:359: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:365: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:322: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:371: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:375: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:377: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:377: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:379: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:382: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:384: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:387: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:391: error: ‘NULL’ undeclared (first use in this function)
scripts/basic/fixdep.c:391: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:391: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:391: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:398: error: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:371: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:411: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:411: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:413: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2


any help? thank you in advance
 
Old 12-21-2011, 11:09 AM   #2
Mr. Bill
Member
 
Registered: Mar 2011
Location: Maryland, USA
Distribution: Xubuntu 14.04 - 64
Posts: 185

Rep: Reputation: 14
FWIW, 8.04 is outdated- you can no longer install software from the repos or receive security updates. You need to upgrade to at least 10.04 which will also give you a newer kernel and updated device drivers.
 
  


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
Module compilation needs kernel header files or kernel sources? baxzius Linux - Newbie 2 08-04-2011 05:12 PM
NO /usr/src/kernel directory & Kernel Compilation PankajDS Linux - Kernel 5 01-24-2008 02:48 AM
understanding kernel .config file (for kernel compilation) sudhirkumar Linux - General 2 09-07-2007 07:55 PM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 11:53 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 08:33 AM


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

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