nxtrace / NTrace-core

NextTrace, an open source visual route tracking CLI tool
https://www.nxtrace.org
GNU General Public License v3.0
5.9k stars 348 forks source link

invalid reference to net.internetSocket #270

Closed BirkhoffLee closed 1 week ago

BirkhoffLee commented 3 weeks ago

本项目是基于Linux/macOS的,请确认您遇到的问题是否在Linux或macOS上存在。

你正在使用哪个版本的 nexttrace?

macOS_arm64

你看到的异常现象是什么?

Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Building subPackage .
# github.com/nxtrace/NTrace-core
link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket

你期待看到的正常表现是怎样的?

should build without error

请附上你的命令

$ nix-env -iA nixpkgs.nexttrace
installing 'nexttrace-1.3.5'
this derivation will be built:
  /nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv
building '/nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
source root is source
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Running phase: buildPhase
Building subPackage .
# github.com/nxtrace/NTrace-core
link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket
error: builder for '/nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/32hgqw19fnahzzgwb7q8yf8nxisv2asi-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Running phase: buildPhase
       > Building subPackage .
       > # github.com/nxtrace/NTrace-core
       > link: github.com/nxtrace/NTrace-core/trace/internal: invalid reference to net.internetSocket
       For full logs, run 'nix log /nix/store/k9h62iighv83fvgxrwq459w75bz8w5wj-nexttrace-1.3.5.drv'.

请附上出错时软件输出的错误信息

是否查询过本仓库wiki有没有类似错误

tsosunchia commented 3 weeks ago

macOS可以使用readme里提到的安装方法,该issue提到的方法没有测试过

不过通过观察错误代码,我猜测问题出在此安装方法在编译时使用的golang版本上,对于版本的选择可查看此issue https://github.com/nxtrace/NTrace-core/issues/257

FyZhu97 commented 3 weeks ago

So are there plans to support go 1.23+ ?

tsosunchia commented 3 weeks ago

由于go 1.23进行了一些改动,暂时没有办法升级

tsosunchia commented 3 weeks ago

参考: https://github.com/nxtrace/NTrace-core/issues/247