Bug 24101 - conflicts between kernel/file headers with "make"
conflicts between kernel/file headers with "make"
Status: CLOSED WORKSFORME
Product: Red Hat Linux
Classification: Retired
Component: make (Show other bugs)
7.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-01-16 05:01 EST by Need Real Name
Modified: 2007-04-18 12:30 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-01-16 05:02:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2001-01-16 05:01:47 EST
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@hotmail.com
Comment 1 Jeff Johnson 2001-01-16 09:43:41 EST
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.

Note You need to log in before you can comment on or make changes to this bug.