puxxustc / sans

A simple anti-spoofing DNS server
GNU General Public License v3.0
24 stars 8 forks source link

在最新openwrt源码里编译错误 #14

Closed qiuzi closed 9 years ago

qiuzi commented 9 years ago

openwrt@openwrt:~/openwrt$ make package/network/services/sans/compile V=99 make[1]: Entering directory /home/openwrt/openwrt' make[2]: Entering directory/home/openwrt/openwrt/package/libs/toolchain' if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "libssp" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "libstdcpp" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install if [ -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install.clean; fi; echo "librt" >> /home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/pkginfo/toolchain.default.install make[2]: Leaving directory /home/openwrt/openwrt/package/libs/toolchain' make[2]: Entering directory/home/openwrt/openwrt/package/network/services/sans' CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -fstack-protector -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/usr/include -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/include -I/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/usr/include -I/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/include " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -fstack-protector -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/usr/include -I/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/include -I/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/usr/include -I/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/include " LDFLAGS="-L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/lib -znow -zrelro " make -j1 -C /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04/. AR="mipsel-openwrt-linux-uclibc-gcc-ar" AS="mipsel-openwrt-linux-uclibc-gcc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -fstack-protector" LD=mipsel-openwrt-linux-uclibc-ld NM="mipsel-openwrt-linux-uclibc-gcc-nm" CC="mipsel-openwrt-linux-uclibc-gcc" GCC="mipsel-openwrt-linux-uclibc-gcc" CXX="mipsel-openwrt-linux-uclibc-g++" RANLIB="mipsel-openwrt-linux-uclibc-gcc-ranlib" STRIP=mipsel-openwrt-linux-uclibc-strip OBJCOPY=mipsel-openwrt-linux-uclibc-objcopy OBJDUMP=mipsel-openwrt-linux-uclibc-objdump SIZE=mipsel-openwrt-linux-uclibc-size CROSS="mipsel-openwrt-linux-uclibc-" ARCH="mipsel" ; make[3]: Entering directory /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04' make all-recursive make[4]: Entering directory/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04' Making all in src make[5]: Entering directory /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04/src' /bin/bash ../libtool --tag=CC --mode=link mipsel-openwrt-linux-uclibc-gcc -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -fstack-protector -L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/lib -znow -zrelro -static -o sans main.o async_connect.o cache.o conf.o dns.o dnsmsg.o event.o log.o query.o sans.o utils.o resolv.o OpenWrt-libtool: link: mipsel-openwrt-linux-uclibc-gcc -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -Wformat -Werror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -std=gnu99 -fstack-protector -znow -zrelro -o sans main.o async_connect.o cache.o conf.o dns.o dnsmsg.o event.o log.o query.o sans.o utils.o resolv.o -L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/usr/lib -L/home/openwrt/openwrt/staging_dir/toolchain-mipsel_24kec+dsp_gcc-5.2.0_uClibc-1.0.8/lib main.o: In functionmain': main.c:(.text.startup+0x8): undefined reference to __stack_chk_guard' main.c:(.text.startup+0x10): undefined reference tostack_chk_guard' main.c:(.text.startup+0xb0): undefined reference to `stack_chk_guard' main.c:(.text.startup+0xbc): undefined reference to__stack_chk_fail' async_connect.o: In functionsocks5_send_cb': async_connect.c:(.text+0x120): undefined reference to__stack_chk_guard' async_connect.c:(.text+0x128): undefined reference tostack_chk_guard' async_connect.c:(.text+0x2c0): undefined reference to__stack_chk_guard' async_connect.c:(.text+0x2cc): undefined reference tostack_chk_fail' async_connect.o: In functionsocks5_recv_cb': async_connect.c:(.text+0x2ec): undefined reference tostack_chk_guard' async_connect.c:(.text+0x2f4): undefined reference to__stack_chk_guard' async_connect.c:(.text+0x438): undefined reference tostack_chk_guard' async_connect.c:(.text+0x444): undefined reference to__stack_chk_fail' conf.o: In functionread_conf': conf.c:(.text+0x38): undefined reference to__stack_chk_guard' conf.c:(.text+0x40): undefined reference tostack_chk_guard' conf.c:(.text+0x368): undefined reference to`stack_chk_guard' conf.c:(.text+0x374): undefined reference to __stack_chk_fail' dns.o: In functionns_parse_query': dns.c:(.text+0x274): undefined reference to __stack_chk_guard' dns.c:(.text+0x284): undefined reference tostack_chk_guard' dns.c:(.text+0x39c): undefined reference to `stack_chk_guard' dns.c:(.text+0x3a8): undefined reference to__stack_chk_fail' dns.o: In functionns_parse_reply': dns.c:(.text+0x3cc): undefined reference to__stack_chk_guard' dns.c:(.text+0x3dc): undefined reference tostack_chk_guard' dns.c:(.text+0x520): undefined reference to`stack_chk_guard' dns.c:(.text+0x52c): undefined reference to __stack_chk_fail' dnsmsg.o: In functionquery_udp_recv_cb': dnsmsg.c:(.text+0x360): undefined reference to __stack_chk_guard' dnsmsg.c:(.text+0x378): undefined reference tostack_chk_guard' dnsmsg.c:(.text+0x480): undefined reference to `stack_chk_guard' dnsmsg.c:(.text+0x498): undefined reference to__stack_chk_guard' dnsmsg.c:(.text+0x4c4): undefined reference tostack_chk_fail' dnsmsg.o: In functionreply_udp_recv_cb': dnsmsg.c:(.text+0x758): undefined reference tostack_chk_guard' dnsmsg.c:(.text+0x760): undefined reference to`stack_chk_guard' dnsmsg.c:(.text+0x7e8): undefined reference to __stack_chk_guard' dnsmsg.c:(.text+0x7f4): undefined reference to__stack_chk_fail' log.o: In function sans_log': log.c:(.text+0x8): undefined reference tostack_chk_guard' log.c:(.text+0x10): undefined reference to __stack_chk_guard' log.c:(.text+0xe0): undefined reference tostack_chk_guard' log.c:(.text+0xec): undefined reference to `stack_chk_fail' sans.o: In functionreply_cb': sans.c:(.text+0x1c): undefined reference tostack_chk_guard' sans.c:(.text+0x24): undefined reference to`stack_chk_guard' sans.c:(.text+0x124): undefined reference to __stack_chk_guard' sans.c:(.text+0x130): undefined reference tostack_chk_fail' sans.o: In function test_cb': sans.c:(.text+0x160): undefined reference tostack_chk_guard' sans.c:(.text+0x168): undefined reference to `stack_chk_guard' sans.c:(.text+0x304): undefined reference to__stack_chk_guard' sans.c:(.text+0x310): undefined reference to__stack_chk_fail' sans.o: In functionquery_cb': sans.c:(.text+0x33c): undefined reference tostack_chk_guard' sans.c:(.text+0x344): undefined reference to__stack_chk_guard' sans.c:(.text+0x4dc): undefined reference tostack_chk_guard' sans.c:(.text+0x4e8): undefined reference to`stack_chk_fail' sans.o: In function connect_cb': sans.c:(.text+0x58c): undefined reference tostack_chk_guard' sans.c:(.text+0x594): undefined reference to `stack_chk_guard' sans.c:(.text+0x64c): undefined reference to__stack_chk_guard' sans.c:(.text+0x658): undefined reference tostack_chk_fail' resolv.o: In functionns_name_uncompress': resolv.c:(.text+0xe88): undefined reference tostack_chk_guard' resolv.c:(.text+0xe90): undefined reference to__stack_chk_guard' resolv.c:(.text+0xeec): undefined reference tostack_chk_guard' resolv.c:(.text+0xef8): undefined reference to`stack_chk_fail' resolv.o: In function ns_name_compress': resolv.c:(.text+0xf20): undefined reference tostack_chk_guard' resolv.c:(.text+0xf28): undefined reference to `stack_chk_guard' resolv.c:(.text+0xf84): undefined reference to__stack_chk_guard' resolv.c:(.text+0xf90): undefined reference to__stack_chk_fail' collect2: error: ld returned 1 exit status make[5]: [sans] Error 1 make[5]: Leaving directory`/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04/src' make[4]: \ [all-recursive] Error 1 make[4]: Leaving directory /home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04' make[3]: *** [all] Error 2 make[3]: Leaving directory/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04' make[2]: * [/home/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-1.0.8/sans-1.04/.built] Error 2 make[2]: Leaving directory `/home/openwrt/openwrt/package/network/services/sans' make[1]: * [package/network/services/sans/compile] Error 2 make[1]: Leaving directory`/home/openwrt/openwrt' make: *\ [package/network/services/sans/compile] Error 2