Package: kernel-package
Version: 11.001-0.1
Followup-For: Bug #461228
I have very similar issue when using module-assistant to compile nvidia module
against headers packaged by make-kpkg.
The procedure I used is the following:
1) get linux-2.6.24.tar.bz2 from kernel.org
2) configure the kernel to include ieee1394 (support for firewire camcorder)
instead of useless firewire (this is the reason to abandon the debian stock
kernel)
I also changed the processor type to Core2 instead of generic i686,
specified a few other things specific to my laptop architecture.
(I can attach the config if needed).
3) compile:
make-kpkg --rootcmd fakeroot --append-to-version -d630 linux_image
linux_headers linux_doc
4) cleanup:
rm -Rf linux-2.6.24
5) install:
dpkg -i linux-headers-2.6.24-d630_2.6.24-d630-10.00.Custom_i386.deb
linux-image-2.6.24-d630_2.6.24-d630-10.00.Custom_i386.deb
6) use module-assistant to build nvidia:
module-assistant -l 2.6.24-d630 a-i nvidia
the last step gives the following errors:
## Main Make ##
IGNORE_CC_MISMATCH=1 CC="gcc-4.2" /usr/bin/make -C
/usr/src/modules/nvidia-kernel/nv -f Makefile SYSSRC=/usr/sr
c/linux KBUILD_PARAMS="-C /usr/src/linux
SUBDIRS=/usr/src/modules/nvidia-kernel/nv" module;
make[2]: Entering directory `/usr/src/modules/nvidia-kernel/nv'
NVIDIA: calling KBUILD...
make CC=gcc-4.2 -C /usr/src/linux SUBDIRS=/usr/src/modules/nvidia-kernel/nv
modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.24-d630'
/usr/src/linux-headers-2.6.24-d630/arch/x86/Makefile:15:
/usr/src/linux-headers-2.6.24-d630/arch/x86/Makefile_32: No such file or
directory
CC [M] /usr/src/modules/nvidia-kernel/nv/nv.o
In file included from include/linux/list.h:8,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:53,
from include/linux/utsname.h:35,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in
arithmetic
In file included from include/asm/mpspec.h:2,
from include/asm/smp_32.h:15,
from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/linux/sched.h:68,
from include/linux/utsname.h:35,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/mpspec_32.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from include/asm/mpspec.h:2,
from include/asm/smp_32.h:15,
from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/linux/sched.h:68,
from include/linux/utsname.h:35,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/mpspec_32.h: At top level:
include/asm/mpspec_32.h:8: error: ‘MAX_MP_BUSSES’ undeclared here (not in a
function)
include/asm/mpspec_32.h:22: error: ‘MAX_IRQ_SOURCES’ undeclared here (not in a
function)
In file included from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/linux/sched.h:68,
from include/linux/utsname.h:35,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/smp_32.h:157:26: error: mach_apicdef.h: No such file or directory
In file included from include/asm/smp.h:2,
from include/linux/smp.h:19,
from include/linux/sched.h:68,
from include/linux/utsname.h:35,
from /usr/src/modules/nvidia-kernel/nv/nv-linux.h:19,
from /usr/src/modules/nvidia-kernel/nv/nv.c:14:
include/asm/smp_32.h: In function ‘hard_smp_processor_id’:
include/asm/smp_32.h:161: error: implicit declaration of function ‘GET_APIC_ID’
....
and so on.
Interestingly, under very same setup, if I ommit the step 4 (cleanup
of linux sources), then dpkg creates a link to the sources instead
of messed up headers and everything compiles and installs fine.
So my guess is that make-kpkg omits some directory that is crucual
for compiling modules.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (50, 'unstable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-d630 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages kernel-package depends on:
ii dpkg 1.14.16.6 package maintenance system for Deb
ii dpkg-dev 1.14.16.6 package building tools for Debian
ii file 4.23-1 Determines file type using "magic"
ii gcc [c-compiler] 4:4.2.2-2 The GNU C compiler
ii gcc-4.1 [c-compiler] 4.1.2-18 The GNU C compiler
ii gcc-4.2 [c-compiler] 4.2.2-7 The GNU C compiler
ii gettext 0.17-2 GNU Internationalization utilities
ii make 3.81-3 The GNU version of the "make" util
ii perl 5.8.8-12 Larry Wall's Practical Extraction
ii po-debconf 1.0.11 manage translated Debconf template
Versions of packages kernel-package recommends:
ii bzip2 1.0.4-2 high-quality block-sorting file co
ii libc6-dev [libc-dev] 2.7-6 GNU C Library: Development Librari
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]