Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want Mac support... #1

Open
kennym opened this issue Mar 2, 2014 · 12 comments
Open

I want Mac support... #1

kennym opened this issue Mar 2, 2014 · 12 comments

Comments

@kennym
Copy link
Collaborator

kennym commented Mar 2, 2014

...because I am an Apple user. ;)

@matiasinsaurralde
Copy link
Owner

ok, i'll get a mac and start working on it :)

@kennym
Copy link
Collaborator Author

kennym commented Mar 2, 2014

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

@matiasinsaurralde
Copy link
Owner

Take a look: http://tuntaposx.sourceforge.net/

@kennym
Copy link
Collaborator Author

kennym commented Mar 3, 2014

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.

@matiasinsaurralde
Copy link
Owner

Cool, I have it on my vps too. I'll write a quick readme in a few hours, pointing details about missing functionality.

@ryanjamurphy
Copy link

@kennym any luck on this? any way I can help?

@acipm
Copy link

acipm commented Apr 20, 2015

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 ...

@kennym
Copy link
Collaborator Author

kennym commented Apr 20, 2015

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?

@TalentFang
Copy link

Hi kennym:
is there any solution found for this problem? thanks.

@theGowda
Copy link

http://tuntaposx.sourceforge.net/

were you able to find a solution?

@kennym
Copy link
Collaborator Author

kennym commented Mar 18, 2023

Nope, and I'm pretty sure Facebook has changed their API by a lot by now, but please try.

@theGowda
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants