LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 01-04-2004, 08:48 PM   #1
CowboyJ
LQ Newbie
 
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13

Rep: Reputation: 0
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?
 
Old 01-04-2004, 09:12 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 58
well judging by your info i have to ask, did you run make clean after make dep?
 
Old 01-04-2004, 09:13 PM   #3
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
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.
 
Old 01-04-2004, 10:07 PM   #4
CowboyJ
LQ Newbie
 
Registered: Nov 2003
Location: Ohio
Distribution: SUSE 9.0
Posts: 13

Original Poster
Rep: Reputation: 0
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'".
 
Old 01-04-2004, 10:13 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 58
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"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
build error - can't find kernel source PickledHerring Linux - Newbie 1 11-15-2005 07:29 AM
Kernel build error (2.6.14-ck2) 3saul Linux - General 0 11-05-2005 05:36 PM
kernel 2.4.23 packaging build error Modify Debian 3 12-07-2003 03:51 AM
kernel build error tandre *BSD 1 06-03-2003 02:55 AM
recompiled kernel again get this error when NVIDIA build.. purpleburple Linux - General 4 03-19-2003 08:39 PM


All times are GMT -5. The time now is 02:46 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration