Red Hat Bugzilla – Bug 84014
/usr/include/linux/sonet.h from glibc-kernelheaders is broken on 7.3
Last modified: 2015-01-04 17:02:18 EST
Description of problem:
sonet.h is borked
Version-Release number of selected component (if applicable):
Steps to Reproduce:
gcc -E /usr/include/linux/sonet.h || echo SONET.H IS BORKED
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,H1 (0xff for unknown) */
The same in RH 8.0
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.
This problem is still present in FC1!!!
Fixed in 2.4-8.38 by removing the #undef AND the k_ structure.