SixXS::Sunset 2017-06-06

Building ecmh on FreeBSD 6 Release
[us] Shadow Hawkins on Sunday, 26 October 2008 00:05:12
I'm trying to compile ecmh on a machine running FreeBSD 6 Release, and I'm not getting anywhere. I have gmake, so I tried that with the following results:
[Compiling] gcc: ECMH_BPF: No such file or directory ecmh.c: In function `sendpacket6': ecmh.c:197: error: storage size of 'sa' isn't known ecmh.c:201: error: `AF_PACKET' undeclared (first use in this function) ecmh.c:201: error: (Each undeclared identifier is reported only once ecmh.c:201: error: for each function it appears in.) ecmh.c:197: warning: unused variable `sa' ecmh.c: In function `mld_send_report_all': ecmh.c:884: warning: unused variable `groupn' ecmh.c: At top level: ecmh.c:978: warning: unused parameter 'intn' ecmh.c:1041: warning: unused parameter 'iph' ecmh.c:1041: warning: unused parameter 'len' ecmh.c:1041: warning: unused parameter 'plen' ecmh.c:1097: warning: unused parameter 'iph' ecmh.c:1097: warning: unused parameter 'len' ecmh.c:1097: warning: unused parameter 'plen' ecmh.c:1171: warning: unused parameter 'iph' ecmh.c:1171: warning: unused parameter 'len' ecmh.c:1315: warning: unused parameter 'iph' ecmh.c:1315: warning: unused parameter 'len' ecmh.c:1315: warning: unused parameter 'mld' ecmh.c: In function `update_interfaces': ecmh.c:1998: error: `ARPHRD_SIT' undeclared (first use in this function) ecmh.c: In function `sigusr1': ecmh.c:2151: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2152: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2211: error: `ARPHRD_SIT' undeclared (first use in this function) ecmh.c:2231: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2232: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2233: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2234: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2235: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2236: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2264: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2265: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2266: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2267: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2268: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2269: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2270: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c: In function `handleinterfaces': ecmh.c:2402: error: storage size of 'sa' isn't known ecmh.c:2420: error: `ARPHRD_LOOPBACK' undeclared (first use in this function) ecmh.c:2421: error: `PACKET_OUTGOING' undeclared (first use in this function) ecmh.c:2402: warning: unused variable `sa' ecmh.c: In function `main': ecmh.c:2746: error: `PF_PACKET' undeclared (first use in this function) ecmh.c:2746: error: `ETH_P_ALL' undeclared (first use in this function) gmake[1]: *** [ecmh.o] Error 1 gmake: *** [ecmh] Error 2
So I tried the referenced instructions for FreeBSD without gmake, and got this:
[Compiling] ecmh.o ecmh.c: In function `mld_send_report_all': ecmh.c:884: warning: unused variable `groupn' ecmh.c: At top level: ecmh.c:1041: warning: unused parameter 'iph' ecmh.c:1041: warning: unused parameter 'len' ecmh.c:1041: warning: unused parameter 'plen' ecmh.c:1097: warning: unused parameter 'iph' ecmh.c:1097: warning: unused parameter 'len' ecmh.c:1097: warning: unused parameter 'plen' ecmh.c:1171: warning: unused parameter 'iph' ecmh.c:1171: warning: unused parameter 'len' ecmh.c:1315: warning: unused parameter 'iph' ecmh.c:1315: warning: unused parameter 'len' ecmh.c:1315: warning: unused parameter 'mld' ecmh.c: In function `sigusr1': ecmh.c:2151: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2152: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2231: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2232: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2233: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2234: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2235: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2236: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2264: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2265: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2266: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2267: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2268: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2269: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c:2270: warning: ISO C90 does not support the `ll' printf length modifier ecmh.c: In function `handleinterfaces': ecmh.c:2462: warning: declaration of 'timeout' shadows a global declaration ecmh.c:2325: warning: shadowed declaration is here ecmh.c:2480: warning: comparison between signed and unsigned ecmh.c:2458: warning: unused variable `op' ecmh.c:2460: warning: unused variable `ifr' ecmh.c:2463: warning: unused variable `ln' ecmh.c: In function `main': ecmh.c:2647: warning: string length `583' is greater than the length `509' ISO C89 compilers are required to support [Compiling] linklist.o [Compiling] common.o [Compiling] interfaces.o interfaces.c:14: warning: no previous prototype for 'int_create_bpf' interfaces.c: In function `int_create_bpf': interfaces.c:16: warning: declaration of 'devname' shadows a global declaration /usr/include/stdlib.h:253: warning: shadowed declaration is here interfaces.c:147: error: too many arguments to function `int_find_ipv4' interfaces.c: In function `int_create': interfaces.c:222: error: structure has no member named `ifr_ifindex' interfaces.c:223: error: `SIOCGIFNAME' undeclared (first use in this function) interfaces.c:223: error: (Each undeclared identifier is reported only once interfaces.c:223: error: for each function it appears in.) interfaces.c: In function `int_find_ipv4': interfaces.c:351: warning: unused variable `ln' interfaces.c: In function `local_remove': interfaces.c:521: warning: passing arg 1 of `local_find' from incompatible pointer type *** Error code 1 Stop in /usr/home/jody/ecmh-2005.02.09/src.
Is there something I'm missing, or is ecmh just not ready for FreeBSD 6?

Please note Posting is only allowed when you are logged in.

Static Sunset Edition of SixXS
©2001-2017 SixXS - IPv6 Deployment & Tunnel Broker