Bug 21787

Summary: software compilation problems
Product: [Retired] Red Hat Linux Reporter: Need Real Name <z_kubicki>
Component: kernelAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED NOTABUG QA Contact: Brock Organ <borgan>
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: 2000-12-06 02:02:46 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 2000-12-06 02:02:42 UTC
I installed RH7 from ISO image - standard workstation install. I also
updated glibc from RedHat-errata to version 2.2. I still can not compile
most of the software, which I use. 
Compilation of BestCrypt-0.4b-4 finishes like that:
....
/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[1]: *** [bc_dev.o] Error 1
make[1]: Leaving directory `/home/bcrypt-0.4b-4/mod'
make: *** [subdirs] Error 2


Also the filesystem module for Caldera's Netware client fails:

make[1]: Entering directory `/home/nkfs-4.2.1/src'
gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-DMODULE -DMODVERSIONS -I/usr/include -I. -I../include -DLINUX1_3_x    -c
-o nkfs_driver.o nkfs_driver.c
In file included from nkfs_driver.c:27:
/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[1]: *** [nkfs_driver.o] Error 1
make[1]: Leaving directory `/home/nkfs-4.2.1/src'
make: *** [all] Error 2

I've got kernel headers and kernel sources installed. What do I do wrong.

Please help.

Regards.
Zeb

Comment 1 Bill Nottingham 2000-12-06 06:29:24 UTC
You need to include the headers from
/usr/src/linux-<your kernel version>, not
/usr/include/linux.