<div dir="ltr"><div><p style="margin:0px;font-size:13px;font-family:Monaco">Hi,</p><p style="margin:0px;font-size:13px;font-family:Monaco">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?</p><p style="margin:0px;font-size:13px;font-family:Monaco"><br></p><p style="margin:0px;font-size:13px;font-family:Monaco"><br></p><p style="margin:0px;font-size:13px;font-family:Monaco">ERROR LOG:</p><p style="margin:0px;font-size:13px;font-family:Monaco">/*********************************************************/</p><p style="margin:0px;font-size:13px;font-family:Monaco">...........</p><p style="margin:0px;font-size:13px;font-family:Monaco">...........</p><p style="margin:0px;font-size:13px;font-family:Monaco">/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'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> json_tokener *tok;</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call_stdout_cb':</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> c->obj = json_tokener_parse_ex(c->tok, buf, len);</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> c->obj = json_tokener_parse_ex(c->tok, buf, len);</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_tokener_get_error(c->tok) != json_tokener_continue)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_tokener_get_error(c->tok) != json_tokener_continue)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call_finish_cb':</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_tokener_get_error(c->tok) == json_tokener_success)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_object_get_type(c->obj) == json_type_object &&</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_object_get_type(c->obj) == json_type_object &&</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> json_object_put(c->obj);</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> json_tokener_free(c->tok);</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_call':</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> c->tok = json_tokener_new();</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> c->tok = json_tokener_new();</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/plugin.c: In function 'rpc_plugin_parse_exec':</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> json_tokener *tok;</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> tok = json_tokener_new();</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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]</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> jsobj = json_tokener_parse_ex(tok, outbuf, len);</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_tokener_get_error(tok) == json_tokener_continue)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_tokener_get_error(tok) != json_tokener_success)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/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)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> if (json_object_get_type(jsobj) == json_type_object)</p>
<p style="margin:0px;font-size:13px;font-family:Monaco"> ^</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">cc1: all warnings being treated as errors</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">CMakeFiles/rpcd.dir/build.make:149: recipe for target 'CMakeFiles/rpcd.dir/plugin.c.o' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[6]: *** [CMakeFiles/rpcd.dir/plugin.c.o] Error 1</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[6]: Leaving directory '/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">CMakeFiles/Makefile2:151: recipe for target 'CMakeFiles/rpcd.dir/all' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[5]: *** [CMakeFiles/rpcd.dir/all] Error 2</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[5]: Leaving directory '/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">Makefile:116: recipe for target 'all' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[4]: *** [all] Error 2</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[4]: Leaving directory '/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">Makefile:94: recipe for target '/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/.built' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[3]: *** [/Volumes/openwrt/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/rpcd/.built] Error 2</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[3]: Leaving directory '/Volumes/openwrt/openwrt/package/system/rpcd'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">package/Makefile:174: recipe for target 'package/system/rpcd/compile' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[2]: *** [package/system/rpcd/compile] Error 2</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[2]: Leaving directory '/Volumes/openwrt/openwrt'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">package/Makefile:171: recipe for target '/Volumes/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[1]: *** [/Volumes/openwrt/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make[1]: Leaving directory '/Volumes/openwrt/openwrt'</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">/Volumes/openwrt/openwrt/include/<a href="http://toplevel.mk:173">toplevel.mk:173</a>: recipe for target 'world' failed</p>
<p style="margin:0px;font-size:13px;font-family:Monaco">make: *** [world] Error 2</p></div><div><span style="font-family:Monaco;font-size:13px">/*********************************************************/</span><br></div><div><br></div>Regards,<br clear="all"><div><div dir="ltr"><div>Md Mahbubur Rasheed<br></div></div></div>
</div>