xref: /netbsd-src/external/bsd/nsd/dist/doc/README.icc (revision d83a80ee7fb31190352cf1f781441e06ca6a86db)
1*d83a80eeSchristosCompiling with the Intel C Compiler (ICC) version 7.0.
2*d83a80eeSchristos
3*d83a80eeSchristosConfigure NSD to use ICC.
4*d83a80eeSchristos
5*d83a80eeSchristos$ CC=icc ./configure [configure-options]
6*d83a80eeSchristos
7*d83a80eeSchristosThen everything should compile (just ignore the warnings), except on
8*d83a80eeSchristosRedHat 8.0.  This is due to a bug in the GNU C library used.  This bug
9*d83a80eeSchristosmay apply to other Linux distributions or systems using the GNU C
10*d83a80eeSchristoslibrary.
11*d83a80eeSchristos
12*d83a80eeSchristosTo compile NSD with the ICC compiler on RedHat 8.0 you need to patch
13*d83a80eeSchristosthe file /usr/include/bits/byteswap.h.  The following patch should
14*d83a80eeSchristoswork:
15*d83a80eeSchristos
16*d83a80eeSchristos--- byteswap.h.orig	2003-02-26 13:59:41.000000000 +0100
17*d83a80eeSchristos+++ byteswap.h	2003-02-26 13:59:57.000000000 +0100
18*d83a80eeSchristos@@ -81,7 +81,7 @@
19*d83a80eeSchristos 	 __v; }))
20*d83a80eeSchristos # endif
21*d83a80eeSchristos #else
22*d83a80eeSchristos-# define __bswap_16(x) \
23*d83a80eeSchristos+# define __bswap_32(x) \
24*d83a80eeSchristos      (__extension__							      \
25*d83a80eeSchristos       ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
26*d83a80eeSchristos #endif
27