LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel 2.4.3 compiling errors ;( (https://www.linuxquestions.org/questions/slackware-14/kernel-2-4-3-compiling-errors-%3B-81384/)

Nikon01 08-12-2003 04:20 PM

Kernel 2.4.3 compiling errors ;(
 
Well at first I compiled a 2.4.21 kernel but forgot to back it up and formatted and lost it. I heard there was better support features in the 2.4.3 for my wifi card so I figured I'd give it a go. d/led and un-tared it to my /usr/src and then started. I followed the compiling for newbies thing on this forum and got error 1 and error 2 messages on make dep and everything after it. I don't know what's wrong and yes I have searched the forum for answers but could not find a thread about kernel compiling and these errors. I'm hoping I don't have to start all over again but I probably will ;(

As always big TY in advance to all help recieved. Anyone have some ideas?

jqcaducifer 08-12-2003 05:25 PM

Posting the error messages would help. This is the script file i made to do all the compilation steps after make xconfig :

Code:

#!/bin/bash
set -e
cp .config ../dot.config
make distclean
cp ../dot.config .config
make oldconfig
make dep
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/bzImage

the 2 cp's are to save a copy of .config in an upper folder, because distclean gets rid of everything unnecessary. You should try at least the first three steps before make dep (cp; make distclean; cp)

Good luck

Nikon01 08-13-2003 02:53 AM

Where are the config's normally placed? I'm still a bit of a newb ;(

Also the errors are when I do a "make clean":

timer.c:35: conflicting types of 'xtime'
/usr/src/linux/sched.h:540: previous declaration of 'xtime'
make[2]: ***[timer.o] Error 1
make[2]: Leaving directory '/usr/src/linux/kernel'
make[1]: ***[first_rule] Error 2
make[1]: Leaving directory '/usr/src/linux/kernel'
make: *** [_dir_kernel] Error 2


So I'm kinda floating dead in the water for right now. I'll try looking for that dot.config.

Ty again and please follow up =)

jqcaducifer 08-13-2003 11:11 AM

I'm not sure what that error means.... Meanwhile, the .config file is the file that make xconfig creates (or make menuconfig or make config). It's located in /usr/src/linux* folder, so I just make a backup of it into the /usr/src folder, make distclean, and then copy it back. see if that helps your make dep

EDIT

i'm thinking that the problem is because you never cleaned out your folder, and previous source files are conflicting with current ones, so yah, do a make distclean, that should help

Nikon01 08-13-2003 04:30 PM

I formatted which is why I lost the old kernel I made. I had just d/led it ;(. I also didn't see the config file in usr/src/linux but I'll check again. Hopefully I'll be able to back it up because I spent quite a while making sure I had just the right settings ;x.

Ty again guys ;)

nvn 08-13-2003 04:50 PM

I don't really have something to suggest, I'm just curious...how could a lower patchlevel of a specific kernel version have better hardware support than a higher patchlevel? I can understand changes between version numbers, but...this concerns the same version (that is, 2.4). AFAIK earlier 2.4 versions had some instability issues, so having to downgrade in order to get better hardware support seems really strange...? :confused:


All times are GMT -5. The time now is 03:32 AM.