DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I spent e few hours configuring my new kernel, but when I finally used make-kpkg to make the .deb package I got this error:
Code:
[...LOTS of output]
CC lib/zlib_deflate/deftree.o
CC lib/zlib_deflate/deflate_syms.o
LD lib/zlib_deflate/zlib_deflate.o
LD lib/zlib_deflate/built-in.o
CC lib/zlib_inflate/infblock.o
CC lib/zlib_inflate/infcodes.o
CC lib/zlib_inflate/inffast.o
CC lib/zlib_inflate/inflate.o
CC lib/zlib_inflate/inftrees.o
CC lib/zlib_inflate/infutil.o
CC lib/zlib_inflate/inflate_syms.o
LD lib/zlib_inflate/zlib_inflate.o
LD lib/zlib_inflate/built-in.o
LD lib/built-in.o
CC lib/bitmap.o
CC lib/bust_spinlocks.o
CC lib/cmdline.o
CC lib/ctype.o
CC lib/div64.o
CC lib/dump_stack.o
CC lib/errno.o
CC lib/extable.o
CC lib/idr.o
CC lib/int_sqrt.o
CC lib/kobject.o
CC lib/parser.o
CC lib/radix-tree.o
CC lib/rbtree.o
CC lib/rwsem.o
CC lib/string.o
CC lib/vsprintf.o
AR lib/lib.a
LD arch/i386/lib/built-in.o
CC arch/i386/lib/bitops.o
AS arch/i386/lib/checksum.o
CC arch/i386/lib/dec_and_lock.o
CC arch/i386/lib/delay.o
AS arch/i386/lib/getuser.o
CC arch/i386/lib/memcpy.o
CC arch/i386/lib/mmx.o
CC arch/i386/lib/strstr.o
CC arch/i386/lib/usercopy.o
AR arch/i386/lib/lib.a
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xd094): In function `powernow_acpi_init':
: undefined reference to `acpi_processor_register_performance'
arch/i386/kernel/built-in.o(.text+0xd0bb): In function `powernow_acpi_init':
: undefined reference to `acpi_processor_unregister_performance'
arch/i386/kernel/built-in.o(.exit.text+0x3b): In function `powernow_exit':
: undefined reference to `acpi_processor_unregister_performance'
drivers/built-in.o(.init.text+0x726c): In function `init_sc520cdp':
: undefined reference to `mtd_concat_create'
drivers/built-in.o(.exit.text+0x1cbf): In function `cleanup_sc520cdp':
: undefined reference to `mtd_concat_destroy'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [stamp-build] Error 2
Beeing the first time I compile a kernel (done it a few times, but never got a working kernel ;D), I cannot figure it out.
Any help is much appreciated.
BTW: What does --initrd do? It has something to do with starting modules i think, but I that's as far as I can understand
Having compiled the kernel several times, it seems that your problem
is probably related to something you did to your kernel source,
like a patch. Can you tell us everything you did to it from the
moment you downloaded it?
I downloaded it using apt-get, then I extracted it, put up a symlink to linux, ran make xconfig, configured it, and ran make-kpkg clean and then standard make-kpkg --append-to-version=-050108 kernel_image. It worked fine a while, then this happened. I guess it's something to do with my config
The only other thing that comes to mind is that you are not using the
appropriate version of your C compiler. I've read in a file called
changes.gz in the /usr/share/doc directory of the debian package of
the kernel I created, that the recommended compiler for the kernel
( 2.6 ) is gcc-2.95 because recent compilers have not been tested in
kernel compilation, and most likely contain bugs. You can switch to
it by with :~# MAKEFLAGS="CC=gcc-2.95" make-kpkg ...
I always use make menuconfig when I'm recompiling so I just hopped into my 2.6.10 kernel tree and did a forward slash mtd_concat (which looks like / mtd_concat and that returns:
Determine if that hardware is really in your system or not. I've found in my kernel re-compiling efforts that errors like this almost always end up being some hardware flipped to ON when my system doesn't really have that device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.