#1 Does not compile under FreeBSD 4,5,6

open
nobody
None
5
2006-10-21
2006-10-21
Anonymous
No

Steps to reproduce:

1. download http://unfix.org/projects/ecmh/download/
ecmh_2005.02.09.tar.gz

2. untar

3. read README

4. cd src

5. edit Makefile and uncomment the FreeBSD specific lines

6. make

7. bail out with following errors:

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

To my knowledge SIOCGIFNAME is not available on FreeBSD.

René

Discussion