<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><br>
</div>
<div>I am trying to compile CLANG on RHEL 3.0 (yeah, its that old, but that’s the build environment I need to be able compile CLANG on)</div>
<div>And I get the following error. Do I have any hope of fixing or working around this ?</div>
<div>Has anyone seen this or know what the fix might be?</div>
<div><br>
</div>
<div>Everything compiles except for compilter-rt component.</div>
<div><br>
</div>
<div>Thx,</div>
<div>Sarvi</div>
<div><br>
</div>
<div>
<div>--------In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:</div>
<div>In file included from /usr/include/linux/mroute.h:5:</div>
<div>/usr/include/linux/in.h:25:3: error: redefinition of enumerator 'IPPROTO_IP'</div>
<div>  IPPROTO_IP = 0,               /* Dummy protocol for TCP               */</div>
<div>  ^</div>
<div>/usr/include/netinet/in.h:34:21: note: expanded from macro 'IPPROTO_IP'</div>
<div>#define IPPROTO_IP              IPPROTO_IP</div>
<div>                                ^</div>
<div>/usr/include/netinet/in.h:33:5: note: previous definition is here</div>
<div>    IPPROTO_IP = 0,        /* Dummy protocol for TCP.  */</div>
<div>    ^</div>
<div>In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:</div>
<div>In file included from /usr/include/linux/mroute.h:5:</div>
<div>/usr/include/linux/in.h:26:3: error: redefinition of enumerator 'IPPROTO_ICMP'</div>
<div>  IPPROTO_ICMP = 1,             /* Internet Control Message Protocol    */</div>
<div>  ^</div>
<div>/usr/include/netinet/in.h:38:23: note: expanded from macro 'IPPROTO_ICMP'</div>
<div>#define IPPROTO_ICMP            IPPROTO_ICMP</div>
<div>                                ^</div>
<div>/usr/include/netinet/in.h:37:5: note: previous definition is here</div>
<div>    IPPROTO_ICMP = 1,      /* Internet Control Message Protocol.  */</div>
<div>    ^</div>
</div>
<div><br>
</div>
</body>
</html>