Bug 20905
Summary: | Compiler warning/insmod error using RedHat 7.0 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Richard A. Pries <priesrx> | ||||
Component: | modutils | Assignee: | Michael K. Johnson <johnsonm> | ||||
Status: | CLOSED NOTABUG | 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: | 2000-11-22 23:15:25 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: | |||||||
Attachments: |
|
Description
Richard A. Pries
2000-11-15 14:46:02 UTC
You're using a) the wrong compiler. To build 2.2 kernel modules, use kgcc, not gcc. b) the wrong include path You need to use -I/usr/src/linux-2.2.16/include/linux, not -I/usr/include/linux The headers in /usr/include/linux are for glibc and userland use, not kernel module use. Thanks for the answer, but I still get the same warning and error as shown by the attached. Please note that I already was using kgcc, not gcc. Created attachment 5400 [details]
kgcc compiler warning/insmod don't recognize kernel version
Use -I/usr/src/linux-2.2.16/include not -I/usr/src/linux-2.2.16/include/linux let me know if that works Thank you very much. Using -I/usr/src/linux-2.2.16/include not - I/usr/src/linux-2.2.16/include/linux works. However, I still get the warning message: Ignoring changed section attributes for .modinfo. |