Bug 84014 - /usr/include/linux/sonet.h from glibc-kernelheaders is broken on 7.3
/usr/include/linux/sonet.h from glibc-kernelheaders is broken on 7.3
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: glibc-kernheaders (Show other bugs)
7.3
All Linux
medium Severity medium
: ---
: ---
Assigned To: Dave Jones
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-10 18:29 EST by Mark Frazer
Modified: 2015-01-04 17:02 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-11-27 18:23:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Mark Frazer 2003-02-10 18:29:07 EST
Description of problem:
sonet.h is borked


Version-Release number of selected component (if applicable):
glibc-kernheaders-2.4-7.16.i386.rpm

How reproducible:
every time

Steps to Reproduce:
gcc -E /usr/include/linux/sonet.h || echo SONET.H IS BORKED

Additional info:
Here's a diff against the debian sonet.h
--- /usr/include/linux/sonet.h  Wed Oct 31 09:39:47 2001
+++ /net/dr/export/formark/sonet.h      Mon Feb 10 18:12:57 2003
@@ -56,7 +56,9 @@
 #define SONET_FRSENSE_SIZE 6           /* C1[3],H1[3] (0xff for unknown) */
 
 
+#ifndef __KERNEL__
 #undef __SONET_ITEMS
+#else
 
 #include <asm/atomic.h>
Comment 1 Igor 2003-03-11 07:09:04 EST
The same in RH 8.0
Comment 2 Kåre Särs 2003-10-20 09:07:29 EDT
The removed "#ifndef __KERNEL__" and "#else" breaks the header. 
 
This bug results in compilation problems when compiling "ATM on Linux". 
 
A solution would be to use the sonet.h file found in the linux kernel tree. 
 
This problem exists also in RH 9. 
 
 
  Kåre Särs 
 
Comment 3 Giacomo Magnini 2004-02-01 11:01:47 EST
This problem is still present in FC1!!!
Comment 4 Pete Zaitcev 2004-02-01 13:21:35 EST
Fixed in 2.4-8.38 by removing the #undef AND the k_ structure.

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