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>
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. Kåre Särs
This problem is still present in FC1!!!
Fixed in 2.4-8.38 by removing the #undef AND the k_ structure.