Kernel 2.2.21 compilation error
Hey I've been trying to compile my own kernel for a few nights now and I haven't had much luck. First time it froze at boot then etc etc more stuff happened so I formatted and started over.
So this time I've been trying to compile kernel 2.4.21 under Redhat 9 and I redid the config file using "make xconfig" as usual. I set my settings up etc etc. Then I do "make clean" then I run "make bzImage" and it goes for awhile then I get the following and I'm not to sure on what it means. I know its config related. But any ideas on what its related too? The contents of the error are as follows: make[2]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/lib' make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/lib' ld -m elf_i386 -T /usr/src/linux-2.4.21/arch/i386/vmlinux.lds -e stext arch/i386 /kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_m ounts.o \ --start-group \ arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/f s.o ipc/ipc.o \ drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/n et/net.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o d rivers/cdrom/driver.o drivers/sound/sounddrivers.o drivers/pci/driver.o drivers/ video/video.o drivers/usb/usbdrv.o drivers/media/media.o drivers/input/inputdrv. o \ net/network.o \ /usr/src/linux-2.4.21/arch/i386/lib/lib.a /usr/src/linux-2.4.21/lib/lib. a /usr/src/linux-2.4.21/arch/i386/lib/lib.a \ --end-group \ -o vmlinux drivers/char/drm/drm.o(.text+0x74b8): In function `sis_fb_alloc': : undefined reference to `sis_malloc' drivers/char/drm/drm.o(.text+0x7566): In function `sis_fb_alloc': : undefined reference to `sis_free' drivers/char/drm/drm.o(.text+0x75d9): In function `sis_fb_free': : undefined reference to `sis_free' drivers/char/drm/drm.o(.text+0x79ff): In function `sis_final_context': : undefined reference to `sis_free' make: *** [vmlinux] Error 1 [root@dhcp-511-10 linux-2.4.21]# "end error" Any help with this would be greatly appriciated. O and also. Last time I creted a kernel I couldn't find VMLINUZ. I could find vmlinux, bzImage, and system.map easily. But this isn't too important right now. |
Well it could be the version of GCC you're using, I don't know much about Red Hat, but I got a similar thing with i810_audio in Debian, as far as I mind. It's related to your console framebuffer settings. (I think it's under Console Drivers in xconfig). Presumably you have a SIS graphics card / onboard graphics. You could try just choosing the standard VESA driver here (beside the VGA 16 color graphics console option, which'll give you a nice penguin at boot time). as these is just the command line drivers (by which I mean nothing to do with X). Failing that, do gcc --version and post the output. Then hope someone who knows more about GCC versions than I do comes along. :D
|
well i noticed in your explanation you didn't note mention of make dep, so i don't know if you missed that step or just forgot to mention that you did it...so just take a peek at this and see if there was any steps you missed.
|
Thanks, The other day I just became very frustrated and re-configured the config file and it seemed that I did somthing different before because this time it worked fine with no errors.
|
All times are GMT -5. The time now is 10:51 PM. |