json-c-0.9移植

json-c-0.9

下载地址:http://www.json.org/

移植背景:在项目中需要统一数据传输格式,基于json 格式数据很能被接受,故统一用这种数据格式。

选择你适合你的安装包,

编译:

1../configure --prefix=/usr/local/json-c-0.9forarm --host=arm-linux CC=arm-none-linux-gnueabi-gcc  后面参数分布针对arm板上的使用的配置。

2 make

3 make check这步必须要做,做这步会发现错误 ./.libs/libjson.so: undefined reference to `rpl_malloc'             
                                                                                      ./.libs/libjson.so: undefined reference to `rpl_realloc'

谷歌上搜索解决办法,发现是因为在配置文件config.h.in中有这两行:#undef malloc
                                                     #undef realloc

注释以后在make check一下发现没有错误,可以进行下一步。

4.make install.使用root权限


按上述方法一修改后报错如下:$ make package/ubus_ipc_crc/compile V=99 make[1]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain&#39; if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libgcc" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install.clean; fi; echo "libpthread" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/toolchain.default.install make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/toolchain&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c&#39; if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install.clean; fi; echo "libjson-c" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libjson-c.default.install make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libjson-c&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua&#39; if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "liblua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install.clean; fi; echo "lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/lua.default.install make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/utils/lua&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox&#39; if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libubox" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libblobmsg-json" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "jshn" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install.clean; fi; echo "libjson-script" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/libubox.default.install make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/libs/libubox&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus&#39; if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "libubus-lua" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubus" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install if [ -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean ]; then rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install.clean; fi; echo "ubusd" >> /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/pkginfo/ubus.default.install make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/system/ubus&#39; make[2]: Entering directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc&#39; mkdir -p /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc cp -fpR ./src/* /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.prepared_17edf9e0d8c7e2d69ed91b923871c7b2 rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/stamp/.ubus_ipc_crc_installed (cd /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/./; if [ -x ./configure ]; then find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.guess | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.guess; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r chmod u+w; find /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/ -name config.sub | xargs -r -n1 cp --remove-destination /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/scripts/config.sub; AR="arm-openwrt-linux-uclibcgnueabi-gcc-ar" AS="arm-openwrt-linux-uclibcgnueabi-gcc -c -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard" LD=arm-openwrt-linux-uclibcgnueabi-ld NM="arm-openwrt-linux-uclibcgnueabi-gcc-nm" CC="arm-openwrt-linux-uclibcgnueabi-gcc" GCC="arm-openwrt-linux-uclibcgnueabi-gcc" CXX="arm-openwrt-linux-uclibcgnueabi-g++" RANLIB="arm-openwrt-linux-uclibcgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-uclibcgnueabi-strip OBJCOPY=arm-openwrt-linux-uclibcgnueabi-objcopy OBJDUMP=arm-openwrt-linux-uclibcgnueabi-objdump SIZE=arm-openwrt-linux-uclibcgnueabi-size CFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CXXFLAGS="-Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard " CPPFLAGS="-I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/include -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/include " LDFLAGS="-L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib " ./configure --target=arm-openwrt-linux --host=arm-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 ; fi; ) rm -f /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_* touch /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.configured_yyy arm-openwrt-linux-uclibcgnueabi-gcc -Os -pipe -march=armv6k -mtune=mpcore -mfpu=vfp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus -I/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubox /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c -o /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/usr/lib -L/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/lib -lubus -lubox -lobjc -lm /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c: In function &#39;receive_data&#39;: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:19:5: warning: passing argument 1 of &#39;blobmsg_parse&#39; from incompatible pointer type [enabled by default] blobmsg_parse(msg, 3, tb, blob_data(msg), blob_len(msg)); ^ In file included from /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubus.h:19:0, from /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/b_server.c:1: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/staging_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/usr/include/libubox/blobmsg.h:108:5: note: expected &#39;const struct blobmsg_policy *&#39; but argument is of type &#39;struct blob_attr *&#39; int blobmsg_parse(const struct blobmsg_policy *policy, int policy_len, ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c: In function &#39;init_crc_table&#39;: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c:7:5: error: &#39;for&#39; loop initial declarations are only allowed in C99 mode for (int i = 0; i < 256; i++) { ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c:7:5: note: use option -std=c99 or -std=gnu99 to compile your code /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c:9:9: error: &#39;for&#39; loop initial declarations are only allowed in C99 mode for (int j = 0; j < 8; j++) { ^ /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c: In function &#39;crc32&#39;: /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/crc32.c:26:5: error: &#39;for&#39; loop initial declarations are only allowed in C99 mode for (size_t i = 0; i < len; i++) { ^ Makefile:40: recipe for target &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.built&#39; failed make[2]: *** [/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/build_dir/target-arm_mpcore+vfp_uClibc-0.9.33.2_eabi/ubus_ipc_crc/.built] Error 1 make[2]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/package/ubus_ipc_crc&#39; package/Makefile:191: recipe for target &#39;package/ubus_ipc_crc/compile&#39; failed make[1]: *** [package/ubus_ipc_crc/compile] Error 2 make[1]: Leaving directory &#39;/home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1&#39; /home/shihaopeng/Desktop/CODE/homework3/openwrt-15.05.1/include/toplevel.mk:181: recipe for target &#39;package/ubus_ipc_crc/compile&#39; failed make: *** [package/ubus_ipc_crc/compile] Error 2
最新发布
08-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值