[WBEL-users] Re: Can't compile kernel linux-2.4.21-15.0.3.EL
drivers? (Alan Sparks)
Phil Schaffner
Philip.R.Schaffner@NASA.gov
Mon, 19 Jul 2004 14:53:49 -0400
On Mon, 2004-07-19 at 18:46 +0200, Andy Rabagliati wrote:
> On Mon, 19 Jul 2004, Jake Grimmett wrote:
>
> >
> > make clean && make mrproper
> > make xconfig
> > (and load configs/kernel-2.4.21-athlon-smp.config)
> > make -j2 dep && make -j2 bzImage
> >
> > ....
> > Huge amount sniped here - hopefully I've enough left to help ??
> >
> > ld -m elf_i386 -T /usr/src/linux-2.4.21-15.0.3.EL/arch/i386/vmlinux.lds
> > (********SNIP********) /i386/lib/lib.a --end-group -o .tmp_vmlinux1
> > fs/fs.o(.text+0x43c51): In function `zisofs_readpage':
> > : undefined reference to `zlib_inflateInit_'
> > (********SNIP******** -many similar lines)
> > make[1]: *** [kallsyms] Error 1
> > make[1]: Leaving directory `/usr/src/linux-2.4.21-15.0.3.EL'
>
> Do you have zlib-devel installed ?
Kernel build works for me on Athlon system (actually VMware virtual
machine) with the following procedure/script. Do have zlib-devel
installed, apparently as a result of install-time (presumably kernel
development) choices - did not explicitly install it.
#!/bin/bash
# /root/bin/make_linux
#
# Kernel build steps:
# 1. Install the sources
# 2. cd <install directory> (e.g. /usr/src/linux-2.4
# 3. make mrproper (or make distclean)
# 3a.optional - copy .config file from configs directory or
# old kernel, then "make oldconfig" (some say twice)
# 4. make xconfig (gconfig for 2.6 or menuconfig if not in X)
# 5. make dep (not required for 2.6 kernels)
# 6. make
# 7. make bzImage
# 8. make modules
# 9. make modules_install
# 10. make install
# 11. if required, configure bootloader. ("make install" will do
# this for you)
# This script implements steps 6-10
# Note: adjust "-j n" for performance on compilation
# runs parallel jobs
# -j 4 is a good starting place for single processor
(make -j 6 && make -j 6 bzImage && make -j 6 modules && \
make modules_install && make install) >& /tmp/MakeKernel.log
# check log file for errors when done, repeat as required, or reboot
# to test
Phil