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

compiling tunsocks fails #5

Open
hunterforcode opened this issue Feb 24, 2018 · 2 comments
Open

compiling tunsocks fails #5

hunterforcode opened this issue Feb 24, 2018 · 2 comments

Comments

@hunterforcode
Copy link

I have installed the following packages before compilation.
libevent-core-2.0-5 libevent-dev libevent-extra-2.0-5 libevent-openssl-2.0-5 libevent-pthreads-2.0-5

The following steps which I have done are listed as follows:

git clone https://github.com/russdill/tunsocks.git
cd tunsocks/
git submodule update --init
./autogen.sh 
./configure --prefix=/usr
make

In the last step, the error message shows:

mv -f $depbase.Tpo $depbase.Po
src/libevent.c:45:32: fatal error: lwip/priv/tcp_priv.h: No such file or directory
 #include "lwip/priv/tcp_priv.h"
                                ^
compilation terminated.
Makefile:520: recipe for target 'src/libevent.o' failed
make: *** [src/libevent.o] Error 1

The detailed log could be checked out here.
https://pastebin.com/KzNPauru

Any suggestions would be appreciated.

@lfourquaux
Copy link

The attached patch makes it compile with the current version of lwip. I have not checked whether the resulting executable works.

patch.txt

@DanielO
Copy link

DanielO commented Jul 6, 2018

This patch got it building for me (on OSX) and it does work.
I have to use -D 127.0.0.1:8080 (ie the IP) otherwise it crashes (IPv6 issue).

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

3 participants