fw876 / helloworld

GNU General Public License v3.0
3.64k stars 2.64k forks source link

编译shadowsocksr-libev提示行尾符错误 #1435

Closed luyingwei80 closed 6 months ago

luyingwei80 commented 6 months ago

在用openwrt官方main分支(6.1.82内核)编译ssr时提示如下错误:

Applying /home/tony/op/feeds/luci/applications/ssr-packages/shadowsocksr-libev/patches/101-Fix-Werror-sizeof-pointer-memaccess.patch using plaintext: patching file src/local.c Hunk #1 FAILED at 718 (different line endings). 1 out of 1 hunk FAILED -- saving rejects to file src/local.c.rej Patch failed! Please fix /home/tony/op/feeds/luci/applications/ssr-packages/shadowsocksr-libev/patches/101-Fix-Werror-sizeof-pointer-memaccess.patch! make[3]: [Makefile:70: /home/tony/op/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/.prepared_cba061f49529b26213cffff823b29fa0_6664517399ebbbc92a37c5bb081b5c53] Error 1 make[3]: Leaving directory '/home/tony/op/feeds/luci/applications/ssr-packages/shadowsocksr-libev' time: package/feeds/luci/shadowsocksr-libev/compile#0.11#0.22#0.30 ERROR: package/feeds/luci/shadowsocksr-libev failed to build. make[2]: [package/Makefile:129: package/feeds/luci/shadowsocksr-libev/compile] Error 1 make[2]: Leaving directory '/home/tony/op' make[1]: [package/Makefile:123: /home/tony/op/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/tony/op' make: [/home/tony/op/include/toplevel.mk:233:world] 错误 2

看提示似乎是这个补丁文件的尾行符错误,随通过dos2unix工具对该补丁文件重新修复,但问题依旧,不知可有其他办法解决?