Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 4ae2b7836b40174e555c688fe03e1b37 > files > 23

nsd-3.2.15-2.fc18.i686.rpm

Compiling with the Intel C Compiler (ICC) version 7.0.

Configure NSD to use ICC.

$ CC=icc ./configure [configure-options]

Then everything should compile (just ignore the warnings), except on
RedHat 8.0.  This is due to a bug in the GNU C library used.  This bug
may apply to other Linux distributions or systems using the GNU C
library.

To compile NSD with the ICC compiler on RedHat 8.0 you need to patch
the file /usr/include/bits/byteswap.h.  The following patch should
work:

--- byteswap.h.orig	2003-02-26 13:59:41.000000000 +0100
+++ byteswap.h	2003-02-26 13:59:57.000000000 +0100
@@ -81,7 +81,7 @@
 	 __v; }))
 # endif
 #else
-# define __bswap_16(x) \
+# define __bswap_32(x) \
      (__extension__							      \
       ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
 #endif