<div dir="ltr">+eugenis</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jun 18, 2013 at 2:22 AM, Saravanan Shanmugham (sarvi) <span dir="ltr"><<a href="mailto:sarvi@cisco.com" target="_blank">sarvi@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<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>
</div>

<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>