Hi,
I'm getting compile error while compiling rpcd in openwrt for MT7620A based
router. I'm using the latest source code (r42926) and kernel 3.14.18. I'm
getting similar error from both Linux and mac os x machines. Any idea, how
to solve this issue?
ERROR LOG:
/*********************************************************/
...........
...........
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:59:2:
error: unknown type name 'json_tokener'
json_tokener *tok;
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:
In function 'rpc_plugin_call_stdout_cb':
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:86:3:
error: implicit declaration of function 'json_tokener_parse_ex'
[-Werror=implicit-function-declaration]
c->obj = json_tokener_parse_ex(c->tok, buf, len);
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:86:10:
error: assignment makes pointer from integer without a cast [-Werror]
c->obj = json_tokener_parse_ex(c->tok, buf, len);
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:3:
error: implicit declaration of function 'json_tokener_get_error'
[-Werror=implicit-function-declaration]
if (json_tokener_get_error(c->tok) != json_tokener_continue)
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:41:
error: 'json_tokener_continue' undeclared (first use in this function)
if (json_tokener_get_error(c->tok) != json_tokener_continue)
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:88:41:
note: each undeclared identifier is reported only once for each function it
appears in
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:
In function 'rpc_plugin_call_finish_cb':
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:107:40:
error: 'json_tokener_success' undeclared (first use in this function)
if (json_tokener_get_error(c->tok) == json_tokener_success)
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:111:4:
error: implicit declaration of function 'json_object_get_type'
[-Werror=implicit-function-declaration]
if (json_object_get_type(c->obj) == json_type_object &&
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:111:40:
error: 'json_type_object' undeclared (first use in this function)
if (json_object_get_type(c->obj) == json_type_object &&
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:115:4:
error: implicit declaration of function 'json_object_put'
[-Werror=implicit-function-declaration]
json_object_put(c->obj);
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:123:2:
error: implicit declaration of function 'json_tokener_free'
[-Werror=implicit-function-declaration]
json_tokener_free(c->tok);
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:
In function 'rpc_plugin_call':
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:147:2:
error: implicit declaration of function 'json_tokener_new'
[-Werror=implicit-function-declaration]
c->tok = json_tokener_new();
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:147:9:
error: assignment makes pointer from integer without a cast [-Werror]
c->tok = json_tokener_new();
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:
In function 'rpc_plugin_parse_exec':
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:262:2:
error: unknown type name 'json_tokener'
json_tokener *tok;
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:267:6:
error: assignment makes pointer from integer without a cast [-Werror]
tok = json_tokener_new();
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:274:9:
error: assignment makes pointer from integer without a cast [-Werror]
jsobj = json_tokener_parse_ex(tok, outbuf, len);
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:276:38:
error: 'json_tokener_continue' undeclared (first use in this function)
if (json_tokener_get_error(tok) == json_tokener_continue)
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:279:38:
error: 'json_tokener_success' undeclared (first use in this function)
if (json_tokener_get_error(tok) != json_tokener_success)
^
/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c:284:39:
error: 'json_type_object' undeclared (first use in this function)
if (json_object_get_type(jsobj) == json_type_object)
^
cc1: all warnings being treated as errors
CMakeFiles/rpcd.dir/build.make:149: recipe for target
'CMakeFiles/rpcd.dir/plugin.c.o' failed
make[6]: *** [CMakeFiles/rpcd.dir/plugin.c.o] Error 1
make[6]: Leaving directory
'/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'
CMakeFiles/Makefile2:151: recipe for target 'CMakeFiles/rpcd.dir/all' failed
make[5]: *** [CMakeFiles/rpcd.dir/all] Error 2
make[5]: Leaving directory
'/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'
Makefile:116: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory
'/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'
Makefile:94: recipe for target
'/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/.built'
failed
make[3]: ***
[/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/.built]
Error 2
make[3]: Leaving directory '/Volumes/openwrt/openwrt/package/system/rpcd'
package/Makefile:174: recipe for target 'package/system/rpcd/compile' failed
make[2]: *** [package/system/rpcd/compile] Error 2
make[2]: Leaving directory '/Volumes/openwrt/openwrt'
package/Makefile:171: recipe for target
'/Volumes/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile'
failed
make[1]: ***
[/Volumes/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile]
Error 2
make[1]: Leaving directory '/Volumes/openwrt/openwrt'
/Volumes/openwrt/openwrt/include/toplevel.mk:173: recipe for target 'world'
failed
make: *** [world] Error 2
/*********************************************************/
Regards,
Md Mahbubur Rasheed
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel