Bug 85198
Summary: | errata kernel source fails to compile | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Gary Shi <me> |
Component: | kernel | Assignee: | Arjan van de Ven <arjanv> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2003-06-07 19:39:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Gary Shi
2003-02-26 16:28:48 UTC
Insert "make mrproper" between steps 3 and 4. Insert "make oldconfig" between steps 4 and 5. It doesn't make for me either. I used the standard i686 config file, selected using make xconfig and then picking out that config file. The Makefile was edited to get rid of the "custom" and then make dep was run. The problem I noticed was that no kernel modules seemed to want to compile against this setup. ALSA failed, as did the ltmodem drivers, and then the vmware modules. All of those gave errors like: gcc -D__KERNEL__ -DMODULE=1 -I/opt/local/src/Sound/alsa/rc8/alsa-driver-0.9.0rc8b/include -I/lib/modules/2.4.18-26.7.x/build/include -O2 -mpreferred-stack-boundary=2 -march=i686 -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -DEXPORT_SYMTAB -c hwdep.c In file included from /lib/modules/2.4.18-26.7.x/build/include/linux/prefetch.h:13, from /lib/modules/2.4.18-26.7.x/build/include/linux/list.h:6, from /lib/modules/2.4.18-26.7.x/build/include/linux/module.h:12, from /opt/local/src/Sound/alsa/rc8/alsa-driver-0.9.0rc8b/include/adriver.h:49, from /opt/local/src/Sound/alsa/rc8/alsa-driver-0.9.0rc8b/include/sound/driver.h:43, from ../alsa-kernel/core/hwdep.c:22, from hwdep.c:1: /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:51: warning: parameter names (without types) in function declaration /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:51: field `loops_per_jiffy_R_ver_str' declared as a function /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:73: nondigits in number and not hexadecimal /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:73: parse error before `0657d037' which are truly weird because the string 0657d037 is not in that file. gcc -D__KERNEL__ -I/lib/modules/2.4.18-26.7.x/build/include -Wall -Wstrict-prototypes -O3 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DLT_VERSION=8.26a9 -DLINUX -DNO_EEPROM -DLT_SERIAL_MODULE=lt_serial -c -o ltmodem.a ltmodem.c In file included from /lib/modules/2.4.18-26.7.x/build/include/linux/prefetch.h:13, from /lib/modules/2.4.18-26.7.x/build/include/linux/list.h:6, from /lib/modules/2.4.18-26.7.x/build/include/linux/module.h:12, from ltmodem.c:34: /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:51: warning: parameter names (without types) in function declaration /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:51: field `loops_per_jiffy_R_ver_str' declared as a function /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:73: nondigits in number and not hexadecimal /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:73: parse error before `0657d037' /lib/modules/2.4.18-26.7.x/build/include/asm/processor.h:73: warning: function declaration isn't a prototype and Building for VMware Workstation 3.2.x make: Entering directory `/tmp/vmware-config0/vmmon-only' make[1]: Entering directory `/tmp/vmware-config0/vmmon-only' make[2]: Entering directory `/tmp/vmware-config0/vmmon-only/driver-2.4.18-26.7.x'make[2]: Leaving directory `/tmp/vmware-config0/vmmon-only/driver-2.4.18-26.7.x' make[2]: Entering directory `/tmp/vmware-config0/vmmon-only/driver-2.4.18-26.7.x'In file included from .././linux/driver.c:43: /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:60: nondigits in number and not hexadecimal /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:60: nondigits in number and not hexadecimal /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:60: parse error before `01075bf0' /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:61: `panic_R_ver_str' declared as function returning a function /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:61: warning: function declaration isn't a prototype /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:67: parse error before `20000329' /lib/modules/2.4.18-26.7.x/build/include/linux/kernel.h:67: `simple_strtoul_R_ver_str' declared as function returning a function Even a straight compile of the kernel barfed with the message: kallsyms pass 1 ld -m elf_i386 -T /usr/src/linux-2.4.18-26.7.x/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/media/media.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/md/mddev.o drivers/isdn/vmlinux-obj.o drivers/sensors/sensor.o net/network.o crypto/crypto.o abi/abi.o /usr/src/linux-2.4.18-26.7.x/arch/i386/lib/lib.a /usr/src/linux-2.4.18-26.7.x/lib/lib.a /usr/src/linux-2.4.18-26.7.x/arch/i386/lib/lib.a --end-group -o .tmp_vmlinux1 fs/fs.o: In function `zisofs_readpage': fs/fs.o(.text+0x2e19c): undefined reference to `zlib_inflateInit_' fs/fs.o(.text+0x2e2e2): undefined reference to `zlib_inflate' fs/fs.o(.text+0x2e4a9): undefined reference to `zlib_inflateEnd' fs/fs.o: In function `mnt_init': fs/fs.o(.text.init+0x93c): undefined reference to `init_rootfs' fs/fs.o: In function `zisofs_init': fs/fs.o(.text.init+0xc89): undefined reference to `zlib_inflate_workspacesize' make[1]: *** [kallsyms] Error 1 make[1]: Leaving directory `/usr/src/linux-2.4.18-26.7.x' make: *** [vmlinux] Error 2 So something is messed up here. The kernel RPMS had correct MD5 hashes. 1) you forgot make mrproper too and 2) if you want to compile external modules for the kernel binary RH ships, you should NOT run make dep, because that destroys the information needed for that. > fs/fs.o(.text+0x2e19c): undefined reference to `zlib_inflateInit_'
Additionally, don't use "make xconfig". Use "make menuconfig". xconfig is known
to create bad kernel configs. This particular one (zlib) is documented in
bugzilla somewhere else.
|