Bug 58660

Summary: kernel modules compilation fails.
Product: [Retired] Red Hat Linux Reporter: Chip Nayak <chipnayak>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-01-22 14:36:53 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 Chip Nayak 2002-01-22 14:32:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5) Gecko/20011014

Description of problem:
on RH 7.2 (2.4.9-13), rebuilding kernel modules fail for abi/svr4 module.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install kernel sources and do "make mrproper"
2."make menuconfig" 
3."make deps"
4." make modules"	

Actual Results:  make -C svr4 modules
make[2]: Entering directory /usr/src/linux-2.4.9-13/abi/svr4'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-13/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.9-13/include/linux/modversions.h   -c -o
sysinfo.o sysinfo.c
sysinfo.c:11:27: linux/compile.h: No such file or directory
sysinfo.c: In function svr4_sysinfo':
sysinfo.c:86: UTS_VERSION' undeclared (first use in this function)
sysinfo.c:86: (Each undeclared identifier is reported only once
sysinfo.c:86: for each function it appears in.)
make[2]: *** [sysinfo.o] Error 1
make[2]: Leaving directory /usr/src/linux-2.4.9-13/abi/svr4'
make[1]: *** [_modsubdir_svr4] Error 2
make[1]: Leaving directory /usr/src/linux-2.4.9-13/abi'
make: *** [_mod_abi] Error 2


Expected Results:  Successfull build

Additional info:

Output from "make modules"

make -C svr4 modules
make[2]: Entering directory /usr/src/linux-2.4.9-13/abi/svr4'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.9-13/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.9-13/include/linux/modversions.h   -c -o
sysinfo.o sysinfo.c
sysinfo.c:11:27: linux/compile.h: No such file or directory
sysinfo.c: In function svr4_sysinfo':
sysinfo.c:86: UTS_VERSION' undeclared (first use in this function)
sysinfo.c:86: (Each undeclared identifier is reported only once
sysinfo.c:86: for each function it appears in.)
make[2]: *** [sysinfo.o] Error 1
make[2]: Leaving directory /usr/src/linux-2.4.9-13/abi/svr4'
make[1]: *** [_modsubdir_svr4] Error 2
make[1]: Leaving directory /usr/src/linux-2.4.9-13/abi'
make: *** [_mod_abi] Error 2

Comment 1 Phil Knirsch 2002-01-22 14:36:05 UTC
Reasigning to kernel package (kernelcfg was a tool to edit modules.conf ;-).

Read ya, Phil

Comment 2 Arjan van de Ven 2002-01-22 14:47:05 UTC
yep this won't work; you need to at least do "make bzImage" first.
It doesn't have to finish, but the first file needs to have been processed...