GithubHelp home page GithubHelp logo

honwen / openwrt-shadowsocksr Goto Github PK

View Code? Open in Web Editor NEW
146.0 13.0 49.0 261 KB

ShadowsocksR-libev for OpenWrt/LEDE

License: GNU General Public License v3.0

Makefile 100.00%
shadowsocksr lede openwrt

openwrt-shadowsocksr's Issues

libmbedcrypto.so.0 not found

Hi

Running on glinet Ar300m i get the following error:

Error loading shared library libmbedcrypto.so.0: No such file or directory (needed by /usr/bin/ssr-redir)
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_update: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_free: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_setkey: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_aes_setkey_enc: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_finish: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_hmac: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_reset: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_starts: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_update: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_set_iv: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_aes_crypt_cbc: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_get_size: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_init: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_setup: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_setup: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_info_from_type: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_free: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_cipher_info_from_string: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md_info_from_string: symbol not found
Error relocating /usr/bin/ssr-redir: mbedtls_md5: symbol not found

ERROR: package/feeds/base/mbedtls failed to build.

Hello,I use "openwrt-sdk-23.05.0-ramips-mt7621_gcc-12.3.0_musl.Linux-x86_64.tar.xz" , When compiling the project, I keep getting errors.Include "FAILED: library/CMakeFiles/mbedcrypto_static.dir/bignum.c.o '“{standard input}: Assembler messages:
{standard input}:35: Error: invalid operands lw $10,12($sp)' {standard input}:36: Error: invalid operands lw $11,16($sp)'
{standard input}:37: Error: invalid operands lw $12,4($sp)' {standard input}:38: Error: invalid operands lw $13,20($sp)'
{standard input}:39: Error: invalid operands lw $14,0($10)' {standard input}:40: Error: invalid operands multu $13,$14'
{standard input}:41: Error: unrecognized opcode `addi $10,$10,4'

“time: package/feeds/base/mbedtls/compile#0.87#0.11#0.91
ERROR: package/feeds/base/mbedtls failed to build.
make[2]: *** [package/Makefile:120: package/feeds/base/mbedtls/compile] Error 1
make[2]: Leaving directory '/home/desktop-ubuntu/桌面/openwrt'
make[1]: *** [package/Makefile:114: /home/desktop-ubuntu/桌面/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/desktop-ubuntu/桌面/openwrt'
make: *** [/home/desktop-ubuntu/桌面/openwrt/include/toplevel.mk:225:world] 错误 2
”I don't know what's wrong,How to solve it? Thank you

can't make it on OpenWrt 21.02.2

hello Master ! hope everthing is fine to you.
I use this project on my portable openwrt for several year,it's really good ,many thanks
I can make it on lede17.01 and OpenWrt SNAPSHOT r17840-76817fff14 / LuCI Master git-21.168.43899-e8a6f0b

But I can't make it on OpenWrt 21.02.2 ,could you give me a little tips to solve the problem

Here are the logs,environment: Ubuntu 22.04.3 LTS

mv -f .deps/ss_local-http.Tpo .deps/ss_local-http.Po ccache_cc -DHAVE_CONFIG_H -I. -I.. -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/usr/include -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include/fortify -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -MT ss_local-tls.o -MD -MP -MF .deps/ss_local-tls.Tpo -c -o ss_local-tls.o test -f 'tls.c' || echo './'tls.c mv -f .deps/ss_local-tls.Tpo .deps/ss_local-tls.Po ccache_cc -DHAVE_CONFIG_H -I. -I.. -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/usr/include -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include/fortify -I/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/include -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -MT ss_local-rule.o -MD -MP -MF .deps/ss_local-rule.Tpo -c -o ss_local-rule.o test -f 'rule.c' || echo './'rule.c mv -f .deps/ss_local-rule.Tpo .deps/ss_local-rule.Po /bin/bash ../libtool --tag=CC --mode=link ccache_cc -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -Wl,-static -static -static-libgcc -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib -o ss-local ss_local-utils.o ss_local-jconf.o ss_local-json.o ss_local-encrypt.o ss_local-udprelay.o ss_local-cache.o ss_local-acl.o ss_local-netutils.o ss_local-local.o ss_local-http.o ss_local-tls.o ss_local-rule.o ../libipset/libipset.la ../libcork/libcork.la ../libev/libev.la ../libsodium/src/libsodium/libsodium.la ../libudns/libudns.la -lmbedcrypto -lpcre OpenWrt-libtool: link: ccache_cc -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libev -I../libudns -I../libsodium/src/libsodium/include -I../libipset/include -I../libcork/include -DMODULE_LOCAL -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -ffile-prefix-map=/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543=shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -DPCRE_STATIC -I/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include -Wl,-static -static-libgcc -o ss-local ss_local-utils.o ss_local-jconf.o ss_local-json.o ss_local-encrypt.o ss_local-udprelay.o ss_local-cache.o ss_local-acl.o ss_local-netutils.o ss_local-local.o ss_local-http.o ss_local-tls.o ss_local-rule.o -L/home/jack4/ea6350chen/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/lib ../libipset/.libs/libipset.a ../libcork/.libs/libcork.a ../libev/.libs/libev.a ../libsodium/src/libsodium/.libs/libsodium.a ../libudns/.libs/libudns.a -lmbedcrypto -lpcre /home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/10.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ss_local-http.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/http.h:32: multiple definition of http_protocol'; ss_local-local.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/http.h:32: first defined here
/home/jack4/ea6350chen/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-10.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/10.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: ss_local-tls.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/tls.h:31: multiple definition of tls_protocol'; ss_local-local.o:/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src/tls.h:31: first defined here collect2: error: ld returned 1 exit status make[5]: *** [Makefile:625: ss-local] Error 1 make[5]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/src' make[4]: *** [Makefile:478: all-recursive] Error 1 make[4]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543' make[3]: *** [Makefile:387: all] Error 2 make[3]: Leaving directory '/home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev/shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543' make[2]: *** [Makefile:90: /home/jack4/ea6350chen/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/shadowsocksr-libev//shadowsocksr-libev-2018-03-07-d63ff863800a5645aca4309d5dd5962bd1e95543/.built] Error 2 make[2]: Leaving directory '/home/jack4/ea6350chen/package/feeds/openwrt-shadowsocksr' time: package/feeds/openwrt-shadowsocksr/compile#30.43#6.77#47.84 ERROR: package/feeds/openwrt-shadowsocksr failed to build. make[1]: *** [package/Makefile:116: package/feeds/openwrt-shadowsocksr/compile] Error 1 make[1]: Leaving directory '/home/jack4/ea6350chen' make: *** [/home/jack4/ea6350chen/include/toplevel.mk:230: package/feeds/openwrt-shadowsocksr/compile] Error 2
jack4@jack4HP:~/ea6350chen$

报错了

make[5]: Entering directory '/home/wsh/openwrt/build_dir/target-x86_64_musl/curl-7.58.0/lib'
CC vtls/libcurl_la-mbedtls.lo
vtls/mbedtls.c: In function 'Curl_mbedtls_sha256sum':
vtls/mbedtls.c:1032:3: error: implicit declaration of function 'mbedtls_sha256_ret'; did you mean 'mbedtls_sha256_free'? [-Werror=implicit-function-declaration]
mbedtls_sha256_ret(input, inputlen, sha256sum, 0);
^~~~~~~~~~~~~~~~~~
mbedtls_sha256_free
cc1: some warnings being treated as errors
Makefile:2153: recipe for target 'vtls/libcurl_la-mbedtls.lo' failed
make[5]: *** [vtls/libcurl_la-mbedtls.lo] Error 1
make[5]: Leaving directory '/home/wsh/openwrt/build_dir/target-x86_64_musl/curl-7.58.0/lib'
Makefile:921: recipe for target 'install-recursive' failed
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory '/home/wsh/openwrt/build_dir/target-x86_64_musl/curl-7.58.0'
Makefile:179: recipe for target '/home/wsh/openwrt/build_dir/target-x86_64_musl/curl-7.58.0/.built' failed
make[3]: *** [/home/wsh/openwrt/build_dir/target-x86_64_musl/curl-7.58.0/.built] Error 2
make[3]: Leaving directory '/home/wsh/openwrt/package/network/utils/curl'
package/Makefile:106: recipe for target 'package/network/utils/curl/compile' failed
make[2]: *** [package/network/utils/curl/compile] Error 2
make[2]: Leaving directory '/home/wsh/openwrt'
package/Makefile:102: recipe for target '/home/wsh/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile' failed
make[1]: *** [/home/wsh/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/wsh/openwrt'
/home/wsh/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

Makefile' has a build dependency on 'libmbedtls', which does not exist

Hey Chen
thanks for updating your repository again
when I try compile your newest one

I found this(even I try modify libmbedltls to libmbedtls)

.........................................................................................................
WARNING: Makefile 'package/feeds/openwrt-shadowsocksr/Makefile' has a build dependency on 'libmbedtls', which does not exist
WARNING: Makefile 'package/feeds/openwrt-shadowsocksr/Makefile' has a build dependency on 'libpcre', which does not exist

is there some wrong

please help

shadowsocksR无法启动

路由器型号:WNDR3800CH
路由器固件版本:OpenWrt SNAPSHOT r7093-4fdc6ca / LuCI Master (git-18.152.60731-18b5b06)
固件内核版本:4.9.105
使用的shadowsocksR版本:17a3f97的releases中的
shadowsocksr-libev_2.5.2-d4904568c0bd7e0861c0cbfeaa43740f404db214_mips_24kc.ipk
启动延时:选择“未启用”与”5秒“均无法启动shadowsocksR
日志:
[2018-06-02 19:02:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:03:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:04:01] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:05:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:06:00] Problem-DNS decteted, restarting shadowsocksr...
udhcpc: started, v1.28.3
udhcpc: sending discover
udhcpc: no lease, failing
[2018-06-02 19:07:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:08:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:09:00] Problem decteted, restarting shadowsocksr...
[2018-06-02 19:10:00] Problem decteted, restarting shadowsocksr...

/usr/bin
image

如何让ssr-redir将DNS请求转发到DNSCrypt-proxy并顺畅运行?

在固件版本19.07.0-rc2、内核版本4.14.156的openwrt上经过编译后成功安装openwrt-shadowsocksr与相应的luci-app-shadowsocksr,并按照 https://github.com/shadowsocksrr/shadowsocksr-libev/blob/Akkariiin/master/doc/ss-redir.asciidoc 范例中的指示运行了ssr-redir并添加了可用的服务器。

但当开启透明代理后不久ssr-redir自动停止,日志显示与dns有关,我想是ssr未能将dns请求转发到dnscrypt-proxy。

我根据 https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Installation-on-OpenWRT 成功安装并设置了DNSCrypt-proxy到“127.0.0.5:53”(dnsmasq为127.0.0.1:53),用了配备国内外ip分流规则的DoH服务器(ssr也将“**ip网段”的txt文件加入被忽略IP列表了)。按理说能顺畅运行才对,我猜想本地解析并未完全转到dnsmasq再转到dnscrypt-proxy,想请求帮助。
(在ss-redir的iptables新链设定中,我把使用的ssr服务器统统加入了忽略的地址。但在dnscrypt-proxy相关的设定里我没有添加额外的忽略地址,不知是否与此有关?(请见上一段引用网址。)若有关,我是否应当添加ssr服务器以及其他一些地址?)

以上是正文,作为一个受惠于ss及ssr的普通用户,我非常感谢软件的各位创作者,鞠躬。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.