[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#370651: kernel-package: README.modules: "User instructions" are incomplete and misleading



clone 370651 -1
retitle 370651 kernel-headers are missing infrastructure needed to build modules with kernel-package
severity -1 wishlist
reassign -1 kernel-package # keep the old bug title
thanks

Manoj Srivastava <srivasta@debian.org> wrote:

>         Well, for starters, ./debian seems to be missing in the
>  official package. I have not looked at the other differences lately.

So this is the part that's going to stay #370651.  The rest of this mail
is about -1.

>         I meant that is the common use case -- people using
>  make-kpkg either have an uncrippled header or source package, or they
>  build both image and headers.

Okay, got it.  I'm willing to write a patch that also explains the
option without compiling a kernel.  But first I need to learn how it
really works.  I'd like the kernel people to stay tuned and help me
figure out what to do.  Manoj's input is probably also needed for the
proper kernel-package options and targets.

>         For the future, make-kpkg configure modules_image would
>  probably work better.

Indeed, better, but not sufficiently.  It runs make oldconfig and starts
compiling, but then fails:

make[4]: Entering directory `/home/frank/src/linux-source-2.6.16'

  WARNING: Symbol version dump /home/frank/src/linux-source-2.6.16/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /usr/src/modules/thinkpad/2.6/drivers/thinkpad.o
/usr/src/modules/thinkpad/2.6/drivers/thinkpad.c: In function `thinkpad_ioctl':
/usr/src/modules/thinkpad/2.6/drivers/thinkpad.c:239: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:575)
/usr/src/modules/thinkpad/2.6/drivers/thinkpad.c:254: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:575)
/usr/src/modules/thinkpad/2.6/drivers/thinkpad.c:269: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:575)
include/linux/module.h: At top level:
/usr/src/modules/thinkpad/2.6/drivers/thinkpad.c:93: warning: `enable_thinkpadpm' defined but not used
/bin/sh: line 1: scripts/genksyms/genksyms: No such file or directory
make[5]: *** [/usr/src/modules/thinkpad/2.6/drivers/thinkpad.o] Error 1
make[4]: *** [_module_/usr/src/modules/thinkpad/2.6/drivers] Error 2
make[4]: Leaving directory `/home/frank/src/linux-source-2.6.16'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/usr/src/modules/thinkpad/2.6/drivers'
make[2]: *** [build-modules] Error 2
make[2]: Leaving directory `/usr/src/modules/thinkpad'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/thinkpad'
Module /usr/src/modules/thinkpad failed.
Hit return to Continue

So the first thing that's missing is the file Module.symvers, later on
also scripts/genksyms/genksyms is missing.  Both seem to deal with
modversions.  Any idea which target I need to call to get that?

TIA, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX)



Reply to: