Bug 24101 - conflicts between kernel/file headers with "make"
Summary: conflicts between kernel/file headers with "make"
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: make
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-16 10:01 UTC by Need Real Name
Modified: 2007-04-18 16:30 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-01-16 10:02:17 UTC
Embargoed:


Attachments (Terms of Use)

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.


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