Open kennym opened 10 years ago
ok, i'll get a mac and start working on it :)
Cuando corro sudo make
me tira ese error - vos sabes cual librería usar en vez de linux/if.h
para OS X?
+ glibtoolize
+ aclocal -I m4
+ autoconf
+ automake --add-missing
/bin/sh: /Users/kenny/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
tun_dev.c:35:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
^
1 error generated.
make: *** [main] Error 1
Take a look: http://tuntaposx.sourceforge.net/
Looks kind of not-maintained. Maybe I can come up with something better, give me until this weekend. I've got it running on my VPS in the mean-time.
Cool, I have it on my vps too. I'll write a quick readme in a few hours, pointing details about missing functionality.
@kennym any luck on this? any way I can help?
I tried to replace it with #include <net/if.h>
. I'm not sure if that is a good solution but the error is gone. The next error it shows is:
/Users/.../facebook-tunnel/tun.cpp:43:10: fatal error:
'linux/if_tun.h' file not found
#include <linux/if_tun.h>
^
1 error generated.
make[2]: *** [CMakeFiles/tun.dir/tun.cpp.o] Error 1
make[1]: *** [CMakeFiles/tun.dir/all] Error 2
make: *** [all] Error 2
After googling around i guess Mac does not have if_tun.h
in /usr/include/net/
, so I'm stuck here.
Maybe someone should just rewrite tun.cpp
and tun.c
for Mac ...
After googling around i guess Mac does not have if_tun.h in /usr/include/net/, so I'm stuck here. Maybe someone should just rewrite tun.cpp and tun.c for Mac ...
That's what is blocking me on Darwin. Anyone smart enough to come up with an implementation or alternative?
Hi kennym: is there any solution found for this problem? thanks.
were you able to find a solution?
Nope, and I'm pretty sure Facebook has changed their API by a lot by now, but please try.
Ya I was not concerned about facebook tunnel specifically. I was just trying to port an old code base written for linux to mac os. And this if.h was the only thing remaining. So wanted to know how you all fixed it. Cheers!
...because I am an Apple user. ;)