kernel build error
I am running Suse 9, and I want to re-build the kernel (linux-2.4.21-99). I had no errors from 'make dep', but I encountered the following screen output at the end of 'make bzImage':
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-99/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-unit-at-a-time -pipe -msoft-float -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=sch_atm -c -o sch_atm.o sch_atm.c sch_atm.c: In function `atm_tc_change': sch_atm.c:316: error: union has no member named `af_atm' make[3]: *** [sch_atm.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.21-99/net/sched' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.21-99/net/sched' make[1]: *** [_subdir_sched] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-99/net' make: *** [_dir_net] Error 2 The error message suggests to me a problem with a header or source file. Any suggestions on how to resolve this? |
well judging by your info i have to ask, did you run make clean after make dep?
|
i'm not sure how suse deals with their kernels, but the problem could be from "unclean" sources; that is, that it may have had stale dependencies lying around
go into the source directory and do make mrproper, then go through up until make dep, then do make clean now go on and do make bzImage, etc... basically, try this: make mrproper (oh, backup your .config file!, it will be erased) make menuconfig make dep make clean make bzImage make make install make modules make modules_install *edit: darn, too slow! |
Thank you, DrOzz and TheOneAndOnlySM, for your quick replies. I was confident that with two replies suggesting the same solution, that would be the fix. However, when I re-ran 'make mrproper', 'make dep', added 'make clean', and then 'make bzImage', I still got the same error message about "union has no member named 'af_atm'".
|
here d00d, take a peak at this guide i put together, and see if the same thing happens if you follow that...
also i suggest if it does, that you re-download your kernel source... maybe you got a "bad download" |
All times are GMT -5. The time now is 01:37 PM. |