LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-14-2004, 12:17 AM   #1
genixpro
LQ Newbie
 
Registered: Sep 2004
Posts: 22

Rep: Reputation: 15
make-kpkg not working, so no kernel includes


im trying to run make-kpkg. Im trying to make a correct source directory so i can recompile the kernel with the ati linux drivers. So far its not working. I cant really tell whats going on. Since i dont have a long enoguh space for the entire thing, i will show where thigns go wrong.
I seem to need this to work, to get the correct "kernel includes"


*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.

make[1]: Leaving directory `/usr/src/kernel-source-2.4.26'
/usr/bin/make -f ./debian/rules dummy_do_dep
make[1]: Entering directory `/usr/src/kernel-source-2.4.26'
/usr/bin/make EXTRAVERSION=-1.686 \
ARCH=i386 dep
make[2]: Entering directory `/usr/src/kernel-source-2.4.26'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/ mkdep.c
scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:122:75: limits.h: No such fil e or directory
scripts/mkdep.c:36:19: stdio.h: No such file or directory
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
scripts/mkdep.c:69: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `do_depname':
scripts/mkdep.c:78: warning: implicit declaration of function `printf'
scripts/mkdep.c: In function `grow_config':
scripts/mkdep.c:93: warning: implicit declaration of function `realloc'
scripts/mkdep.c:93: warning: assignment makes pointer from integer without a cas t
scripts/mkdep.c:94: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:94: error: (Each undeclared identifier is reported only once
scripts/mkdep.c:94: error: for each function it appears in.)
scripts/mkdep.c:95: warning: implicit declaration of function `perror'
scripts/mkdep.c:95: warning: implicit declaration of function `exit'
scripts/mkdep.c: In function `is_defined_config':
scripts/mkdep.c:111: warning: implicit declaration of function `memcmp'
scripts/mkdep.c: In function `define_config':
scripts/mkdep.c:126: warning: implicit declaration of function `memcpy'
scripts/mkdep.c: At top level:
scripts/mkdep.c:148: error: `NULL' undeclared here (not in a function)
scripts/mkdep.c: In function `grow_precious':
scripts/mkdep.c:163: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:164: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c: In function `define_precious':
scripts/mkdep.c:176: warning: implicit declaration of function `strlen'
scripts/mkdep.c: In function `handle_include':
scripts/mkdep.c:204: warning: implicit declaration of function `access'
scripts/mkdep.c:204: error: `F_OK' undeclared (first use in this function)
scripts/mkdep.c: In function `add_path':
scripts/mkdep.c:221: error: `PATH_MAX' undeclared (first use in this function)
scripts/mkdep.c:224: warning: implicit declaration of function `strcmp'
scripts/mkdep.c:225: warning: implicit declaration of function `realpath'
scripts/mkdep.c:225: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:227: warning: implicit declaration of function `fprintf'
scripts/mkdep.c:227: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:235: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:243: warning: implicit declaration of function `malloc'
scripts/mkdep.c:243: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:248: warning: implicit declaration of function `strcpy'
scripts/mkdep.c:221: warning: unused variable `resolved_path'
scripts/mkdep.c: In function `use_config':
scripts/mkdep.c:271: warning: implicit declaration of function `isupper'
scripts/mkdep.c:271: warning: implicit declaration of function `tolower'
scripts/mkdep.c: In function `state_machine':
scripts/mkdep.c:493: warning: implicit declaration of function `isalnum'
scripts/mkdep.c: In function `do_depend':
scripts/mkdep.c:526: warning: implicit declaration of function `getpagesize'
scripts/mkdep.c:528: error: storage size of `st' isn't known
scripts/mkdep.c:531: warning: implicit declaration of function `open'
scripts/mkdep.c:531: error: `O_RDONLY' undeclared (first use in this function)
scripts/mkdep.c:537: warning: implicit declaration of function `fstat'
scripts/mkdep.c:539: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:540: warning: implicit declaration of function `close'
scripts/mkdep.c:546: warning: implicit declaration of function `mmap'
scripts/mkdep.c:546: error: `NULL' undeclared (first use in this function)
scripts/mkdep.c:546: error: `PROT_READ' undeclared (first use in this function)
scripts/mkdep.c:546: error: `MAP_PRIVATE' undeclared (first use in this function )
scripts/mkdep.c:546: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:562: warning: implicit declaration of function `puts'
scripts/mkdep.c:567: warning: implicit declaration of function `munmap'
scripts/mkdep.c:528: warning: unused variable `st'
scripts/mkdep.c: In function `main':
scripts/mkdep.c:581: warning: implicit declaration of function `getenv'
scripts/mkdep.c:581: warning: assignment makes pointer from integer without a ca st
scripts/mkdep.c:583: warning: implicit declaration of function `fputs'
scripts/mkdep.c:584: error: `stderr' undeclared (first use in this function)
scripts/mkdep.c:591: warning: implicit declaration of function `strncmp'
make[2]: *** [scripts/mkdep] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.4.26'
make[1]: *** [dummy_do_dep] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.4.26'
make: *** [stamp-kernel-configure] Error 2
 
Old 09-14-2004, 12:54 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Looks like you do not have libc6-dev and linux-kernel-headers installed. Also have you heard of apt-file you can use it to search for missing files or list files in packages that are not installed and works similar to apt-get in that you use apt-file update and then apt-file search file_missing for example from your output above.

Code:
[HappyTux:/home/stephen]# apt-file search sys/mman.h
dietlibc-dev: usr/include/diet/sys/mman.h
dietlibc-dev: usr/include/diet/sys/mman.h
elks-libc: usr/lib/bcc/include/sys/mman.h
elks-libc: usr/lib/bcc/include/sys/mman.h
libc5-altdev: usr/i486-linuxlibc1/include/sys/mman.h
libc5-altdev: usr/i486-linuxlibc1/include/sys/mman.h
libc6-dev: usr/include/sys/mman.h
libc6-dev: usr/include/sys/mman.h
libuclibc-dev: usr/i386-linux-uclibc/include/sys/mman.h
libuclibc-dev: usr/i386-uclibc-linux/include/sys/mman.h
lsbdev: var/lib/lsbdev/lsb_header/All/sys/mman.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA32/sys/mman.h.defs
lsbdev: var/lib/lsbdev/lsb_header/IA64/sys/mman.h.defs
lsbdev: var/lib/lsbdev/lsb_header/sys/mman.h
oskit: usr/include/oskit/c/sys/mman.h
oskit: usr/include/oskit/c/sys/mman.h
oskit: usr/include/oskit/freebsd/sys/mman.h
oskit: usr/include/oskit/freebsd/sys/mman.h
rtlinux: usr/src/rtlinux-3.1pre3/include/posix/sys/mman.h
rtlinux: usr/src/rtlinux-3.1pre3/include/posix/sys/mman.h
tendra: usr/lib/TenDRA/lib/include/svid3.api/sys/mman.h
tendra: usr/lib/TenDRA/lib/include/svid3.api/sys/mman.h
tendra: usr/lib/TenDRA/lib/include/unix95.api/sys/mman.h
tendra: usr/lib/TenDRA/lib/include/unix95.api/sys/mman.h
BTW 185.

Last edited by HappyTux; 09-14-2004 at 12:57 AM.
 
Old 09-14-2004, 06:40 PM   #3
genixpro
LQ Newbie
 
Registered: Sep 2004
Posts: 22

Original Poster
Rep: Reputation: 15
thx happy tux

yo happy tux. It seems to ahve worked, about the libc6. thanks. I see your from nova scotia. My favorite place in the world. Greenwood, ever heard of it?
 
Old 09-14-2004, 07:56 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 64
Re: thx happy tux

Quote:
Originally posted by genixpro
yo happy tux. It seems to ahve worked, about the libc6. thanks. I see your from nova scotia. My favorite place in the world. Greenwood, ever heard of it?
Your welcome and certainly have heard of Greenwood my cousin was stationed at the airbase there for about ten years working on the planes.
 
  


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
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 10:11 AM
build kernel with make-kpkg wrong processor type stockerz Debian 4 02-04-2005 12:14 AM
Kernel make-kpkg error TaNeK Debian 7 01-09-2005 01:24 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 04:58 AM
Need some advice on upgrading kernel via make-kpkg davidas Debian 4 04-07-2004 08:02 PM


All times are GMT -5. The time now is 12:26 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