Bug 74520
Summary: | when compiling programs to use quotactl no compile possible because of conflicting structs in quota.h headers | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | John Wiggins <wiggins1> |
Component: | glibc-kernheaders | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | jpdalbec, thoron |
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: | 2004-10-07 13:23:33 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
John Wiggins
2002-09-25 22:21:26 UTC
See also bug #90939. "man quotactl" says to include only <linux/quota.h>. Where do you see a need to include <sys/quota.h>? Even though "man quatactl" says include only <linux/quota.h> it does not compile until I make the above change. What I've done in a similar case is to include only <sys/quota.h> and then redefine Q_GETQUOTA and any other stuff I need from <linux/quota.h> in the source file. This approach was especially useful when kernel 2.4.20 broke all previous quotactl ABI's and I had to use definitions from /usr/src/redhat/kernel-2.4.20/linux-2.4.20/include/linux/quota.h. You should avoid including both linux and glibc headers. |