We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题现象
我是用交叉编译工具,在 smart/test 目录下执行 make 命令,发现出现以下编译问题:
➜ test git:(master) ✗ make aarch64-sdrv-linux-gcc -march=armv8-a -mtune=cortex-a57.cortex-a53 --sysroot=/opt/tbox/2.5.3/sysroots/aarch64-sdrv-linux ../src/lib/art.o ../src/lib/rbtree.o ../src/lib/conf.o ../src/lib/bitops.o ../src/lib/radix.o ../src/lib/idna.o ../src/lib/timer_wheel.o ../src/lib/stringutil.o ../src/lib/nftset.o ../src/util.o ../src/tlog.o ../src/dns.o ../src/dns_client.o ../src/dns_conf.o ../src/http_parse.o ../src/fast_ping.o ../src/dns_plugin.o ../src/proxy.o ../src/dns_cache.o ../src/timer.o ../src/dns_server.o ../src/smartdns.o client.o test.o server.o utils.o cases/test-cache.o cases/test-https.o cases/test-server.o cases/test-discard-block-ip.o cases/test-subnet.o cases/test-cname.o cases/test-same-pending-query.o cases/test-mock-server.o cases/test-dualstack.o cases/test-domain-rule.o cases/test-ip-alias.o cases/test-bind.o cases/test-srv.o cases/test-bootstrap.o cases/test-dns64.o cases/test-ddns.o cases/test-ping.o cases/test-ptr.o cases/test-nameserver.o cases/test-address.o cases/test-rule.o cases/test-group.o cases/test-idna.o cases/test-qtype-soa.o cases/test-ip-rule.o cases/test-client-rule.o cases/test-speed-check.o cases/test-hosts.o cases/test-edns.o cases/test-domain-set.o cases/test-perf.o cases/test-mdns.o -o test.bin -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -L../third-part/lib -lssl -lcrypto -lpthread -ldl -lgtest -lstdc++ -lm test.o:在函数‘main’中: /home/fox/smartdns/test/test.cc:22: main 的多重定义 ../src/smartdns.o:/home/fox/smartdns/src/smartdns.c:922:第一次在此定义 server.o:在函数‘smartdns::Server::Start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, smartdns::Server::CONF_TYPE)’中: /home/fox/smartdns/test/server.cc:389:对‘smartdns_reg_post_func’未定义的引用 /home/fox/smartdns/test/server.cc:390:对‘smartdns_main’未定义的引用 server.o:在函数‘smartdns::Server::Start(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, smartdns::Server::CONF_TYPE)::{lambda()#2}::operator()() const’中: /home/fox/smartdns/test/server.cc:403:对‘smartdns_reg_post_func’未定义的引用 /home/fox/smartdns/test/server.cc:404:对‘smartdns_main’未定义的引用 /home/fox/smartdns/test/server.cc:405:对‘smartdns_reg_post_func’未定义的引用 collect2: error: ld returned 1 exit status make: *** [Makefile:42:test.bin] 错误 1
The text was updated successfully, but these errors were encountered:
有没有可能你需要用musl c
Sorry, something went wrong.
No branches or pull requests
问题现象
我是用交叉编译工具,在 smart/test 目录下执行 make 命令,发现出现以下编译问题:
The text was updated successfully, but these errors were encountered: