Trouble compiling CLANG on on RHEL 3.0

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)
And I get the following error. Do I have any hope of fixing or working around this ?
Has anyone seen this or know what the fix might be?

Everything compiles except for compilter-rt component.

Thx,
Sarvi

--------In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:
In file included from /usr/include/linux/mroute.h:5:
/usr/include/linux/in.h:25:3: error: redefinition of enumerator ‘IPPROTO_IP’
IPPROTO_IP = 0, /* Dummy protocol for TCP /
^
/usr/include/netinet/in.h:34:21: note: expanded from macro ‘IPPROTO_IP’
#define IPPROTO_IP IPPROTO_IP
^
/usr/include/netinet/in.h:33:5: note: previous definition is here
IPPROTO_IP = 0, /
Dummy protocol for TCP. /
^
In file included from /nobackup/sarvi/clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:65:
In file included from /usr/include/linux/mroute.h:5:
/usr/include/linux/in.h:26:3: error: redefinition of enumerator ‘IPPROTO_ICMP’
IPPROTO_ICMP = 1, /
Internet Control Message Protocol /
^
/usr/include/netinet/in.h:38:23: note: expanded from macro ‘IPPROTO_ICMP’
#define IPPROTO_ICMP IPPROTO_ICMP
^
/usr/include/netinet/in.h:37:5: note: previous definition is here
IPPROTO_ICMP = 1, /
Internet Control Message Protocol. */
^

+eugenis

I don't have access to RHEL 3.0, but if you can figure out what's
wrong with the headers there - patches are welcome. It might be as
easy as reordering some of the include lines, or removing one of the
two.

Note that I've just shuffled the includes in that file a bit, it might
have fixed your issue (but unlikely).