Hello,<br><br>I've been trying to track down the URL where I can look for additional patches (if any) for the Linux kernel that I used to build CLFS.  I am having trouble compiling an application that uses the swab.h header file in the /usr/include/linux/byteorder directory.
<br><br>Here's the error I am getting:<br><div style="margin-left: 40px;">archiver Makefile - compiling: source/cdrom/ArcCDInterface.cpp<br>In file included from /home/whitney/olymed/olylfs/usr/include/linux/byteorder/little_endian.h:12,
<br>                 from /home/whitney/olymed/olylfs/usr/include/asm/byteorder.h:6,<br>                 from /home/whitney/olymed/olylfs/usr/include/linux/cdrom.h:14,<br>                 from source/cdrom/ArcCDInterface.cpp:25:
<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:80:1: error: "___constant_swab16" redefined<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:55:1: error: this is the location of the previous definition
<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:81:1: error: "___constant_swab32" redefined<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:59:1: error: this is the location of the previous definition
<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:82:1: error: "___constant_swab64" redefined<br>/home/whitney/olymed/olylfs/usr/include/linux/byteorder/swab.h:65:1: error: this is the location of the previous definition
<br>make[1]: *** [release/cdrom/ArcCDInterface.o] Error 1<br></div><br><br>Upon examination of swab.h, it is quite apparent what is causing the issue.  Here's a sample:<br><br><div style="margin-left: 40px;"> 55 #define ___constant_swab16(x) \
<br> 56         ((__u16)( \<br> 57                 (((__u16)(x) & (__u16)0x00ffU) << 8) | \<br> 58                 (((__u16)(x) & (__u16)0xff00U) >> 8) ))<br>...<br> 80 #define ___constant_swab16(x) __bswap_constant_16(x)
<br></div><br>Normally the redeclaration of a constant, or in this case a macro, would cause a warning to be issued by GCC, however I am compiling with the -Werror option.  Either way, it seems odd that a multiple definition of this macro exists.  I've noticed in the headers for kernel 
2.6.23.1-21 on my Fedora 7 system the issue no longer exists.  Is there a remedy for this issue (i.e. a patch) if I wish to remain using the kernel version <a href="http://2.6.17.13">2.6.17.13</a> as specified in the CLFS-1.0
 guide?<br><br>Thank you in advance for your suggestions.<br><br>Dave<br><br>