cjdelisle/cjdns — Issue #7: tun/tap doesn't work on osx
Author: fintler
Created: 2012-01-23 07:59:26+00:00
State: open

Just for reference, here's the current error output.

jonb@aviso ~/cjdns/build> make master!?
Scanning dependencies of target interface
[ 2%] Building C object interface/CMakeFiles/interface.dir/UDPInterface.o
[ 4%] Building C object interface/CMakeFiles/interface.dir/TUNInterface.o
/Users/jonb/cjdns/interface/TUNInterface.c:16:22: error: linux/if.h: No such file or directory
/Users/jonb/cjdns/interface/TUNInterface.c:17:26: error: linux/if_tun.h: No such file or directory
/Users/jonb/cjdns/interface/TUNInterface.c: In function ‘openTunnel’:
/Users/jonb/cjdns/interface/TUNInterface.c:48: error: storage size of ‘ifRequest’ isn’t known
/Users/jonb/cjdns/interface/TUNInterface.c:49: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’
/Users/jonb/cjdns/interface/TUNInterface.c:49: error: invalid application of ‘sizeof’ to incomplete type ‘struct ifreq’
/Users/jonb/cjdns/interface/TUNInterface.c:50: error: ‘IFF_TUN’ undeclared (first use in this function)
/Users/jonb/cjdns/interface/TUNInterface.c:50: error: (Each undeclared identifier is reported only once
/Users/jonb/cjdns/interface/TUNInterface.c:50: error: for each function it appears in.)
/Users/jonb/cjdns/interface/TUNInterface.c:50: error: ‘IFF_NO_PI’ undeclared (first use in this function)
/Users/jonb/cjdns/interface/TUNInterface.c:52: error: ‘IFNAMSIZ’ undeclared (first use in this function)
/Users/jonb/cjdns/interface/TUNInterface.c:60: error: ‘TUNSETIFF’ undeclared (first use in this function)
cc1: warnings being treated as errors
/Users/jonb/cjdns/interface/TUNInterface.c:48: warning: unused variable ‘ifRequest’
make[2]: *** [interface/CMakeFiles/interface.dir/TUNInterface.o] Error 1
make[1]: *** [interface/CMakeFiles/interface.dir/all] Error 2
make: *** [all] Error 2
jonb@aviso ~/cjdns/build>