mosdns插件编译报错,麻烦帮看看
golang库已经更新到今天最新
编译指令:make package/feeds/small/mosdns/{clean,compile} V=99
以前编译从未出现过这个问题。
手动使用./build_dir/hostpkg/go-1.23.1/bin/go可以下载下方不存在报错的依赖库,但使用make mosdns就会出错
已试过以下方法后,再下载更新编译,均失败:
make clean
make dirclean
./scripts/feeds clean
编译环境:
1.debian12
2.路由器已全局
make[2]: Entering directory '/home/s3/git/openwrt/feeds/small/mosdns'
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.prepared_958a578098337157cdea672d8f7240b1_6664517399ebbbc92a37c5bb081b5c53_check
. /home/s3/git/openwrt/include/shell.sh; /home/s3/git/openwrt/staging_dir/host/bin/libdeflate-gzip -dc /home/s3/git/openwrt/dl/mosdns-5.3.3.tar.gz | tar -C /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3
Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/203-add-response-for-bad-request-in-ServeHTTP-handler.patch using plaintext:
patching file pkg/server/http_handler.go
Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/204-black_hole-apply-Fisher-Yates-shuffle-algorithm-to-r.patch using plaintext:
patching file plugin/executable/black_hole/black_hole.go
Applying /home/s3/git/openwrt/feeds/small/mosdns/patches/205-format-logtime.patch using plaintext:
patching file mlog/logger.go
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.prepared_958a578098337157cdea672d8f7240b1_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.configured_*
rm -f /home/s3/git/openwrt/staging_dir/target-x86_64_musl/stamp/.mosdns_installed
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/s3/git/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/s3/git/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/IrineSistiana/mosdns" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/IrineSistiana/mosdns/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3" GO_BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GO_BUILD_BIN_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/s3/git/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" /usr/bin/env bash /home/s3/git/openwrt/feeds/packages/lang/golang//golang-build.sh configure
Copying files from /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3 into /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/src/github.com/IrineSistiana/mosdns
coremain/config.go
coremain/mosdns.go
coremain/plugin.go
coremain/run.go
coremain/service.go
go.mod
go.sum
main.go
mlog/logger.go
pkg/cache/cache.go
pkg/cache/cache_test.go
pkg/concurrent_lru/concurrent_lru.go
pkg/concurrent_lru/concurrent_lru_test.go
pkg/concurrent_map/map.go
pkg/concurrent_map/map_test.go
pkg/dnsutils/msg.go
pkg/dnsutils/net_io.go
pkg/dnsutils/ptr_parser.go
pkg/dnsutils/ptr_parser_test.go
pkg/hosts/hosts.go
pkg/hosts/hosts_test.go
pkg/list/elem.go
pkg/list/list.go
pkg/list/list_test.go
pkg/lru/lru.go
pkg/lru/lru_test.go
pkg/matcher/domain/interface.go
pkg/matcher/domain/load_helper.go
pkg/matcher/domain/matcher.go
pkg/matcher/domain/matcher_test.go
pkg/matcher/domain/utils.go
pkg/matcher/domain/utils_test.go
pkg/matcher/netlist/interface.go
pkg/matcher/netlist/list.go
pkg/matcher/netlist/load_helper.go
pkg/matcher/netlist/netlist_test.go
pkg/nftset_utils/handler.go
pkg/nftset_utils/handler_test.go
pkg/pool/allocator.go
pkg/pool/bytes_buf.go
pkg/pool/msg_buf.go
pkg/pool/timer.go
pkg/query_context/context.go
pkg/query_context/kv.go
pkg/rate_limiter/rate_limiter.go
pkg/rate_limiter/rate_limiter_test.go
pkg/safe_close/safe_close.go
pkg/server/doq.go
pkg/server/http_handler.go
pkg/server/iface.go
pkg/server/tcp.go
pkg/server/tls.go
pkg/server/udp.go
pkg/server/udp_linux.go
pkg/server/udp_others.go
pkg/server/utils.go
pkg/server_handler/entry_handler.go
pkg/upstream/bootstrap/bootstrap.go
pkg/upstream/doh/upstream.go
pkg/upstream/event_stat.go
pkg/upstream/transport/conn_lazy_dial.go
pkg/upstream/transport/conn_quic.go
pkg/upstream/transport/conn_traditional.go
pkg/upstream/transport/conn_traditional_test.go
pkg/upstream/transport/pipeline.go
pkg/upstream/transport/pipeline_test.go
pkg/upstream/transport/reuse.go
pkg/upstream/transport/reuse_test.go
pkg/upstream/transport/transport.go
pkg/upstream/transport/utils.go
pkg/upstream/upstream.go
pkg/upstream/upstream_test.go
pkg/upstream/utils.go
pkg/upstream/utils_others.go
pkg/upstream/utils_unix.go
pkg/utils/config_helper.go
pkg/utils/net.go
pkg/utils/quic.go
pkg/utils/server.go
pkg/utils/strings.go
pkg/utils/utils.go
pkg/utils/utils_test.go
pkg/zone_file/zone_file.go
pkg/zone_file/zone_file_test.go
plugin/data_provider/domain_set/domain_set.go
plugin/data_provider/domain_set/group.go
plugin/data_provider/iface.go
plugin/data_provider/ip_set/ip_set.go
plugin/enabled_plugin_test.go
plugin/enabled_plugins.go
plugin/executable/arbitrary/arbitrary.go
plugin/executable/black_hole/black_hole.go
plugin/executable/cache/cache.go
plugin/executable/cache/cache_test.go
plugin/executable/cache/dump.pb.go
plugin/executable/cache/dump.proto
plugin/executable/cache/utils.go
plugin/executable/debug_print/print.go
plugin/executable/drop_resp/drop_resp.go
plugin/executable/dual_selector/cache.go
plugin/executable/dual_selector/dual_selector.go
plugin/executable/dual_selector/dual_selector_test.go
plugin/executable/ecs_handler/handler.go
plugin/executable/forward/forward.go
plugin/executable/forward/utils.go
plugin/executable/forward_edns0opt/forwarder.go
plugin/executable/hosts/hosts.go
plugin/executable/ipset/ipset.go
plugin/executable/ipset/ipset_linux.go
plugin/executable/ipset/ipset_other.go
plugin/executable/ipset/ipset_test.go
plugin/executable/metrics_collector/collector.go
plugin/executable/nftset/nftset.go
plugin/executable/nftset/nftset_linux.go
plugin/executable/nftset/nftset_other.go
plugin/executable/query_summary/query_summary.go
plugin/executable/rate_limiter/rate_limiter.go
plugin/executable/redirect/redirect.go
plugin/executable/reverse_lookup/reverse_lookup.go
plugin/executable/reverse_lookup/utils.go
plugin/executable/sequence/built_in.go
plugin/executable/sequence/chain.go
plugin/executable/sequence/config.go
plugin/executable/sequence/config_test.go
plugin/executable/sequence/fallback/fallback.go
plugin/executable/sequence/iface.go
plugin/executable/sequence/quick_config.go
plugin/executable/sequence/quick_setup.go
plugin/executable/sequence/sequence.go
plugin/executable/sequence/sequence_test.go
plugin/executable/sequence/utils.go
plugin/executable/sleep/sleep.go
plugin/executable/ttl/ttl.go
plugin/mark/mark.go
plugin/matcher/base_domain/domain_matcher.go
plugin/matcher/base_int/int_matcher.go
plugin/matcher/base_ip/ip_matcher.go
plugin/matcher/client_ip/client_ip_matcher.go
plugin/matcher/cname/cname_matcher.go
plugin/matcher/env/env.go
plugin/matcher/has_resp/has_resp.go
plugin/matcher/has_wanted_ans/has_wanted_ans.go
plugin/matcher/ptr_ip/ptr_ip.go
plugin/matcher/qclass/qclass.go
plugin/matcher/qname/qname.go
plugin/matcher/qtype/qtype.go
plugin/matcher/random/random.go
plugin/matcher/rcode/rcode.go
plugin/matcher/resp_ip/resp_ip.go
plugin/matcher/string_exp/string_exp.go
plugin/matcher/string_exp/string_exp_test.go
plugin/server/http_server/http_server.go
plugin/server/quic_server/quic_server.go
plugin/server/server_utils/handler.go
plugin/server/server_utils/socket_utils.go
plugin/server/server_utils/socket_utils_linux.go
plugin/server/server_utils/socket_utils_others.go
plugin/server/tcp_server/tcp_server.go
plugin/server/udp_server/udp_server.go
tools/config.go
tools/init.go
tools/probe.go
/home/s3/git/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src does not exist, skipping symlinks
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.configured_1cd727ac7b9ebbe4ee453b5ddb8504b3
rm -f /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built
touch /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built_check
CONFIG_GOLANG_MOD_CACHE_WORLD_READABLE="" GO_BUILD_CACHE_DIR="/home/s3/git/openwrt/tmp/go-build" GO_MOD_CACHE_DIR="/home/s3/git/openwrt/dl/go-mod-cache" GO_MOD_ARGS="-modcacherw" GO_PKG="github.com/IrineSistiana/mosdns" GO_INSTALL_EXTRA="" GO_INSTALL_ALL="" GO_SOURCE_ONLY="" GO_BUILD_PKG="github.com/IrineSistiana/mosdns/..." GO_EXCLUDES="" GO_GO_GENERATE="" GO_INSTALL_BIN_PATH="/usr/bin" BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3" GO_BUILD_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GO_BUILD_BIN_DIR="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build/bin" GO_BUILD_DEPENDS_PATH="/usr/share/gocode" GO_BUILD_DEPENDS_SRC="/home/s3/git/openwrt/staging_dir/target-x86_64_musl/usr/share/gocode/src" GOOS="linux" GOARCH="amd64" GO386="" GOAMD64="v1" GOARM="" GOMIPS="" GOMIPS64="" GOPPC64="" CGO_ENABLED=1 CC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" CGO_CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3=mosdns-5.3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_CPPFLAGS="-I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/include -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include/fortify -I/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/include" CGO_CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3=mosdns-5.3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" CGO_LDFLAGS="-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -znow -zrelro" GOPATH="/home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.go_work/build" GOCACHE="/home/s3/git/openwrt/tmp/go-build" GOMODCACHE="/home/s3/git/openwrt/dl/go-mod-cache" GOENV=off GOTOOLCHAIN=local /usr/bin/env bash /home/s3/git/openwrt/feeds/packages/lang/golang//golang-build.sh build -v -buildvcs=false -trimpath -ldflags "all=-buildid '1726693477' -linkmode external -extldflags '-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'" -ldflags " -X main.version=v5.3.3 -buildid '1726693477' -linkmode external -extldflags '-L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/usr/lib -L/home/s3/git/openwrt/staging_dir/toolchain-x86_64_gcc-12.3.0_musl/lib -Wl,-z,now -Wl,-z,relro'"
Finding targets
go: downloading github.com/go-chi/chi/v5 v5.1.0
go: downloading github.com/kardianos/service v1.2.2
go: downloading github.com/prometheus/client_golang v1.19.1
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/spf13/viper v1.19.0
go: downloading go.uber.org/zap v1.27.0
go: downloading github.com/miekg/dns v1.1.62
go: downloading github.com/google/nftables v0.2.0
go: downloading go4.org/netipx v0.0.0-20231129151722-fdeea329fbba
go: downloading github.com/IrineSistiana/go-bytes-pool v0.0.0-20230918115058-c72bd9761c57
go: downloading golang.org/x/time v0.6.0
go: downloading github.com/quic-go/quic-go v0.46.0
go: downloading golang.org/x/net v0.28.0
go: downloading golang.org/x/sys v0.24.0
go: downloading golang.org/x/exp v0.0.0-20240808152545-0cdaa3abc0fa
go: downloading github.com/klauspost/compress v1.17.9
go: downloading golang.org/x/sync v0.8.0
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/IrineSistiana/ipset v0.5.1-0.20220703061533-6e0fc3b04c0a
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/prometheus/client_model v0.6.1
go: downloading github.com/prometheus/common v0.55.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.15.1
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/sagikazarmark/slog-shim v0.1.0
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/cast v1.7.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading github.com/mdlayher/netlink v1.7.2
go: downloading github.com/quic-go/qpack v0.4.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/subosito/gotenv v1.6.0
go: downloading gopkg.in/ini.v1 v1.67.0
go: downloading github.com/magiconair/properties v1.8.7
go: downloading golang.org/x/text v0.17.0
go: downloading github.com/josharian/native v1.1.0
go: downloading github.com/mdlayher/socket v0.5.1
go: downloading golang.org/x/crypto v0.26.0
../../../../../dl/go-mod-cache/google.golang.org/protobuf@v1.34.2/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it:
go get google.golang.org/protobuf/internal/editiondefaults
../../../../../dl/go-mod-cache/github.com/spf13/afero@v1.11.0/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it:
go get github.com/spf13/afero/internal/common
../../../../../dl/go-mod-cache/github.com/spf13/viper@v1.19.0/viper.go:51:2: no required module provides package github.com/spf13/viper/internal/features; to add it:
go get github.com/spf13/viper/internal/features
../../../../../dl/go-mod-cache/github.com/google/nftables@v0.2.0/expr/dynset.go:22:2: no required module provides package github.com/google/nftables/internal/parseexprfunc; to add it:
go get github.com/google/nftables/internal/parseexprfunc
../../../../../dl/go-mod-cache/github.com/mdlayher/netlink@v1.7.2/attribute.go:9:2: no required module provides package github.com/josharian/native; to add it:
go get github.com/josharian/native
Building targets
../../../../../dl/go-mod-cache/google.golang.org/protobuf@v1.34.2/internal/filedesc/editions.go:11:2: no required module provides package google.golang.org/protobuf/internal/editiondefaults; to add it:
go get google.golang.org/protobuf/internal/editiondefaults
../../../../../dl/go-mod-cache/github.com/spf13/afero@v1.11.0/iofs.go:14:2: no required module provides package github.com/spf13/afero/internal/common; to add it:
go get github.com/spf13/afero/internal/common
../../../../../dl/go-mod-cache/github.com/spf13/viper@v1.19.0/viper.go:51:2: no required module provides package github.com/spf13/viper/internal/features; to add it:
go get github.com/spf13/viper/internal/features
../../../../../dl/go-mod-cache/github.com/google/nftables@v0.2.0/expr/dynset.go:22:2: no required module provides package github.com/google/nftables/internal/parseexprfunc; to add it:
go get github.com/google/nftables/internal/parseexprfunc
../../../../../dl/go-mod-cache/github.com/mdlayher/netlink@v1.7.2/attribute.go:9:2: no required module provides package github.com/josharian/native; to add it:
go get github.com/josharian/native
make[2]: *** [Makefile:47: /home/s3/git/openwrt/build_dir/target-x86_64_musl/mosdns-5.3.3/.built] Error 1
make[2]: Leaving directory '/home/s3/git/openwrt/feeds/small/mosdns'
time: package/feeds/small/mosdns/compile#2.13#0.35#8.71
ERROR: package/feeds/small/mosdns failed to build.
make[1]: *** [package/Makefile:129: package/feeds/small/mosdns/compile] Error 1
make[1]: Leaving directory '/home/s3/git/openwrt'
make: *** [/home/s3/git/openwrt/include/toplevel.mk:232: package/feeds/small/mosdns/compile] Error 2
请不要胡乱输入以及粘贴、复制等方式灌水
请尊重作者、并共同维护网站的正常阅读,否则账户将会被限制发帖、回帖,并且积分可能会被清零,站内短信以及阅读权限等都会受到影响,谢谢。
具体限制方式:https://www.right.com.cn/forum/thread-8307840-1-1.html
|