wltc2005 / openwrt-redsocks2 Goto Github PK
View Code? Open in Web Editor NEW为OpenWRT编译Redsocks2而写的Makefile
为OpenWRT编译Redsocks2而写的Makefile
交叉编译后安装到OpenWrt,配置文件 /etc/config/redsocks2 和原项目 semigodking/redsocks 的格式不一样,而且配置项名称也不一样,该如何配置呢?
您好, 我用openwrt sdk下编译您的这个redsocks2, 但编译通不过, 想请教一下如何解决, 谢谢!
x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/redsocks2//redsocks2-0.67:redsocks2-0.67 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/usr/include -I/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/target-x86_64_musl/include -I/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/usr/include -I/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include/fortify -I/home/op/openwrt-sdk-19.07.1-x86-64_gcc-7.5.0_musl.Linux-x86_64/staging_dir/toolchain-x86_64_gcc-7.5.0_musl/include -fPIC -O3 -D_BSD_SOURCE -D_DEFAULT_SOURCE -Wall -std=c99 -D_XOPEN_SOURCE=600 -DUSE_CRYPTO_OPENSSL -c -o encrypt.o encrypt.c
In file included from encrypt.c:50:0:
encrypt.h:92:18: error: field 'evp' has incomplete type
cipher_evp_t evp;
^~~
encrypt.c: In function 'enc_key_init':
encrypt.c:919:17: error: storage size of 'cipher_info' isn't known
cipher_kt_t cipher_info;
^~~~~~~~~~~
encrypt.c:919:17: warning: unused variable 'cipher_info' [-Wunused-variable]
At top level:
encrypt.c:146:12: warning: 'crypto_stream_xor_ic' defined but not used [-Wunused-function]
static int crypto_stream_xor_ic(uint8_t *c, const uint8_t *m, uint64_t mlen,
^~~~~~~~~~~~~~~~~~~~
encrypt.c:139:18: warning: 'supported_ciphers_key_size' defined but not used [-Wunused-const-variable=]
static const int supported_ciphers_key_size[] =
^~~~~~~~~~~~~~~~~~~~~~~~~~
encrypt.c:134:18: warning: 'supported_ciphers_iv_size' defined but not used [-Wunused-const-variable=]
static const int supported_ciphers_iv_size[] =
^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [: encrypt.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.