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

Re: I cannot build kernel_xxx packages by make-kpkg.



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.

PS: this happens on comp where I install knoppix on hard.

Thanx.



Reply to: