Re: I cannot build kernel_xxx packages by make-kpkg.
Egor Tur writes:
> Hi folk.
> > > I have problem with build kernel_image.
> > > I try kernel-source-2.4.20 from testing & unstable; kernel-package and modutils from testing & unstable & stable;
> > >
> > > Errors are when make-kpkg try build package:
> > >
> > > find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
> > > if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b /usr/src/linux/debian/tmp-image -r 2.4.20; fi
> > > depmod: Can't open /usr/src/linux/debian/tmp-image/lib/modules/extra/modules.dep for writing
> > > make[2]: *** [_modinst_post] Error 255
> > > make[2]: Leaving directory `/usr/src/kernel-source-2.4.20'
> > > make[1]: *** [real_stamp_image] Error 2
> > > make[1]: Leaving directory `/usr/src/kernel-source-2.4.20'
> >
> > This looks like you are building as a regular user and not as root.
> > make-kpkg needs you to be root, or use something like fakeroot.
>
> Yes, I work how root.
> Now I try:
> cd /usr/src/linux
> make oldconfig
> make dep
> make bzImage
> make modules
> make modules_install & I have problems:
> depmod: Can't open /lib/modules/extra/modules.dep for writing
> > > make[2]: *** [_modinst_post] Error 255
> Ok. I look in /lib/modules. I see that was created 2.4.20 directory.
> And in this 2.4.20 I cannot see modules.dep.
> I create extra directory in /lib/modules & again run modules_install & this run correctly.
> I see modules.dep in /lib/modules/extra/
>
> Please correct me if I'm wrong about this.
I don't actually know (I haven't done this in a little while), but I
would think that extra should be qualified by the kernel version. I
presume you already have a .config file, right? *grasps at straws*
You might be looking at a bug in either make-kpkg or the kernel-source
package. Have you checked the bugs database? Also, does Knoppix use
the same packages as regular Debian?
Jerry
Reply to: