LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-24-2005, 08:18 PM   #1
damoncf
LQ Newbie
 
Registered: Sep 2003
Location: OH
Distribution: Knoppix; Mandriva; Gentoo; Debian; Playing with some new distro always!
Posts: 27

Rep: Reputation: 15
configure kernel 2.6.12.5


I have attempted to edit the configuration of the new kernel but keep getting the following errors
Code:
debian-sunroom:/etc/apt# apt-get update
Hit ftp://ftp.debian.org stable Release.gpg
Hit ftp://ftp.debian.org stable Release
Get:1 ftp://ftp.debian.org stable/main Packages
Ign ftp://ftp.debian.org stable/main Packages
Get:2 ftp://ftp.debian.org stable/main Sources
Ign ftp://ftp.debian.org stable/main Sources
Hit ftp://ftp.debian.org stable/main Packages
Hit ftp://ftp.debian.org stable/main Sources
Reading package lists... Done
debian-sunroom:/etc/apt# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian-sunroom:/etc/apt# cd /usr/src
debian-sunroom:/usr/src# ls
kernel-source-2.6.8.tar.bz2  linux  linux-2.6.12.5  linux-2.6.12.5.tar.bz2
debian-sunroom:/usr/src# cd linux
debian-sunroom:/usr/src/linux# make xconfig
  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:245: warning: pointer targets in passing argument 1 of 'use_config' differ in signedness
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:299: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness
scripts/basic/fixdep.c:299: warning: pointer targets in assignment differ in signedness
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
The Code starts with my updateing my system. I am on testing currently.

Any and all help will be greatly apreaciated.
Damon
 
Old 08-25-2005, 12:44 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Looks like you need to install libc6-dev and have you heard of the apt-file package it allows you you to search for these missing files in packages that you have not installed. It is like apt-get in that you use apt-file update to update its database then use apt-file search missing_file to find the package you need.


Code:
HappyTux:/home/stephen# apt-file search sys/types.h
cmix: usr/share/cmix/shadow/sys/types.h
dietlibc-dev: usr/include/diet/sys/types.h
ecos: usr/src/ecos/packages/isoinfra/v2_0/include/sys/types.h
libc6-dev: usr/include/sys/types.h
mingw32-runtime: usr/i586-mingw32msvc/include/sys/types.h
pnetc: usr/share/cscc/include/sys/types.h


HappyTux:/home/stephen# apt-file search include/limits.h
ecos: usr/src/ecos/packages/compat/posix/v2_0/include/limits.h
ecos: usr/src/ecos/packages/io/fileio/v2_0/include/limits.h
ecos: usr/src/ecos/packages/isoinfra/v2_0/include/limits.h
fixincludes: usr/lib/gcc-lib/x86_64-linux/3.3.5/install-tools/include/limits.h
gcc-3.3: usr/lib/gcc-lib/x86_64-linux/3.3.5/include/limits.h
gcc-3.4: usr/lib/gcc/x86_64-linux/3.4.4/include/limits.h
gcc-avr: usr/lib/gcc/avr/3.4.3/include/limits.h
gcc-avr: usr/lib/gcc/avr/3.4.3/install-tools/include/limits.h
libc6-dev: usr/include/limits.h
mingw32: usr/lib/gcc/i586-mingw32msvc/3.4.2/include/limits.h
mingw32: usr/lib/gcc/i586-mingw32msvc/3.4.2/install-tools/include/limits.h
mingw32-runtime: usr/i586-mingw32msvc/include/limits.h
pnetc: usr/share/cscc/include/limits.h
sdcc-libraries: usr/share/sdcc/include/limits.h
While you are at it you may want to install the build-essential meta package as well. It will install a few things you will probably need/want to have.

Edit: While I am at it I notice you are root when compiling the kernel you should install fakeroot and use that as normal user to compile your kernel (fakeroot make-kpkg kernel_image .....). For this to work you should adduser username src so you are a member of the src group then logout and back in for the change to take effect.

Last edited by HappyTux; 08-25-2005 at 12:48 PM.
 
  


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
1 GB RAM - How To Configure The Kernel AFI_Flame Linux - General 4 07-04-2005 10:43 PM
How to configure Kernel Source Astrojax Linux - Newbie 4 08-26-2004 09:54 AM
kernel configure devit Slackware 4 03-10-2004 01:42 PM
How do I configure Kernel Lordendu Linux - Newbie 1 09-25-2003 09:18 AM
Can I use the configure file from the last kernel on the new kernel? Pcghost Linux - General 6 07-15-2003 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:29 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
Open Source Consulting | Domain Registration