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

ttyd softethervpn编译失败 #171

Closed
Gee64 opened this issue Nov 16, 2019 · 4 comments
Closed

ttyd softethervpn编译失败 #171

Gee64 opened this issue Nov 16, 2019 · 4 comments

Comments

@Gee64
Copy link

Gee64 commented Nov 16, 2019

os: ubuntu 18.04
编译机型:newifi3

已按编译说明进行了依赖源代码工具链安装
均为最新的源代码及工具链

NEWIFI3.config 仅对下列项目将y改成了n

CONFIG_FIRMWARE_INCLUDE_SCUTCLIENT=n
CONFIG_FIRMWARE_INCLUDE_SHADOWSOCKS=n
CONFIG_FIRMWARE_INCLUDE_SSSERVER=n
CONFIG_FIRMWARE_INCLUDE_MENTOHUST=n

终端报错信息
ttyd

make -j2 -C ttyd-1.5.2/build
make[3]: Entering directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
make[4]: Entering directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
make[5]: Entering directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
[ 16%] Generating html.h from index.html
/bin/sh: 1: CMAKE_XXD-NOTFOUND: not found
CMakeFiles/ttyd.dir/build.make:61: recipe for target 'html.h' failed
make[5]: *** [html.h] Error 127
make[5]: Leaving directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/ttyd.dir/all' failed
make[4]: *** [CMakeFiles/ttyd.dir/all] Error 2
make[4]: Leaving directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
Makefile:129: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/opt/rt-n56u/trunk/user/ttyd/ttyd-1.5.2/build'
Makefile:7: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/opt/rt-n56u/trunk/user/ttyd'
Makefile:209: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/rt-n56u/trunk/user'
Makefile:202: recipe for target 'user_only' failed
make: *** [user_only] Error 2

softethervpn

make[2]: Entering directory '/opt/rt-n56u/trunk/user/softethervpn'
( if [ ! -f softether-src-v4.29-9680-rtm.tar.gz ]; then \
	wget -t5 --timeout=20 --no-check-certificate -O softether-src-v4.29-9680-rtm.tar.gz https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-src-v4.29-9680-rtm.tar.gz; \
fi )
( if [ ! -d v4.29-9680 ]; then \
	tar xf softether-src-v4.29-9680-rtm.tar.gz; \
	patch --binary -d v4.29-9680 -p1 < softethervpn-v4.29-9680.patch ; \
	mkdir -p v4.29-9680/tmp/ ; \
	mkdir -p v4.29-9680/tmp/objs/ ; \
	mkdir -p v4.29-9680/tmp/objs/Mayaqua/ ; \
	mkdir -p v4.29-9680/tmp/objs/Cedar/ ; \
	mkdir -p v4.29-9680/tmp/as/ ; \
	mkdir -p v4.29-9680/bin/ ; \
	mkdir -p v4.29-9680/bin/vpnserver/ ; \
	mkdir -p v4.29-9680/bin/vpnclient/ ; \
	mkdir -p v4.29-9680/bin/vpnbridge/ ; \
	mkdir -p v4.29-9680/bin/vpncmd/ ; \
fi )

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/Mayaqua/Mayaqua.h	2018-01-15 10:00:41.000000000 +0800
|+++ b/src/Mayaqua/Mayaqua.h	2018-12-23 15:57:56.076680603 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/makefiles/linux_32bit.mak	2018-01-15 10:00:42.000000000 +0800
|+++ b/src/makefiles/linux_32bit.mak	2018-12-23 15:57:07.360013929 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 43
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/Mayaqua/Network.c	2018-01-15 10:00:41.000000000 +0800
|+++ b/src/Mayaqua/Network.c	2018-12-23 22:05:48.396667000 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 54
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/Mayaqua/Internat.c	2018-01-15 10:00:41.000000000 +0800
|+++ b/src/Mayaqua/Internat.c	2018-12-23 15:58:47.430013970 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/src/makefiles/linux_32bit.mak	2019-01-30 22:58:25.926666000 +0800
|+++ b/src/makefiles/linux_32bit.mak	2019-01-31 00:18:46.666668569 +0800
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
7 out of 7 hunks ignored
( mkdir -p v4.29-9680/src/bin/BuiltHamcoreFiles/unix && cp -f hamcore-unix/v4.29-9680/hamcore.se2 v4.29-9680/src/bin/BuiltHamcoreFiles/unix/hamcore.se2 && \
	touch -t `date -d next-day +%Y%m%d%H%M` v4.29-9680/src/bin/BuiltHamcoreFiles/unix/hamcore.se2 \
)
make -j2 -C v4.29-9680 -f src/makefiles/linux_32bit.mak
make[3]: Entering directory '/opt/rt-n56u/trunk/user/softethervpn/v4.29-9680'
make[3]: src/makefiles/linux_32bit.mak: No such file or directory
make[3]: *** No rule to make target 'src/makefiles/linux_32bit.mak'.  Stop.
make[3]: Leaving directory '/opt/rt-n56u/trunk/user/softethervpn/v4.29-9680'
Makefile:13: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/opt/rt-n56u/trunk/user/softethervpn'
Makefile:209: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/opt/rt-n56u/trunk/user'
Makefile:202: recipe for target 'user_only' failed
make: *** [user_only] Error 2

通过将相关软件设置为n以后,经测试能成功编译并生成固件

CONFIG_FIRMWARE_INCLUDE_TTYD=n
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_SERVER=n
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CLIENT=n
CONFIG_FIRMWARE_INCLUDE_SOFTETHERVPN_CMD=n
@hanwckf
Copy link
Owner

hanwckf commented Nov 16, 2019

  1. 安装vim
  2. 检查网络

@Gee64
Copy link
Author

Gee64 commented Nov 16, 2019

安装以下vim后ttyd 编译依旧失败,失败信息与上相同

sudo apt install vim vim-scripts vim-doc vim-latexsuite vim-gui-common vim-gnome vim-nox vim-gtk vim-common

经搜索似乎有相似的案例tsl0922/ttyd#8

按照说明在/opt/rt-n56u/trunk/user/ttyd/Makefile 中添加 
DEPENDS:=+libopenssl +libjson-c +libpthread +libwebsockets-openssl
后编译依旧失败,失败信息与上相同

softethervpn 确认为网络问题, 经直接下载源代码放入指定文件夹后成功编译

@hanwckf
Copy link
Owner

hanwckf commented Nov 16, 2019

检查xxd命令并删除ttyd源码目录

@Gee64
Copy link
Author

Gee64 commented Nov 17, 2019

进行apt upgrade 以及删除ttyd源码目录 后编译成功,可能是因为网络问题或者其他依赖的版本过低导致的
问题解决,非常感谢你的帮助

@Gee64 Gee64 closed this as completed Nov 17, 2019
cslily pushed a commit to cslily/rt-n56u that referenced this issue Jul 8, 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

No branches or pull requests

2 participants