shawn1m / overture

A customized DNS relay server
MIT License
1.8k stars 284 forks source link

1.7版在go1.16下编译出错 #256

Closed NagaseKouichi closed 3 years ago

NagaseKouichi commented 3 years ago

为openwrt编译overture的ipk包,1.6.1版可以正常编译,1.7版编译时会报错。但是1.7版在使用1.13版go的openwrt官方sdk下可以编译成功,在go1.16下就会报错。

报错内容:

Building targets ../../core/inbound/server.go:18:2: missing go.sum entry for module providing package github.com/coredns/coredns/plugin/pkg/dnsutil (imported by github.com/shawn1m/overture/core/inbound); to add: go get github.com/shawn1m/overture/core/inbound ../../core/inbound/server.go:19:2: missing go.sum entry for module providing package github.com/coredns/coredns/plugin/pkg/doh (imported by github.com/shawn1m/overture/core/inbound); to add: go get github.com/shawn1m/overture/core/inbound ../../core/inbound/server.go:20:2: missing go.sum entry for module providing package github.com/coredns/coredns/plugin/pkg/response (imported by github.com/shawn1m/overture/core/inbound); to add: go get github.com/shawn1m/overture/core/inbound

make[2]: [Makefile:61: /home/suhao/lede/build_dir/target-x86_64_musl/overture-1.7/.built] Error 1 make[2]: Leaving directory '/home/suhao/lede/package/overture' time: package/overture/compile#0.61#0.27#0.88 make[1]: [package/Makefile:113: package/overture/compile] Error 2 make[1]: Leaving directory '/home/suhao/lede' make: *** [/home/suhao/lede/include/toplevel.mk:224: package/overture/compile] Error 2

详情: https://github.com/coolsnowwolf/lede/issues/6615

NagaseKouichi commented 3 years ago

给overture的go.sum文件打patch修改后可以编译了,详情见上帖中的链接