Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 6ef5d93f59820a2a156a282f13852c2e > files > 19

nsd-3.2.2-1mdv2010.0.i586.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