redsocks icon indicating copy to clipboard operation
redsocks copied to clipboard

Failed to build on FreeBSD due to unconditional usage of splice() in sources

Open vgrebenschikov opened this issue 8 years ago • 2 comments

cc -g -O2 -I/usr/local/include -std=c99 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -c -o redsocks.o redsocks.c redsocks.c:441:25: warning: implicit declaration of function 'splice' is invalid in C99 [-Wimplicit-function-declaration] const ssize_t sent = splice(c->pisrc->read, NULL, out, NULL, avail, SPLICE_F_MOVE|SPLICE_F_NONBLOCK); ^ redsocks.c:441:72: error: use of undeclared identifier 'SPLICE_F_MOVE' const ssize_t sent = splice(c->pisrc->read, NULL, out, NULL, avail, SPLICE_F_MOVE|SPLICE_F_NONBLOCK); ^

vgrebenschikov avatar Jul 19 '17 17:07 vgrebenschikov

Yep. Sorry, I have no permanent root access to machines running FreeBSD to test and develop for this platform. Was redsocks (e.g. v0.4) ever working for you? I've never tested it on FreeBSD and I'm unsure how to configure firewall for redsocks to receive TCP streams and UDP packets.

darkk avatar Feb 01 '18 17:02 darkk

I could offer you a freebsd vm for playing about in to help get it working if required

PaulGWebster avatar Aug 08 '19 19:08 PaulGWebster