Closed qiuzi closed 9 years ago
用到了 C99 的一些特性,需要参数 -std=c99 或 -std=gnu99。按理说如果用 configure 自动生成 Makefile 应该自动添加这个参数了,你编译的命令是什么?编译工具链是哪个版本?
加上这一行试试:
TARGET_CFLAGS += -std=gnu99
另外 sans 不依赖 libpthread
-std=c99 会不会对嵌入式好些?
2015-08-05 23:45 GMT+08:00 蒲肖肖 notifications@github.com:
加上这一行试试:
TARGET_CFLAGS += -std=gnu99
另外 sans 不依赖 libpthread
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128045762.
差别不大,两个都可以
T main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function 'main': main.c:69:22: error: storage size of 'sa' isn't known struct sigaction sa; ^ main.c:71:5: warning: implicit declaration of function 'sigemptyset' [-Wimplicit-function-declaration] sigemptyset(&sa.sa_mask); ^ main.c:72:19: error: 'SA_RESTART' undeclared (first use in this function) sa.sa_flags = SA_RESTART; ^ main.c:72:19: note: each undeclared identifier is reported only once for each function it appears in main.c:73:5: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration] sigaction(SIGINT, &sa, NULL); ^ main.c:69:22: warning: unused variable 'sa' [-Wunused-variable] struct sigaction sa; ^ make[5]: *\ [main.o] Error 1
c99 就报错 还有默认不会建立/run/sans.pid文件吗? 需要手动建立?
2015-08-06 0:16 GMT+08:00 蒲肖肖 notifications@github.com:
差别不大,两个都可以
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128055500.
能否贴一下编译过程的完整日志?注册信号处理函数时会根据预定义宏决定使用 sigaction() 还是 signal(),但看样子似乎 configure 脚本执行的有问题,需要完整日志分析一下。另外 pid 文件是只有以 daemon 方式运行(加 -d 参数)时才会有。
autoreconf: running: /home/openwrt/trunk/staging_dir/host/bin/autoheader
--include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/host/share/aclocal
--include=/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/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_uClibc-0.9.33.2/sans-1.02/./; if [ -x ./configure ]; then find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/ -name config.guess | xargs -r chmod u+w; find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/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_uClibc-0.9.33.2/sans-1.02/ -name config.sub | xargs -r chmod u+w; find /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/ -name config.sub | xargs -r -n1 cp --remove-destination /home/openwrt/trunk/scripts/config.sub; 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=c99" 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 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=c99 " 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=c99 " CPPFLAGS="-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/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-uclibc-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-uclibc-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-uclibc-gcc accepts -g... yes checking for mipsel-openwrt-linux-uclibc-gcc option to accept ISO C89... none needed checking whether mipsel-openwrt-linux-uclibc-gcc understands -c and -o together... yes checking dependency style of mipsel-openwrt-linux-uclibc-gcc... gcc3 checking for mipsel-openwrt-linux-uclibc-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-uclibc-gcc... mipsel-openwrt-linux-uclibc-ld checking if the linker (mipsel-openwrt-linux-uclibc-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... mipsel-openwrt-linux-uclibc-gcc-nm checking the name lister (mipsel-openwrt-linux-uclibc-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-uclibc-ld option to reload object files... -r checking for mipsel-openwrt-linux-objdump... mipsel-openwrt-linux-uclibc-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-uclibc-gcc-ar checking for archiver @FILE support... @ checking for mipsel-openwrt-linux-strip... (cached) mipsel-openwrt-linux-uclibc-strip checking for mipsel-openwrt-linux-ranlib... mipsel-openwrt-linux-uclibc-gcc-ranlib checking command to parse mipsel-openwrt-linux-uclibc-gcc-nm output from mipsel-openwrt-linux-uclibc-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-uclibc-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-uclibc-gcc supports -fno-rtti -fno-exceptions... no checking for mipsel-openwrt-linux-uclibc-gcc option to produce PIC... -fPIC -DPIC checking if mipsel-openwrt-linux-uclibc-gcc PIC flag -fPIC -DPIC works... yes checking if mipsel-openwrt-linux-uclibc-gcc static flag -static works... yes checking if mipsel-openwrt-linux-uclibc-gcc supports -c -o file.o... yes checking if mipsel-openwrt-linux-uclibc-gcc supports -c -o file.o... (cached) yes checking whether the mipsel-openwrt-linux-uclibc-gcc linker (mipsel-openwrt-linux-uclibc-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_uClibc-0.9.33.2/sans-1.02/.configured_* touch /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/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 -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -std=c99 -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/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=c99 -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include " LDFLAGS="-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -znow -zrelro " make -j1 -C /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/. 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=c99" 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/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02'
make all-recursive
make[4]: Entering directory
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02' Making all in src make[5]: Entering directory
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/src'
mipsel-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I..
-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include
-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include
-I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include
-I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/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 -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro
-std=c99 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c: In function 'main':
main.c:69:22: error: storage size of 'sa' isn't known
struct sigaction sa;
^
main.c:71:5: warning: implicit declaration of function 'sigemptyset'
[-Wimplicit-function-declaration]
sigemptyset(&sa.sa_mask);
^
main.c:72:19: error: 'SA_RESTART' undeclared (first use in this function)
sa.sa_flags = SA_RESTART;
^
main.c:72:19: note: each undeclared identifier is reported only once for
each function it appears in
main.c:73:5: warning: implicit declaration of function 'sigaction'
[-Wimplicit-function-declaration]
sigaction(SIGINT, &sa, NULL);
^
main.c:69:22: warning: unused variable 'sa' [-Wunused-variable]
struct sigaction sa;
^
make[5]: * [main.o] Error 1
make[5]: Leaving directory
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02'
make[3]: * [all] Error 2
make[3]: Leaving directory
`/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02'
make[2]: *
[/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/.built]
Error 2
make[2]: Leaving directory
/home/openwrt/h2ofan/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
肯定需要后台运行了 我觉得默认就应该自动建立pid才符合时代
在 2015年8月6日 上午12:32,蒲肖肖 notifications@github.com写道:
能否贴一下编译过程的完整日志?注册信号处理函数时会根据预定义宏决定使用 sigaction() 还是 signal(),但看样子似乎 configure 脚本执行的有问题,需要完整日志分析一下。另外 pid 文件是只有以 daemon 方式运行(加 -d 参数)时才会有。
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128061375.
查到这个:
gcc -std=c99 on linux means: only recognize functions specified in the standard (no sigaction, no strtok_r etc)
还是用 -std=gnu99
吧。
开发测试时前台运行比较方便,就不默认后台了,加 -d
参数吧。
我是加了-d root@openwrt:~# /mnt/sda1/sans -d -c /etc/sans.conf can not open pidfile: /run/sans.pid
还有cn_server=114.114.114.114:53是什么意思? 会自动判断国内域名吗?
2015-08-06 1:00 GMT+08:00 蒲肖肖 notifications@github.com:
查到这个:
gcc -std=c99 on linux means: only recognize functions specified in the standard (no sigaction, no strtok_r etc)
还是用 -std=gnu99 吧。
开发测试时前台运行比较方便,就不默认后台了,加 -d 参数吧。
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128070409.
默认 pid 文件的路径是 archlinux 的,openwrt 上可能没有 /run 这个文件夹,可能是 /var/run 之类的,用 --pidfile <file>
参数改一下吧。配置这里有说明: https://github.com/XiaoxiaoPu/sans#configuration
如果配置多个cn_server和server 会全都解析后挑选最快的吗? 2015-8-6 上午1:19于 "蒲肖肖" notifications@github.com写道:
默认 pid 文件的路径是 archlinux 的,openwrt 上可能没有 /run 这个文件夹,可能是 /var/run 之类的,用 --pidfile
参数改一下吧。配置这里有说明: https://github.com/XiaoxiaoPu/sans#configuration — Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128081616.
不会,暂时每种 server 只支持一个
有时依旧解析错误 解析到污染的ip 159.106.121.75
2015-08-06 10:38 GMT+08:00 蒲肖肖 notifications@github.com:
不会,暂时每种 server 只支持一个
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-128218495.
加上 -v 参数,贴出运行日志和配置文件
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
晕,本来test server就必须是国外服务器 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:05 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
— Reply to this email directly or view it on GitHub.
test server我用8.8.4.4就不太稳定 换HK的好了些
2015-08-09 18:08 GMT+08:00 蒲肖肖 notifications@github.com:
晕,本来test server就必须是国外服务器 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:05 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150574.
8.8.8.8和8.8.4.4有丢包,可以换成根DNS ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:13 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
test server我用8.8.4.4就不太稳定 换HK的好了些
2015-08-09 18:08 GMT+08:00 蒲肖肖 notifications@github.com:
晕,本来test server就必须是国外服务器 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:05 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150574.
— Reply to this email directly or view it on GitHub.
根DNS 有哪些 推荐
2015-08-09 18:15 GMT+08:00 蒲肖肖 notifications@github.com:
8.8.8.8和8.8.4.4有丢包,可以换成根DNS ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:13 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
test server我用8.8.4.4就不太稳定 换HK的好了些
2015-08-09 18:08 GMT+08:00 蒲肖肖 notifications@github.com:
晕,本来test server就必须是国外服务器 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:05 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150574.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150775.
dig -t ns . 总共有13个 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:16 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
根DNS 有哪些 推荐
2015-08-09 18:15 GMT+08:00 蒲肖肖 notifications@github.com:
8.8.8.8和8.8.4.4有丢包,可以换成根DNS ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:13 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
test server我用8.8.4.4就不太稳定 换HK的好了些
2015-08-09 18:08 GMT+08:00 蒲肖肖 notifications@github.com:
晕,本来test server就必须是国外服务器 ------------------ Original ------------------ From: "qiuzi"notifications@github.com Date: Sun, Aug 9, 2015 06:05 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
把test_server 换成其他境外服务器重启暂时好了
2015-08-09 14:29 GMT+08:00 蒲肖肖 notifications@github.com:
加上 -v 参数,贴出运行日志
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129128222.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150574.
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-129150775.
— Reply to this email directly or view it on GitHub.
checking whether the C compiler works... no
configure: error: in /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02': configure: error: C compiler cannot create executables See
config.log' for more details
这是什么错误?
See config.log
'-std=gun99' 是 '-std=gnu99‘'
自己不会解决问题吗?
祝好! 蒲肖肖
------------------ Original ------------------ From: "qiuzi"notifications@github.com; Date: Mon, Aug 24, 2015 10:21 PM To: "XiaoxiaoPu/sans"sans@noreply.github.com; Cc: "蒲肖肖"i@xiaoxiao.im; Subject: Re: [sans] openwrt 编译报错 (#6)
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
It was created by sans configure 0.1.0, which was generated by GNU Autoconf 2.69. Invocation command line was
$ ./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
hostname = h2ofan uname -m = x86_64 uname -r = 2.6.32-042stab106.4 uname -s = Linux uname -v = #1 SMP Fri Mar 27 15:19:28 MSK 2015
/usr/bin/uname -p = unknown /bin/uname -X = unknown
/bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown
PATH: /home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/host/bin PATH: /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin PATH: /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin PATH: /home/openwrt/trunk/staging_dir/host/bin PATH: /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin PATH: /home/openwrt/trunk/staging_dir/host/bin PATH: /home/openwrt/trunk/staging_dir/host/bin PATH: /usr/local/nginx/sbin PATH: /usr/local/php/bin PATH: /usr/local/mysql/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games
configure:2230: loading site script /home/openwrt/trunk/include/site/mipsel | #!/bin/sh | . $TOPDIR/include/site/linux | ac_cv_c_littleendian=${ac_cv_c_littleendian=yes} | ac_cv_c_bigendian=${ac_cv_c_bigendian=no} |
---|---|---|---|---|
ac_cv_sizeof___int64=0 | ||||
ac_cv_sizeof_char=1 | ||||
ac_cv_sizeof_int=4 | ||||
ac_cv_sizeof_int16_t=2 | ||||
ac_cv_sizeof_int32_t=4 | ||||
ac_cv_sizeof_int64_t=8 | ||||
ac_cv_sizeof_long_int=4 | ||||
ac_cv_sizeof_long_long=8 | ||||
ac_cv_sizeof_long=4 | ||||
ac_cv_sizeof_off_t=8 | ||||
ac_cv_sizeof_short_int=2 | ||||
ac_cv_sizeof_short=2 | ||||
ac_cv_sizeof_size_t=4 | ||||
ac_cv_sizeof_ssize_t=4 | ||||
ac_cv_sizeof_u_int16_t=2 | ||||
ac_cv_sizeof_u_int32_t=4 | ||||
ac_cv_sizeof_u_int64_t=8 | ||||
ac_cv_sizeof_uint16_t=2 | ||||
ac_cv_sizeof_uint32_t=4 | ||||
ac_cv_sizeof_uint64_t=8 | ||||
ac_cv_sizeof_unsigned_int=4 | ||||
ac_cv_sizeof_unsigned_long=4 | ||||
ac_cv_sizeof_unsigned_long_long=8 | ||||
ac_cv_sizeof_unsigned_short=2 | ||||
ac_cv_sizeof_void_p=4 |
configure:2377: checking for a BSD-compatible install configure:2445: result: /usr/bin/install -c configure:2456: checking whether build environment is sane configure:2511: result: yes configure:2570: checking for mipsel-openwrt-linux-strip configure:2597: result: mipsel-openwrt-linux-uclibc-strip configure:2662: checking for a thread-safe mkdir -p configure:2701: result: /bin/mkdir -p configure:2708: checking for gawk configure:2724: found /usr/bin/gawk configure:2735: result: gawk configure:2746: checking whether make sets $(MAKE) configure:2768: result: yes configure:2797: checking whether make supports nested variables configure:2814: result: yes configure:2955: checking for style of include used by make configure:2983: result: GNU configure:3014: checking for mipsel-openwrt-linux-gcc configure:3041: result: mipsel-openwrt-linux-uclibc-gcc configure:3310: checking for C compiler version configure:3319: mipsel-openwrt-linux-uclibc-gcc --version >&5 mipsel-openwrt-linux-uclibc-gcc (OpenWrt/Linaro GCC 4.8-2014.04 r1) 4.8.3 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3330: $? = 0 configure:3319: mipsel-openwrt-linux-uclibc-gcc -v >&5 Reading specs from /home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.8.3/specs COLLECT_GCC=mipsel-openwrt-linux-uclibc-gcc COLLECT_LTO_WRAPPER=/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/libexec/gcc/mipsel-openwrt-linux-uclibc/4.8.3/lto-wrapper Target: mipsel-openwrt-linux-uclibc Configured with: /home/openwrt/trunk/build_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/gcc-linaro-4.8-2014.04/configure --with-bugurl=https://dev.openwrt.org/ --with-pkgversion='OpenWrt/Linaro GCC 4.8-2014.04 r1' --prefix=/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2 --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=mipsel-openwrt-linux-uclibc --with-gnu-ld --enable-target-optspace --disable-libgomp --disable-libmudflap --disable-multilib --disable-nls --with-host-libstdcxx=-lstdc++ --with-float=soft --with-gmp=/home/openwrt/trunk/staging_dir/host --with-mpfr=/home/openwrt/trunk/staging_dir/host --with-mpc=/home/openwrt/trunk/staging_dir/host --disable-decimal-float --with-mips-plt --enable-libssp --disable-__cxa_atexit --with-headers=/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include --disable-libsanitizer --enable-languages=c,c++ --enable-shared --enable-threads --with-slibdir=/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib Thread model: posix gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r1) configure:3330: $? = 0 configure:3319: mipsel-openwrt-linux-uclibc-gcc -V >&5 mipsel-openwrt-linux-uclibc-gcc: error: unrecognized command line option '-V' mipsel-openwrt-linux-uclibc-gcc: fatal error: no input files compilation terminated. configure:3330: $? = 1 configure:3319: mipsel-openwrt-linux-uclibc-gcc -qversion >&5 mipsel-openwrt-linux-uclibc-gcc: error: unrecognized command line option '-qversion' mipsel-openwrt-linux-uclibc-gcc: fatal error: no input files compilation terminated. configure:3330: $? = 1 configure:3350: checking whether the C compiler works configure:3372: mipsel-openwrt-linux-uclibc-gcc -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=gun99 -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -znow -zrelro conftest.c >&5 mipsel-openwrt-linux-uclibc-gcc: error: unrecognized command line option '-std=gun99' configure:3376: $? = 1 configure:3414: result: no configure: failed program was: | /* confdefs.h _/ | #define PACKAGE_NAME "sans" | #define PACKAGE_TARNAME "sans" | #define PACKAGE_VERSION "0.1.0" | #define PACKAGE_STRING "sans 0.1.0" | #define PACKAGE_BUGREPORT "https://github.com/XiaoxiaoPu/sans/issues" | #define PACKAGE_URL "https://github.com/XiaoxiaoPu/sans" | #define PACKAGE "sans" | #define VERSION "0.1.0" | /_ end confdefs.h. */ |
---|---|---|---|---|---|---|---|---|---|---|
int | ||||||||||
main () | ||||||||||
{ | ||||||||||
; | ||||||||||
return 0; | ||||||||||
} |
configure:3419: error: in
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02': configure:3421: error: C compiler cannot create executables See
config.log' for more details
ac_cv_c_bigendian=no ac_cv_c_gettext_without_libintl=yes ac_cv_c_littleendian=yes ac_cv_c_long_double=no ac_cv_conv_longlong_to_float=yes ac_cv_env_CC_set=set ac_cv_env_CC_value=mipsel-openwrt-linux-uclibc-gcc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-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=gun99 ' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include ' ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -znow -zrelro ' ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=mipsel-openwrt-linux ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=mipsel-openwrt-linux ac_cv_filedev_zero=yes ac_cvfuncadjtimex=yes ac_cv_func_va_copy=no ac_cv_funcexit=yes ac_cv_func_bcmp=yes ac_cv_func_bcopy=yes ac_cv_func_bzero=yes ac_cv_func_cimag=yes ac_cv_func_creal=yes ac_cv_func_fchmod=yes ac_cv_func_getaddrinfo=yes ac_cv_func_getcwd=yes ac_cv_func_getdomainname=yes ac_cv_func_getpgrp_void=yes ac_cv_func_getpwuid_r=yes ac_cv_func_gettimeofday=yes ac_cv_func_index=yes ac_cv_func_lstat=yes ac_cv_func_lstat_dereferences_slashed_symlink=yes ac_cv_func_lstat_empty_string_bug=no ac_cv_func_malloc_0_nonnull=yes ac_cv_func_malloc_works=yes ac_cv_func_memcmp_clean=yes ac_cv_func_memcmp_working=yes ac_cv_func_posix_getgrgid_r=yes ac_cv_func_posix_getpwuid_r=yes ac_cv_func_psignal=yes ac_cv_func_pthread_key_delete=yes ac_cv_func_realloc_0_nonnull=yes ac_cv_func_realloc_works=yes ac_cv_func_rename=yes ac_cv_func_rindex=yes ac_cv_func_setgrent_void=yes ac_cv_func_setlocale=yes ac_cv_func_setpgrp_void=yes ac_cv_func_setresuid=no ac_cv_func_setvbuf_reversed=no ac_cv_func_stat_empty_string_bug=no ac_cv_func_stat_ignores_trailing_slash=no ac_cv_func_strerror=yes ac_cv_func_strftime=yes ac_cv_func_utimes=yes ac_cv_func_va_copy=no ac_cv_func_vsnprintf=yes ac_cv_have_accrights_in_msghdr=no ac_cv_have_broken_snprintf=no ac_cv_have_control_in_msghdr=yes ac_cv_have_decl_sys_siglist=no ac_cv_have_openpty_ctty_bug=yes ac_cv_have_space_d_name_in_struct_dirent=yes ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sctp_uio_h=no ac_cv_int64_t=yes ac_cv_lbl_unaligned_fail=no ac_cv_linux_kernel_pppoe=yes ac_cv_linux_vers=2 ac_cv_pack_bitfields_reversed=yes ac_cv_path_LDCONFIG= ac_cv_path_install='/usr/bin/install -c' ac_cv_path_mkdir=/bin/mkdir ac_cv_prog_AWK=gawk ac_cv_prog_CC=mipsel-openwrt-linux-uclibc-gcc ac_cv_prog_STRIP=mipsel-openwrt-linux-uclibc-strip ac_cv_prog_make_make_set=yes ac_cv_regexec_segfault_emptystr=no ac_cv_sctp=no ac_cv_sizeof___int64=0 ac_cv_sizeof_char=1 ac_cv_sizeof_int16_t=2 ac_cv_sizeof_int32_t=4 ac_cv_sizeof_int64_t=8 ac_cv_sizeof_int=4 ac_cv_sizeof_long=4 ac_cv_sizeof_long_int=4 ac_cv_sizeof_long_long=8 ac_cv_sizeof_off_t=8 ac_cv_sizeof_short=2 ac_cv_sizeof_short_int=2 ac_cv_sizeof_size_t=4 ac_cv_sizeof_ssize_t=4 ac_cv_sizeof_u_int16_t=2 ac_cv_sizeof_u_int32_t=4 ac_cv_sizeof_u_int64_t=8 ac_cv_sizeof_uint16_t=2 ac_cv_sizeof_uint32_t=4 ac_cv_sizeof_uint64_t=8 ac_cv_sizeof_unsigned_int=4 ac_cv_sizeof_unsigned_long=4 ac_cv_sizeof_unsigned_long_long=8 ac_cv_sizeof_unsigned_short=2 ac_cv_sizeof_void_p=4 ac_cv_sys_restartable_syscalls=yes ac_cv_time_r_type=POSIX ac_cv_type_suseconds_t=yes ac_cv_uchar=no ac_cv_uint64_t=yes ac_cv_uint=yes ac_cv_ulong=yes ac_cv_ushort=yes ac_cv_va_copy=C99 ac_cv_va_val_copy=yes am_cv_make_support_nested_variables=yes as_cv_unaligned_access=yes
ACLOCAL='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='1' AM_DEFAULT_VERBOSITY='1' AM_V='1' AR='mipsel-openwrt-linux-uclibc-gcc-ar' AUTOCONF='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/missing autoconf' AUTOHEADER='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/missing autoheader' AUTOMAKE='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/missing automake-1.15' AWK='gawk' CC='mipsel-openwrt-linux-uclibc-gcc' CCDEPMODE='' 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=gun99 ' CPP='' CPPFLAGS='-I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include ' CYGPATH_W='echo' DEBUG_FALSE='' DEBUG_TRUE='' DEFS='' DEPDIR='.deps' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' FGREP='' GREP='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='mipsel-openwrt-linux-uclibc-ld' LDFLAGS='-L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/openwrt/trunk/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib -znow -zrelro ' LIBOBJS='' LIBS='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' MAKEINFO='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/missing makeinfo' MANIFEST_TOOL='' MKDIR_P='/bin/mkdir -p' NM='mipsel-openwrt-linux-uclibc-gcc-nm' NMEDIT='' OBJDUMP='mipsel-openwrt-linux-uclibc-objdump' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='sans' PACKAGE_BUGREPORT='https://github.com/XiaoxiaoPu/sans/issues' PACKAGE_NAME='sans' PACKAGE_STRING='sans 0.1.0' PACKAGE_TARNAME='sans' PACKAGE_URL='https://github.com/XiaoxiaoPu/sans' PACKAGE_VERSION='0.1.0' PATH_SEPARATOR=':' RANLIB='mipsel-openwrt-linux-uclibc-gcc-ranlib' SED='' SET_MAKE='' SHELL='/bin/bash' STATIC_FALSE='' STATIC_TRUE='' STRIP='mipsel-openwrt-linux-uclibc-strip' VERSION='0.1.0' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' amEXEEXT_FALSE='' am__EXEEXT_TRUE='' amfastdepCC_FALSE='' amfastdepCC_TRUE='' aminclude='include' amisrc='' am__leading_dot='.' amnodep='_no' amquote='' amtar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' bindir='/usr/bin' build='x86_64-linux-gnu' build_alias='x86_64-linux-gnu' build_cpu='' build_os='' build_vendor='' datadir='/usr/share' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='/usr' host='mipsel-openwrt-linux' host_alias='mipsel-openwrt-linux' host_cpu='' host_os='' host_vendor='' htmldir='${docdir}' includedir='${prefix}/include' infodir='/usr/info' install_sh='${SHELL} /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/sans-1.02/install-sh' libdir='${exec_prefix}/lib' libexecdir='/usr/lib' localedir='${datarootdir}/locale' localstatedir='/var' mandir='/usr/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' program_transform_name='s&$$&&;s&^&&' psdir='${docdir}' sbindir='/usr/sbin' sharedstatedir='${prefix}/com' sysconfdir='/etc' target_alias='mipsel-openwrt-linux'
/* confdefs.h */
configure: exit 77
2015-08-24 22:15 GMT+08:00 蒲肖肖 notifications@github.com:
See config.log
— Reply to this email directly or view it on GitHub https://github.com/XiaoxiaoPu/sans/issues/6#issuecomment-134220160.
— Reply to this email directly or view it on GitHub.
囧
最近好多事 乱得生活不能自理
make[4]: Entering directory /home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02' make all-recursive make[5]: Entering directory
/home/openwrt/trunk/build_dir/target-mipsel_24kec+dsp_musl-1.1.11/sans-1.02'
Making all in src
make[6]: 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 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[6]: *\ [utils.o] Error 1
使用musl 库编译会报错 应该是timeout文件结构改变了吧?
@qiuzi 给出你的交叉编辑工具完整信息。我只说一遍:一个 issue 提一个问题,不要再老的 issue 下提新问题。
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