Bug 24101

Summary: conflicts between kernel/file headers with "make"
Product: [Retired] Red Hat Linux Reporter: Need Real Name <boogiebryan>
Component: makeAssignee: Jakub Jelinek <jakub>
Status: CLOSED WORKSFORME QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-01-16 10:02:17 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 Need Real Name 2001-01-16 10:01:47 UTC
When executing "make" on my newly installed RedHat 7.0 the following message is received:

#make
gcc_D_KERNEL__ -DMODULE -w -02 -fomit-frame-pointer -I/usr/src/linux/include -c -o serial.a serial.c
In file included from serial.c:131:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel source
make: *** [serial.a] Error 1

-the Makefile for this module is exacutable in Mandrake 7.1(my previous OS)
-I used the make program from Mandrake in RedHat and the same error occurred
-thus the error is not from the module or the make program 

Bryaan Phillips
boogiebryan

Comment 1 Jeff Johnson 2001-01-16 14:43:41 UTC
The error message is trying to prevent errors caused from mis-matches between
glibc and kernel headers For the vast majority of programs the error message is
needed to prevent subtle errors.

Judging from the name of your program "serial.c",  your program may be one of
the handful
of programs that might need to include kernel headers, dunno, can't tell without
more info. You should look carefully for glibc equivalent structures and methods
to
perform the same task.