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

Re: make-kpkg fail: can't find modversions.h (compiling pcmcia-modules)



>>"Mark" == Mark Phillips <mark@ist.flinders.edu.au> writes:

 Mark> 1) Install modules source
 Mark> 2) Do "make menuconfig"
 Mark> 3) If you want a kernel-image do "make-kpkg --revision number
 Mark> kernel_image"
 Mark> 3) If you want a modules package "make-kpkg --revision number
 Mark> modules_image"
 Mark> 4) Use "dpkg -i" to install. 

 Mark> I thought that the first of these "step 3)"s was only necessary
 Mark> if you wanted a new kernel-image package.  Are you saying that
 Mark> the first "step 3)" is necessary even if you already have an
 Mark> appropriate kernel image?  I thought I had skipped this step in
 Mark> the past without difficulty.

       The file modversions.h is created by the make dep command. You
 do not need to create the kernel image; you just need to run make
 dep. make-kpkg does indeed run this step for you automatically. 


 Mark> But perhaps I had done the kernel compilation earlier without
 Mark> doing a clean and that's why it worked???

       Probably. 

 Mark> Anyway, it sounds like I have misunderstood.  Perhaps an extra little
 Mark> note that this step is not optional as well as giving the two steps
 Mark> separate numbers would help avoid such missunderstandings.


	Hmm. I'll see that I mention the need to do a make dep if you
 just want the modules. 

 Mark> The other thing I might mention, is that a number of the files,
 Mark> "README.modules", "README.tecra" etc etc, do not appear in the
 Mark> /usr/doc/kernel-package directory.  Then are in the
 Mark> /usr/lib/kernel-package/ directory.  I only found them by doing a
 Mark> "locate" command.  Perhaps it would be useful to make links to these
 Mark> files so they show up in the /usr/doc/kernel-package directory?

       Hmm. These files show up in the docs for kernel source package,
 and some show up as documents for the kernel-image package.

       I shall follow your advice about the links. 
 
 Mark> By the way, I hope my comments aren't coming across as me being
 Mark> critical of the kernel-package.  I think Manoj has done a great job
 Mark> with this utility.  I am just making the comments so that things can
 Mark> be made even better, and so that future people don't make the same
 Mark> mistakes I have made.


       Don't worry. Constructuve criticism is always welcome.

       manoj

__> make-kpkg clean
__> make menuconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/local/src/kernel/2.2.15/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o lxdialog.o lxdialog.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o checklist.o checklist.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o menubox.o menubox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o textbox.o textbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o yesno.o yesno.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o inputbox.o inputbox.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o util.o util.c
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE  -DCURSES_LOC="<ncurses.h>"   -c -o msgbox.o msgbox.c
gcc -s -L .  lxdialog.o checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o  -lncurses -o lxdialog
make[1]: Leaving directory `/usr/local/src/kernel/2.2.15/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/i386/config.in
Using defaults found in .config
Preparing scripts: functions, parsing..........................................done.

Saving your kernel configuration...

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
__> make dep
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
make[1]: Entering directory `/usr/local/src/kernel/2.2.15/arch/i386/boot'
make[1]: Nothing to be done for `dep'.
make[1]: Leaving directory `/usr/local/src/kernel/2.2.15/arch/i386/boot'
scripts/mkdep init/*.c > .depend
scripts/mkdep `find /usr/local/src/kernel/2.2.15/include/asm /usr/local/src/kernel/2.2.15/include/linux /usr/local/src/kernel/2.2.15/include/scsi /usr/local/src/kernel/2.2.15/include/net -follow -name \*.h ! -name modversions.h -print` > .hdepend


-- 
 You can't play your friends like marks, kid. Henry Gondorf, "The
 Sting"
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: