GithubHelp home page GithubHelp logo

puxxustc / sans Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 8.0 144 KB

A simple anti-spoofing DNS server

License: GNU General Public License v3.0

Shell 1.77% C 94.04% C++ 1.16% Python 0.65% Ruby 0.38% Makefile 0.48% M4 1.52%

sans's People

Contributors

puxxustc avatar rampagex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sans's Issues

污染判断错误

检测域名:hotavdvd.com

user=nobody
group=nobody
listen=127.0.0.1:5353
socks5=127.0.0.1:8888
test_server=202.14.67.14:53
cn_server=114.114.114.114:53
server=8.8.4.4:53

解析得到8.5.1.64 但实际是64.74.223.10

报告:
[15-08-19 22:08:36] starting sans at 127.0.0.1:5353
[15-08-19 22:08:38] query [2] [AAAA] [hotavdvd.com]
[15-08-19 22:08:38] detect [hotavdvd.com]
[15-08-19 22:08:38] [hotavdvd.com] is not blocked
[15-08-19 22:08:38] reply [45250] [UNKNOWN] [hotavdvd.com]
[15-08-19 22:08:38] query [3] [A] [hotavdvd.com]
[15-08-19 22:08:38] reply [2182] [A] [hotavdvd.com]
[15-08-19 22:08:38] query [4] [PTR] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:38] detect [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:38] [64.1.5.8.in-addr.arpa] is not blocked
[15-08-19 22:08:38] reply [33422] [UNKNOWN] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:38] query [5] [PTR] [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:38] detect [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:39] [64.1.5.8.in-addr.arpa.lan] is not blocked
[15-08-19 22:08:39] reply [62174] [UNKNOWN] [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:40] query [2] [AAAA] [hotavdvd.com]
[15-08-19 22:08:40] reply [57326] [UNKNOWN] [hotavdvd.com]
[15-08-19 22:08:40] query [3] [A] [hotavdvd.com]
[15-08-19 22:08:40] reply [61688] [A] [hotavdvd.com]
[15-08-19 22:08:40] query [4] [PTR] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:40] reply [39376] [UNKNOWN] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:40] query [5] [PTR] [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:40] reply [56928] [UNKNOWN] [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:46] query [28273] [A] [up.cm.ksmobile.com]
[15-08-19 22:08:46] detect [up.cm.ksmobile.com]
[15-08-19 22:08:46] [up.cm.ksmobile.com] is not blocked
[15-08-19 22:08:46] reply [35522] [A] [up.cm.ksmobile.com]
[15-08-19 22:08:55] query [2] [AAAA] [hotavdvd.com]
[15-08-19 22:08:55] reply [50499] [UNKNOWN] [hotavdvd.com]
[15-08-19 22:08:55] query [3] [A] [hotavdvd.com]
[15-08-19 22:08:55] reply [21894] [A] [hotavdvd.com]
[15-08-19 22:08:55] query [4] [PTR] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:55] reply [33048] [UNKNOWN] [64.1.5.8.in-addr.arpa]
[15-08-19 22:08:55] query [5] [PTR] [64.1.5.8.in-addr.arpa.lan]
[15-08-19 22:08:56] reply [10332] [UNKNOWN] [64.1.5.8.in-addr.arpa.lan]

musl 库编译失败

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/trunk'
make: *** [package/network/services/sans/compile] Error 2
openwrt@openwrt:/trunk$ rm -rf build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/
openwrt@openwrt:
/trunk$ make package/network/services/sans/compile V=99
make[1]: Entering directory /home/openwrt/trunk' make[2]: Entering directory/home/openwrt/openwrt/package/libs/toolchain'
if [ -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install
if [ -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install
if [ -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libstdcpp" >> /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install
if [ -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install
if [ -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean ]; then rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/pkginfo/toolchain.default.install.clean; fi; echo "librt" >> /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/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'
. /home/openwrt/trunk/include/shell.sh; bzcat /home/openwrt/trunk/dl/sans-1.02.tar.bz2 | tar -C /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/.. -xf -

Applying ./patches/300ttl.patch using plaintext:
patching file src/sans.c
touch /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/.prepared_5840d6e09f2f8fa4d5a2666798518d69
rm -f /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/stamp/.sans_installed
(cd /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02; rm -f aclocal.m4; if [ -f ./configure.ac ] || [ -f ./configure.in ]; then [ -d ./autom4te.cache ] && rm -rf autom4te.cache; [ -e ./config.rpath ] || ln -s /home/openwrt/trunk/scripts/config.rpath ./config.rpath; touch NEWS AUTHORS COPYING ABOUT-NLS ChangeLog; AUTOM4TE=/home/openwrt/trunk/staging_dir/host/bin/autom4te AUTOCONF=/home/openwrt/trunk/staging_dir/host/bin/autoconf AUTOMAKE=/home/openwrt/trunk/staging_dir/host/bin/automake ACLOCAL=/home/openwrt/trunk/staging_dir/host/bin/aclocal AUTOHEADER=/home/openwrt/trunk/staging_dir/host/bin/autoheader LIBTOOLIZE=/home/openwrt/trunk/staging_dir/host/bin/libtoolize LIBTOOL=/home/openwrt/trunk/staging_dir/host/bin/libtool M4=/home/openwrt/trunk/staging_dir/host/bin/m4 AUTOPOINT=true /home/openwrt/trunk/staging_dir/host/bin/autoreconf -v -f -i -s -B /home/openwrt/trunk/staging_dir/host/share/aclocal -I /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/host/share/aclocal -I /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/share/aclocal -I m4 -I . . || true; fi; );
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/aclocal -I /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/host/share/aclocal -I /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/share/aclocal -I m4 -I . --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/libtoolize --force OpenWrt-libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR,.'.
OpenWrt-libtoolize: linking file ./ltmain.sh' OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIR,m4'.
OpenWrt-libtoolize: linking file m4/libtool.m4' OpenWrt-libtoolize: linking filem4/ltoptions.m4'
OpenWrt-libtoolize: linking file m4/ltsugar.m4' OpenWrt-libtoolize: linking filem4/ltversion.m4'
OpenWrt-libtoolize: linking file m4/lt~obsolete.m4' autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/autoconf --include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/host/share/aclocal --include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/openwrt/trunk/staging_dir/host/share/aclocal --force autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/autoheader --include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/host/share/aclocal --include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/share/aclocal --include=m4 --include=. --prepend-include=/home/openwrt/trunk/staging_dir/host/share/aclocal --force autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/automake --add-missing --force-missing configure.ac:14: installing './compile' configure.ac:16: installing './config.guess' configure.ac:16: installing './config.sub' configure.ac:11: installing './install-sh' configure.ac:11: installing './missing' src/Makefile.am: installing './depcomp' autoreconf: Leaving directory.'
(cd /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/./; if [ -x ./configure ]; then find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/ -name config.guess | xargs -r chmod u+w; find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/ -name config.guess | xargs -r -n1 cp --remove-destination /home/openwrt/trunk/scripts/config.guess; find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/ -name config.sub | xargs -r chmod u+w; find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/ -name config.sub | xargs -r -n1 cp --remove-destination /home/openwrt/trunk/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size 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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 " 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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 " CPPFLAGS="-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include " LDFLAGS="-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/lib -znow -zrelro " ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls --disable-ipv6 --prefix=/usr --sysconfdir=/etc ; fi; )
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6
configure: loading site script /home/openwrt/trunk/include/site/mipsel
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mipsel-openwrt-linux-strip... mipsel-openwrt-linux-musl-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for mipsel-openwrt-linux-gcc... mipsel-openwrt-linux-musl-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether mipsel-openwrt-linux-musl-gcc accepts -g... yes
checking for mipsel-openwrt-linux-musl-gcc option to accept ISO C89... none needed
checking whether mipsel-openwrt-linux-musl-gcc understands -c and -o together... yes
checking dependency style of mipsel-openwrt-linux-musl-gcc... gcc3
checking for mipsel-openwrt-linux-musl-gcc option to accept ISO C99... none needed
checking build system type... x86_64-pc-linux-gnu
checking host system type... mipsel-openwrt-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /home/openwrt/trunk/staging_dir/host/bin/sed
checking for grep that handles long lines and -e... /home/openwrt/trunk/staging_dir/host/bin/grep
checking for egrep... /home/openwrt/trunk/staging_dir/host/bin/grep -E
checking for fgrep... /home/openwrt/trunk/staging_dir/host/bin/grep -F
checking for ld used by mipsel-openwrt-linux-musl-gcc... mipsel-openwrt-linux-musl-ld
checking if the linker (mipsel-openwrt-linux-musl-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... mipsel-openwrt-linux-musl-gcc-nm
checking the name lister (mipsel-openwrt-linux-musl-gcc-nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 3458764513820540925
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to mipsel-openwrt-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for mipsel-openwrt-linux-musl-ld option to reload object files... -r
checking for mipsel-openwrt-linux-objdump... mipsel-openwrt-linux-musl-objdump
checking how to recognize dependent libraries... pass_all
checking for mipsel-openwrt-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for mipsel-openwrt-linux-ar... mipsel-openwrt-linux-musl-gcc-ar
checking for archiver @file support... @
checking for mipsel-openwrt-linux-strip... (cached) mipsel-openwrt-linux-musl-strip
checking for mipsel-openwrt-linux-ranlib... mipsel-openwrt-linux-musl-gcc-ranlib
checking command to parse mipsel-openwrt-linux-musl-gcc-nm output from mipsel-openwrt-linux-musl-gcc object... ok
checking for sysroot... no
checking for mipsel-openwrt-linux-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking how to run the C preprocessor... mipsel-openwrt-linux-musl-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if mipsel-openwrt-linux-musl-gcc supports -fno-rtti -fno-exceptions... no
checking for mipsel-openwrt-linux-musl-gcc option to produce PIC... -fPIC -DPIC
checking if mipsel-openwrt-linux-musl-gcc PIC flag -fPIC -DPIC works... yes
checking if mipsel-openwrt-linux-musl-gcc static flag -static works... yes
checking if mipsel-openwrt-linux-musl-gcc supports -c -o file.o... yes
checking if mipsel-openwrt-linux-musl-gcc supports -c -o file.o... (cached) yes
checking whether the mipsel-openwrt-linux-musl-gcc linker (mipsel-openwrt-linux-musl-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether to enable assertions... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t in sys/types.h... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking for bzero... (cached) yes
checking for gettimeofday... (cached) yes
checking for memset... yes
checking for setegid... yes
checking for seteuid... yes
checking for sigaction... yes
checking for select... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... (cached) yes
checking for strrchr... yes
checking for strtol... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-nls, --disable-ipv6
rm -f /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/.configured_*
touch /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/.configured_yyyynnyyn
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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include " LDFLAGS="-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/lib -znow -zrelro " make -j1 -C /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/. AR="mipsel-openwrt-linux-musl-gcc-ar" AS="mipsel-openwrt-linux-musl-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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="mipsel-openwrt-linux-musl-gcc" GCC="mipsel-openwrt-linux-musl-gcc" CXX="mipsel-openwrt-linux-musl-g++" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CROSS="mipsel-openwrt-linux-musl-" ARCH="mipsel" ;
make[3]: Entering directory /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02' make all-recursive make[4]: Entering directory/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02'
Making all in src
make[5]: Entering directory /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/src' mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c mv -f .deps/main.Tpo .deps/main.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT async_connect.o -MD -MP -MF .deps/async_connect.Tpo -c -o async_connect.o async_connect.c async_connect.c: In function 'socks5_send_cb': async_connect.c:298:32: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] memcpy(buf + 4, &(((struct sockaddr_in *)ctx->addr)->sin_addr), 4); ^ async_connect.c:299:32: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] memcpy(buf + 8, &(((struct sockaddr_in *)ctx->addr)->sin_port), 2); ^ async_connect.c:305:32: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] memcpy(buf + 4, &(((struct sockaddr_in6 *)ctx->addr)->sin6_addr), 16); ^ async_connect.c:306:33: warning: cast discards '__attribute__((const))' qualifier from pointer target type [-Wcast-qual] memcpy(buf + 20, &(((struct sockaddr_in6 *)ctx->addr)->sin6_port), 2); ^ mv -f .deps/async_connect.Tpo .deps/async_connect.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o cache.o cache.c mv -f .deps/cache.Tpo .deps/cache.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT conf.o -MD -MP -MF .deps/conf.Tpo -c -o conf.o conf.c conf.c:39:0: warning: "LINE_MAX" redefined [enabled by default] #define LINE_MAX 1024 ^ In file included from /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify/stdlib.h:24:0, from conf.c:22: /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/limits.h:81:0: note: this is the location of the previous definition #define LINE_MAX 4096 ^ mv -f .deps/conf.Tpo .deps/conf.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT dns.o -MD -MP -MF .deps/dns.Tpo -c -o dns.o dns.c dns.c: In function 'ns_mkquery': dns.c:157:26: warning: to be safe all intermediate pointers in cast from 'u_char **' to 'const u_char **' must be 'const' qualified [-Wcast-qual] (const u_char **)dnptrs, ^ dns.c:158:26: warning: to be safe all intermediate pointers in cast from 'u_char **' to 'const u_char **' must be 'const' qualified [-Wcast-qual] (const u_char **)lastdnptr); ^ mv -f .deps/dns.Tpo .deps/dns.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT dnsmsg.o -MD -MP -MF .deps/dnsmsg.Tpo -c -o dnsmsg.o dnsmsg.c mv -f .deps/dnsmsg.Tpo .deps/dnsmsg.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT event.o -MD -MP -MF .deps/event.Tpo -c -o event.o event.c mv -f .deps/event.Tpo .deps/event.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c mv -f .deps/log.Tpo .deps/log.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT query.o -MD -MP -MF .deps/query.Tpo -c -o query.o query.c mv -f .deps/query.Tpo .deps/query.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT sans.o -MD -MP -MF .deps/sans.Tpo -c -o sans.o sans.c mv -f .deps/sans.Tpo .deps/sans.Po mipsel-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_musl-1.1.11/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_musl-1.1.11/include -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 -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=gnu99 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c utils.c: In function 'settimeout': utils.c:94:12: error: variable 'timeout' has initializer but incomplete type struct timeval timeout = { .tv_sec = 3, .tv_usec = 0}; ^ utils.c:94:12: error: unknown field 'tv_sec' specified in initializer utils.c:94:12: warning: excess elements in struct initializer [enabled by default] utils.c:94:12: warning: (near initialization for 'timeout') [enabled by default] utils.c:94:12: error: unknown field 'tv_usec' specified in initializer utils.c:94:12: warning: excess elements in struct initializer [enabled by default] utils.c:94:12: warning: (near initialization for 'timeout') [enabled by default] utils.c:94:20: error: storage size of 'timeout' isn't known struct timeval timeout = { .tv_sec = 3, .tv_usec = 0}; ^ utils.c:95:66: error: invalid application of 'sizeof' to incomplete type 'struct timeval' if (setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(struct timeval)) != 0) ^ utils.c:99:66: error: invalid application of 'sizeof' to incomplete type 'struct timeval' if (setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(struct timeval)) != 0) ^ utils.c:94:20: warning: unused variable 'timeout' [-Wunused-variable] struct timeval timeout = { .tv_sec = 3, .tv_usec = 0}; ^ make[5]: *** [utils.o] Error 1 make[5]: Leaving directory/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02' make[3]: *** [all] Error 2 make[3]: Leaving directory/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02'
make[2]: *** [/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02/.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/trunk'
make: *** [package/network/services/sans/compile] Error 2

MinGW: sys/select.h: No such file or directory

i686-w64-mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..    -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT event.o -MD -MP -MF .deps/event.Tpo -c -o event.o event.c
event.c:23:24: fatal error: sys/select.h: No such file or directory
 #include <sys/select.h>
                        ^
compilation terminated.
Makefile:347: recipe for target 'event.o' failed
make[2]: *** [event.o] Error 1

间歇性判断故障

使用境外测试DNS服务器会受到超时和阻断,造成SANA不能正常工作 重启程序只能维持10分钟

tomato交叉编译问题

您好!打扰了!
使用mipsel toolchain编译出现以下状况:
houzi@houzi-Lenovo-V3000:/sans$ --prefix=/usr/ --sysconfdir=/etc
bash: --prefix=/usr/: 没有那个文件或目录
houzi@houzi-Lenovo-V3000:
/sans$ --prefix='/usr' --sysconfdir=/etc
bash: --prefix=/usr: 没有那个文件或目录
houzi@houzi-Lenovo-V3000:/sans$ make
make all-recursive
make[1]: 正在进入目录 /home/houzi/sans' Making all in src make[2]: 正在进入目录/home/houzi/sans/src'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT async_connect.o -MD -MP -MF .deps/async_connect.Tpo -c -o async_connect.o async_connect.c
async_connect.c: In function ‘socks5_send_cb’:
async_connect.c:298:32: warning: cast discards ‘attribute((const))’ qualifier from pointer target type [-Wcast-qual]
memcpy(buf + 4, &(((struct sockaddr_in )ctx->addr)->sin_addr), 4);
^
async_connect.c:299:32: warning: cast discards ‘attribute((const))’ qualifier from pointer target type [-Wcast-qual]
memcpy(buf + 8, &(((struct sockaddr_in *)ctx->addr)->sin_port), 2);
^
async_connect.c:305:32: warning: cast discards ‘attribute((const))’ qualifier from pointer target type [-Wcast-qual]
memcpy(buf + 4, &(((struct sockaddr_in6 *)ctx->addr)->sin6_addr), 16);
^
async_connect.c:306:33: warning: cast discards ‘attribute((const))’ qualifier from pointer target type [-Wcast-qual]
memcpy(buf + 20, &(((struct sockaddr_in6 *)ctx->addr)->sin6_port), 2);
^
mv -f .deps/async_connect.Tpo .deps/async_connect.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o cache.o cache.c
mv -f .deps/cache.Tpo .deps/cache.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT conf.o -MD -MP -MF .deps/conf.Tpo -c -o conf.o conf.c
mv -f .deps/conf.Tpo .deps/conf.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT dns.o -MD -MP -MF .deps/dns.Tpo -c -o dns.o dns.c
dns.c: In function ‘ns_mkquery’:
dns.c:157:26: warning: to be safe all intermediate pointers in cast from ‘u_char *
’ to ‘const u_char *’ must be ‘const’ qualified [-Wcast-qual](const u_char **)dnptrs,
^
dns.c:158:26: warning: to be safe all intermediate pointers in cast from ‘u_char *
’ to ‘const u_char *’ must be ‘const’ qualified [-Wcast-qual](const u_char **)lastdnptr);
^
mv -f .deps/dns.Tpo .deps/dns.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT dnsmsg.o -MD -MP -MF .deps/dnsmsg.Tpo -c -o dnsmsg.o dnsmsg.c
mv -f .deps/dnsmsg.Tpo .deps/dnsmsg.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT event.o -MD -MP -MF .deps/event.Tpo -c -o event.o event.c
mv -f .deps/event.Tpo .deps/event.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT log.o -MD -MP -MF .deps/log.Tpo -c -o log.o log.c
mv -f .deps/log.Tpo .deps/log.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT query.o -MD -MP -MF .deps/query.Tpo -c -o query.o query.c
mv -f .deps/query.Tpo .deps/query.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT sans.o -MD -MP -MF .deps/sans.Tpo -c -o sans.o sans.c
mv -f .deps/sans.Tpo .deps/sans.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c
mv -f .deps/utils.Tpo .deps/utils.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -MT resolv.o -MD -MP -MF .deps/resolv.Tpo -c -o resolv.o resolv.c
resolv.c: In function ‘dn_comp’:
resolv.c:1259:29: warning: to be safe all intermediate pointers in cast from ‘u_char *
’ to ‘const u_char *’ must be ‘const’ qualified [-Wcast-qual](const u_char **)dnptrs,
^
resolv.c:1260:29: warning: to be safe all intermediate pointers in cast from ‘u_char *
’ to ‘const u_char **’ must be ‘const’ qualified [-Wcast-qual](const u_char **)lastdnptr);
^
mv -f .deps/resolv.Tpo .deps/resolv.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -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
libtool: link: gcc -std=gnu99 -pipe -fno-strict-aliasing -Wall -W -Wshadow -Wwrite-strings -Wcast-qual -g -O2 -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
make[2]:正在离开目录 /home/houzi/sans/src' make[2]: 正在进入目录/home/houzi/sans'
make[2]:正在离开目录 /home/houzi/sans' make[1]:正在离开目录/home/houzi/sans'
houzi@houzi-Lenovo-V3000:
/sans$

没有生成执行文件和配置文件!

在最新openwrt源码里编译错误

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 to__stack_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 function socks5_send_cb': async_connect.c:(.text+0x120): undefined reference to__stack_chk_guard'
async_connect.c:(.text+0x128): undefined reference to __stack_chk_guard' async_connect.c:(.text+0x2c0): undefined reference to__stack_chk_guard'
async_connect.c:(.text+0x2cc): undefined reference to __stack_chk_fail' async_connect.o: In functionsocks5_recv_cb':
async_connect.c:(.text+0x2ec): undefined reference to __stack_chk_guard' async_connect.c:(.text+0x2f4): undefined reference to__stack_chk_guard'
async_connect.c:(.text+0x438): undefined reference to __stack_chk_guard' async_connect.c:(.text+0x444): undefined reference to__stack_chk_fail'
conf.o: In function read_conf': conf.c:(.text+0x38): undefined reference to__stack_chk_guard'
conf.c:(.text+0x40): undefined reference to __stack_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 to__stack_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 function ns_parse_reply': dns.c:(.text+0x3cc): undefined reference to__stack_chk_guard'
dns.c:(.text+0x3dc): undefined reference to __stack_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 to__stack_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 to __stack_chk_fail' dnsmsg.o: In functionreply_udp_recv_cb':
dnsmsg.c:(.text+0x758): undefined reference to __stack_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 to__stack_chk_guard'
log.c:(.text+0x10): undefined reference to __stack_chk_guard' log.c:(.text+0xe0): undefined reference to__stack_chk_guard'
log.c:(.text+0xec): undefined reference to __stack_chk_fail' sans.o: In functionreply_cb':
sans.c:(.text+0x1c): undefined reference to __stack_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 to__stack_chk_fail'
sans.o: In function test_cb': sans.c:(.text+0x160): undefined reference to__stack_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 to __stack_chk_guard' sans.c:(.text+0x344): undefined reference to__stack_chk_guard'
sans.c:(.text+0x4dc): undefined reference to __stack_chk_guard' sans.c:(.text+0x4e8): undefined reference to__stack_chk_fail'
sans.o: In function connect_cb': sans.c:(.text+0x58c): undefined reference to__stack_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 to __stack_chk_fail' resolv.o: In functionns_name_uncompress':
resolv.c:(.text+0xe88): undefined reference to __stack_chk_guard' resolv.c:(.text+0xe90): undefined reference to__stack_chk_guard'
resolv.c:(.text+0xeec): undefined reference to __stack_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 to__stack_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

musl下运行报错

Assertion failed: sock > 0 (dnsmsg.c: query_recv: 74)
这是启动得到的报告

tomato 下编译成功但是运行出错

可以建立监听,但是一查询就退出:
[tomatoware][asus:/tmp/mnt/data/compile/sans]$ ./src/sans -c ./src/sans.conf -v
[15-05-14 01:40:25] starting sans at 192.168.2.1:5300
./src/sans: dnsmsg.c: 108: query_udp_recv_cb: Assertion 'ctx->data != 0' failed.
Aborted

编译过程中出现过 ev.c 相关错误:
undefined reference to 'epoll_create1'
undefined reference to 'epoll_create1'

这个错误在我编译shadowsocks的时候也出现过,我就用相同的方法修改了 config.h 里面的:

define HAVE_EPOLL_CTL 0

define HAVE_INOTIFY_INIT 0

这样能成功编译,也能运行,就是一查询就退出。

解析故障报告

抓包得到:
192.168.1.209.59750 > 192.112.36.4.domain: [bad udp cksum 0xa723 -> 0xa8fb!] 47700+ SOA? github.com. (28)
19:57:18.428055 IP (tos 0x0, ttl 64, id 54370, offset 0, flags [DF], proto UDP (17), length 56)
192.168.1.209.59750 > 192.112.36.4.domain: [bad udp cksum 0xa723 -> 0xdf5b!] 33780+ SOA? github.com. (28)
19:57:23.432028 IP (tos 0x0, ttl 64, id 55177, offset 0, flags [DF], proto UDP (17), length 56)
192.168.1.209.59750 > 192.112.36.4.domain: [bad udp cksum 0xa723 -> 0xb644!] 44299+ SOA? github.com. (28)
19:57:28.436222 IP (tos 0x0, ttl 64, id 55279, offset 0, flags [DF], proto UDP (17), length 56)
192.168.1.209.59750 > 192.112.36.4.domain: [bad udp cksum 0xa723 -> 0xb6e4!] 44139+ SOA? github.com. (28)

程序日志:
[15-09-16 20:00:08] query [2] [AAAA] [github.com]
[15-09-16 20:00:08] detect [twitter.com]
[15-09-16 20:00:13] query [3] [AAAA] [github.com]
[15-09-16 20:00:13] detect [twitter.com]
[15-09-16 20:00:18] query [4] [AAAA] [github.com]
[15-09-16 20:00:18] detect [twitter.com]
[15-09-16 20:00:23] query [5] [AAAA] [github.com]

换过root dns server 不行,换境外一般服务器可以坚持段时间 之后出现为题

openwrt 编译报错

rror=format-security -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT cache.o -MD -MP -MF .deps/cache.Tpo -c -o cache.o cache.c
cache.c: In function 'cache_tick':
cache.c:165:5: error: 'for' loop initial declarations are only allowed in C99 mode
for (int i = 0; i < HASH_SIZE; i++)
^
cache.c:165:5: note: use option -std=c99 or -std=gnu99 to compile your code
make[5]: *** [cache.o] Error 1

解析判断错误依然存在

root@openwrt:~# nslookup twitter.com 127.0.0.1:5353
Server: 127.0.0.1
Address 1: 127.0.0.1 localhost

Name: twitter.com
Address 1: 159.106.121.75

F:\Users\xxxx>nslookup twitter.com 192.168.1.1
服务器: lan
Address: 192.168.1.1

非权威应答:
名称: twitter.com
Addresses: 159.106.121.75
243.185.187.39

user=nobody
group=nobody
listen=127.0.0.1:5353
socks5=127.0.0.1:8888
test_server=202.12.27.33:53
cn_server=218.102.23.228:53
server=8.8.4.4:53
当时日志没有设置,重启后又恢复正常

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.