Compiling ftp://ftp.funet.fi/pub/mirrors/ftp.inr.ac.ru/ip-routing/iputils-ss020124.tar.gz isn't going well for me with my otherwise nifty gcc-3.3.1-glibc-2.3.2-linux-2.4.21 toolchain (worked fine with Hard Hat 2.0, which used a much older compiler and glibc). Here's the error I get:
In file included from ping6.c:71: /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/in6.h:31: error: redefinition of `struct in6_addr' /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/in6.h:52: error: redefinition of `struct sockaddr_in6' /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/in6.h:60: error: redefinition of `struct ipv6_mreq' In file included from ping6.c:72: /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/ipv6.h:18: error: redefinition of `struct in6_pktinfo'
It looks like both /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/netinet/in.h and /gcc-3.3.1-glibc-2.3.2/powerpc-750-linux-gnu/sys-include/linux/in6.h define 'struct in6_addr'. This isn't suprising; same thing happens with the ipv4 structures, only that doesn't cause a conflict for some reason. I wonder if the 'glibcbugs' workarounds in the iputils package are
Anyone run into this before? - Dan
-- Dan Kegel http://www.kegel.com http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html