Re: Kernel Build Problem - Redhat 9.0 - 2.4.20-20.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday, Sep 7th 2003 at 16:40 -0400, quoth Gary Gies:

=>I installed 9.0 on a new machine.
=>
=>Then upgraded the kernel to 2.4.20-20.9 by installing the following rpms (from RHN).
=>
=>kernel-2.4.20-20.9.i386.rpm
=>kernel-source-2.4.20-20.9.i386.rpm
=>
=>I then deleted the old kernel (cant remember which one) using rpm -e.
=>
=>Then rebooted off the new kernel. (I only have one kernel on my machine now which is the 2.4.20-10.9 one).
=>
=>I have only one set of kernel source as well which is 2.4.20-10.9 as well.
=>
=>I then wanted to practice building a new kernel so I decided to build the kernel using the config that I found in /boot/config-2.4.20-20.9 which i assumed (probably incorrectly) that this is the .config file which was used to build the 2.4.20-20.9 kernel supplied by RHN.
=>
=>So I copied this file to /usr/src/linux-2.4.20-20.9/.config.
=>
=>Then did
=>
=>make clean
=>make dep
=>make bzImage
=>
=>And ... my build fails with the following
=>
=>gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-20.9/include -Wall -Wstrict-prototypes\
=> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe\
=> -mpreferred-stack-boundary=2 -march=i386   -nostdinc -iwithprefix include -DKB\
=>UILD_BASENAME=io_apic  -c -o io_apic.o io_apic.c
=>io_apic.c:45: `dest_LowestPrio' undeclared here (not in a function)
=>io_apic.c: In function `__mask_IO_APIC_irq':
=>io_apic.c:140: warning: implicit declaration of function `io_apic_read'
=>io_apic.c:140: warning: implicit declaration of function `io_apic_modify'
=>io_apic.c:140: warning: implicit declaration of function `io_apic_sync'
=>io_apic.c: In function `clear_IO_APIC_pin':
=>io_apic.c:169: storage size of `entry' isn't known
=>...
=>
=>I am confused because I thought that the kernel I am currently running would have been built using the sources in the kernel-source rpm that i installed and thus a make bzImage (without any mods to the config) would build a kernal that is identical.
=>
=>Perhaps I need to install patches to this kernel from somewhere?
=>
=>I did not change anything in the kernel .config file, since I am just practicing kernel builds to prep for my next project that does involve a custom kernel.
=>
=>Any help would be appreciated.
=>
=>Thanks

Before you run make clean have a couple of things to do.

First you run make mrproper. Note that *this* will delete your .config 
file, so save it somewhere.

Next you need to run some sort of make config. It can be config, 
menuconfig, xconfig or oldconfig. I don't care which, but if you don't do 
that then nothing will build. Also, I use the script below to run the 
build. Put it in /usr/src and call it bzcompile.

#!/bin/bash

process ()
{
    typeset target=$1
    typeset logfile=$2
    typeset -i status

    cat <<EOF >> ${logfile}
###########
# make ${target} #
###########
EOF
    make ${target} 2>&1 | tee -a ${logfile}
    status=$?
    if (( status != 0 ))
    then
        echo "ERROR: Make target(${target}) has failed with status 
${status}" \
                | tee -a ${logfile}
        exit ${status}
    fi
} # process

typeset -r klog=~/.kernel
typeset -r kmodlog=~/.kernel_modules

mv ${klog} ${klog}.old
mv ${kmodlog} ${kmodlog}.old
echo " ========= $(date) ========= " | tee ${klog} ${kmodlog}
process clean ${klog}
process dep ${klog}
process bzImage ${klog}
process modules ${kmodlog}
process modules_install ${kmodlog}
cat <<EOF | tee -a ${klog} ${kmodlog}
#######
# END #
#######
EOF
exit 0

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
steveo at syslang.net


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux