Re: [opencbm-user] Errors compiling opencbm on Linux.
Brought to you by:
strik
|
From: <gr...@gm...> - 2007-10-31 20:58:38
|
Hello Spiro, > I am missing the linux-headers-2.6.20 (or similar) package. I think you meant that *me* misses the linux-headers-2.6.20 package :) > linux-source package only contains the source, but it misses the > specific headers that were generated for building your own kernel. > > On the other hand: I am missing the linux-image-2.6.20 package, too. Again me and not you :) > Did > you compile your kernel on your own, or did you use a prebuilt one? I compiled the kernel on my own. This is the content of the tree at /usr/src/linux/: c65:/usr/src# ll total 82932 drwxrwsr-x 6 root src 4096 2007-10-28 23:51 . drwxr-xr-x 13 root root 4096 2007-07-21 18:19 .. lrwxrwxrwx 1 root src 19 2007-04-20 21:25 linux -> linux-source-2.6.20 drwxr-xr-x 3 root root 4096 2007-10-28 23:44 linux-kbuild-2.6.22 drwxr-xr-x 20 root root 4096 2007-04-19 22:22 linux-source-2.6.18 -rw-r--r-- 1 root root 41376773 2007-03-26 10:38 linux-source-2.6.18.tar.bz2 drwxr-xr-x 20 root root 4096 2007-10-28 15:08 linux-source-2.6.20 -rw-r--r-- 1 root root 43425733 2007-04-15 16:48 linux-source-2.6.20.tar.bz2 drwxr-xr-x 3 root root 4096 2004-02-13 19:16 modules I compiled the kernel on July 2007 this way: after installing the package linux-source-2.6.20, I unpacked its linux-source-2.6.20.tar.bz2 into /usr/src, then I created the 'linux' symbol link to it, and after having configured the kernel i built it (and installed). Here there is the content of it: c65:/usr/src/linux# ls arch crypto init MAINTAINERS README System.map block Documentation ipc Makefile REPORTING-BUGS usr config drivers Kbuild mm scripts version.Debian COPYING fs kernel Module.symvers security vmlinux CREDITS include lib net sound Here should there be the include files: c65:/usr/src/linux/include# ls acpi asm-frv asm-m68knommu asm-sh64 config mtd video asm asm-generic asm-mips asm-sparc crypto net asm-alpha asm-h8300 asm-parisc asm-sparc64 Kbuild pcmcia asm-arm asm-i386 asm-powerpc asm-um keys rdma asm-arm26 asm-ia64 asm-ppc asm-v850 linux rxrpc asm-avr32 asm-m32r asm-s390 asm-x86_64 math-emu scsi asm-cris asm-m68k asm-sh asm-xtensa media sound c65:/usr/src/linux/include# which are about 41Mb c65:/usr/src/linux# du -hs include 41M include Now, i cannot understand why the headers file i built my kernel with are not the ones in the /usr/src/linux/include directory (which from my point of view are the headers of the kernel i compiled). Anyway, i installed the linux-header package you suggested to me: c65:/usr/src# dpkg -l | grep linux-header ii linux-headers-2.6.20-1 2.6.20-2 Common header files for Linux 2.6.20 ii linux-headers-2.6.20-1-686 2.6.20-2 Header files for Linux 2.6.20 on PPro/Celero ii linux-headers-2.6.20-1-686-bigmem 2.6.20-2 Header files for Linux 2.6.20 on PPro/Celero After having installed the package linux-headers-2.6.20-1 i still get the same error, ie: luca@c65:~/opencbm/cbm4win$ make -f LINUX/Makefile make[1]: Entering directory `/home/luca/opencbm/cbm4win/sys/linux' ln -s LINUX/Makefile Makefile ln: creating symbolic link `Makefile' to `LINUX/Makefile': File exists make[1]: [cbm.o] Error 1 (ignored) make -C here=`pwd` CBM4LINUX_KERNEL_FLAGS= SUBDIRS=`pwd` modules make: Entering an unknown directory make: *** here=/home/luca/opencbm/cbm4win/sys/linux: No such file or directory. Stop. make: Leaving an unknown directory make[1]: *** [cbm.o] Error 2 make[1]: Leaving directory `/home/luca/opencbm/cbm4win/sys/linux' make: *** [all] Error 1 Any help? Greetings, Luca |