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

MT7621 get "Error relocating" when running binaries in shadowsocks-v1.8.23.mipsel-unknown-linux-musl.tar.xz release #311

Closed
freakinyy opened this issue Nov 3, 2020 · 6 comments · Fixed by #312

Comments

@freakinyy
Copy link

root@xxxx:~/bin# cat /proc/cpuinfo | grep "system type"
system type : MediaTek MT7621 ver:1 eco:3
root@xxxx:~/bin# uname -a
Linux xxxx 4.14.171 #0 SMP Thu Feb 27 21:05:12 2020 mips GNU/Linux
root@xxxx:~/bin# ./sslocal
Error relocating ./sslocal: __select_time64: symbol not found
Error relocating ./sslocal: __gettimeofday_time64: symbol not found
Error relocating ./sslocal: __fstat_time64: symbol not found
Error relocating ./sslocal: __time64: symbol not found
Error relocating ./sslocal: __stat_time64: symbol not found
Error relocating ./sslocal: __clock_gettime64: symbol not found
Error relocating ./sslocal: __gmtime64_r: symbol not found

Running other binaries from the package get the same errors.
If I downloaded the release for wrong target? Or must I build binaries from source for this cpu?

@zonyitoo
Copy link
Collaborator

zonyitoo commented Nov 3, 2020

Or must I build binaries from source for this cpu?

It seems so. You may try to compile one by yourself.

@abcfy2
Copy link
Contributor

abcfy2 commented Nov 3, 2020

Known issue: rust-lang/libc#1848

So a quick fix is just downgrade cross toolchain which using musl 1.1.x. Like:

https://github.com/shadowsocks/shadowsocks-rust/blob/master/build/Dockerfile.arm-unknown-linux-musleabi

Also, you may try this build. Is this working for you ?
shadowsocks-v1.8.24.mips-unknown-linux-musl.zip

@freakinyy
Copy link
Author

Known issue: rust-lang/libc#1848

So a quick fix is just downgrade cross toolchain which using musl 1.1.x. Like:

https://github.com/shadowsocks/shadowsocks-rust/blob/master/build/Dockerfile.arm-unknown-linux-musleabi

Also, you may try this build. Is this working for you ?
shadowsocks-v1.8.24.mips-unknown-linux-musl.zip

Nope. This one is for mips. I'm sure mt7621 is mipsel. But I still tried.

root@xxxx:~/bin# ./sslocal
./sslocal: line 1: syntax error: unexpected "("

@abcfy2
Copy link
Contributor

abcfy2 commented Nov 3, 2020

How about this one ?

shadowsocks-v1.8.24.mipsel-unknown-linux-musl.zip

@freakinyy
Copy link
Author

How about this one ?

shadowsocks-v1.8.24.mipsel-unknown-linux-musl.zip

Yes this works.

@abcfy2
Copy link
Contributor

abcfy2 commented Nov 4, 2020

OK. I'll make a PR to fix this issue.

abcfy2 added a commit to abcfy2/shadowsocks-rust that referenced this issue Nov 4, 2020
zonyitoo pushed a commit that referenced this issue Nov 4, 2020
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

Successfully merging a pull request may close this issue.

3 participants