Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-04-2004, 08:48 PM
|
#1
|
LQ Newbie
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13
Rep:
|
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?
|
|
|
01-04-2004, 09:12 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
well judging by your info i have to ask, did you run make clean after make dep?
|
|
|
01-04-2004, 09:13 PM
|
#3
|
Member
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987
Rep:
|
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!
Last edited by TheOneAndOnlySM; 01-04-2004 at 09:14 PM.
|
|
|
01-04-2004, 10:07 PM
|
#4
|
LQ Newbie
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13
Original Poster
Rep:
|
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'".
|
|
|
01-04-2004, 10:13 PM
|
#5
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
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 06:51 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|