2.4.20-13.7 compile problems

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

 



Folks,

Redhat recently announced a security advisory recommending that 7.3 users
upgrade to 2.4.20-13.7. To support our customer sites, I need to compile
my device driver against this new kernel. Typically, I start by compiling
the kernel distribution "out of the box" - i.e. using one of the redhat
config files bundled with the kernel source RPM with no modifications.

Unfortunately, this doesn't seem to be compiling (well, linking actually).
Because MODVERSIONS is enabled, I'm reluctant to make any significant
configuration changes for fear of creating a runtime incompatability issue.

So, questions are:

. I'm assuming this should build out of the box, so to speak. I figured this
  was how one achieved binary compatibility with redhat binary
distributions.
  In other words, building the kernel source using one of the bundled
.configs
  yielded a redhat binary distriubtion. Is that correct?
. Has anyone run into this problem (see below)? Was there an easy fix that
  I'm missing?
. Just what, exactly, can I do to my source tree without breaking binary
  compatibility as far as modversions is concerned?

Build steps:
 . install kernel-source-2.4.20-13.7.rpm
 . make xconfig; read kernel-2.4.20-i686.config (no subsequent changes)
 . make dep
 . make bzImage

Build goes fine, but fails on link step.

make[1]: Entering directory `/usr/src/linux-2.4.20-13.7/arch/i386/mm'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-13.7/arch/i386/mm'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-13.7/arch/i386/mm'
make[1]: Leaving directory `/usr/src/linux-2.4.20-13.7/arch/i386/mm'
make
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-13.7/include -Wall -Wstrict-pro
totypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-poi
nter -pipe -mpreferred-stack-boundary=2 -march=i686 " -C  arch/i386/lib
make[1]: Entering directory `/usr/src/linux-2.4.20-13.7/arch/i386/lib'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.20-13.7/arch/i386/lib'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-13.7/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.20-13.7/arch/i386/lib'
make[1]: Entering directory `/usr/src/linux-2.4.20-13.7'
kallsyms pass 1
ld -m elf_i386 -T /usr/src/linux-2.4.20-13.7/arch/i386/vmlinux.lds -e stext
arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o
init/version.o init/do_mounts.o --start-group arch/i386/kernel/kernel.o
arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/char/drm/drm.o drivers/net/fc/fc.o
drivers/net/appletalk/appletalk.o drivers/net/tokenring/tr.o
drivers/net/wan/wan.o drivers/atm/atm.o drivers/ide/idedriver.o
drivers/cdrom/driver.o drivers/pci/driver.o drivers/net/pcmcia/pcmcia_net.o
drivers/net/wireless/wireless_net.o drivers/pnp/pnp.o drivers/video/video.o
drivers/media/media.o drivers/md/mddev.o drivers/isdn/vmlinux-obj.o
drivers/sensors/sensor.o net/network.o crypto/crypto.o
/usr/src/linux-2.4.20-13.7/arch/i386/lib/lib.a
/usr/src/linux-2.4.20-13.7/lib/lib.a
/usr/src/linux-2.4.20-13.7/arch/i386/lib/lib.a --end-group -o .tmp_vmlinux1
fs/fs.o: In function `zisofs_readpage':
fs/fs.o(.text+0x2eec1): undefined reference to `zlib_inflateInit_'
fs/fs.o(.text+0x2efce): undefined reference to `zlib_inflate'
fs/fs.o(.text+0x2f162): undefined reference to `zlib_inflateEnd'
fs/fs.o: In function `mnt_init':
fs/fs.o(.text.init+0x8fc): undefined reference to `init_rootfs'
fs/fs.o: In function `zisofs_init':
fs/fs.o(.text.init+0xc78): undefined reference to
`zlib_inflate_workspacesize'
make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.20-13.7'
make: *** [vmlinux] Error 2


--
Gary Cote
gcote@xxxxxxxxxxxxxxxx



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux