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

mac os10.13上面运行start.command提示symbol binding failed: Symbol not found: ____chkstk_darwin #352

Closed
chenr0129 opened this issue Mar 23, 2020 · 14 comments

Comments

@chenr0129
Copy link

chendeiMac:trojan chen$ ./trojan
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /Users/chen/Desktop/trojan/./trojan (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
Referenced from: /Users/chen/Desktop/trojan/./trojan (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib

Abort trap: 6
chendeiMac:trojan chen$

@KunagisaYuki
Copy link

@chenr0129 Update your OS.

@petsgre
Copy link

petsgre commented Mar 23, 2020

is there any solution avoid to update mac OS?

@GreaterFire
Copy link
Member

@petsgre Hold on. Looking into this. What's the version you are running?

@petsgre
Copy link

petsgre commented Mar 23, 2020

@GreaterFire macos mojave 10.13 and trojan 1.15

@GreaterFire
Copy link
Member

@chenr0129 @petsgre See if this works. If it works, I'll replace the release version with this file.
trojan-1.15.0-macos.zip

@petsgre
Copy link

petsgre commented Mar 24, 2020

@GreaterFire I upgraded my mac to 10.13 Higt Sierra ,and used trojan 1.14.0,it works fine now.
And i tested trojan that you provided with current mac version,trojan runed,but can't connnect with internet

@GreaterFire
Copy link
Member

@petsgre Please provide some logs or I can't help you.

@XieJiSS
Copy link

XieJiSS commented Mar 30, 2020

@GreaterFire No, this was not fixed by the version 1.15.1.

The new binary you attached before resulted in this:

$ ./trojan
Welcome to trojan 1.15.0
[2020-03-30 14:43:51] [WARN] trojan service (client) started at 127.0.0.1:1080
[2020-03-30 14:43:54] [INFO] 127.0.0.1:51515 requested connection to github.com:443
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Applications/trojan/./trojan
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /Applications/trojan/./trojan
  Expected in: /usr/lib/libSystem.B.dylib

zsh: abort      ./trojan

which is the same error message as that of release 1.15.1.

There's no hardship starting either version's binary, but as soon as I try to actually use it to access the Internet, it breaks and triggers Apple's error reporting process.

According to this link and this link, this might be caused by a too-high Xcode version (>= 11) specified on the CI.

@GreaterFire
Copy link
Member

I can't help with it since Azure Pipelines recently removed macOS 10.13. Instead, try installing through brew: brew install trojan-gfw/trojan/trojan.

@XieJiSS
Copy link

XieJiSS commented Mar 30, 2020

OK, thanks anyway

And it would be nice if this could be mentioned as a note for macOS 10.13 users ;-)

@Wnine16
Copy link

Wnine16 commented Apr 4, 2020

I had the same problem on OS X El Capitan (10.11.6), it worked fine before as the version (1.14.1). Since I update to 1.15.0, I got this error. (the same as 1.15.1).

我在10.11.6这个版本的mac中也遇到了这个问题,之前一直都正常的,版本(<=1.14.1)都是可以用的,自从1.15.0 (包括1.15.1) 开始,就会有同样的提示错误了。

@GreaterFire
Copy link
Member

Please don't report this issue anymore - it won't be fixed. Install trojan via brew instead.

@cc978
Copy link

cc978 commented Apr 8, 2020

从 brew 上安装 trojan 的确没这个bug了,看情况是从源码编译的,如下。
不过 trojan 14 和 15 服务端和客户端貌似不兼容,还是要保留多个版本。

==> Installing trojan from trojan-gfw/trojan
==> Downloading https://github.com/trojan-gfw/trojan/archive/v1.15.1.tar.gz
==> Downloading from https://codeload.github.com/trojan-gfw/trojan/tar.gz/v1.15.
######################################################################## 100.0%
==> sed -i  s/server\.json/client.json/ CMakeLists.txt
==> cmake . -DENABLE_MYSQL=OFF
==> make install
==> Caveats

@GreaterFire
Copy link
Member

They are compatible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants