Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jshn.c #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update jshn.c #2

wants to merge 1 commit into from

Conversation

thefat32
Copy link

When trying to compile on Ubuntu 14.04 got:

[ 51%] Building C object CMakeFiles/jshn.dir/jshn.c.o
/opt/git/libubox/jshn.c: In function ‘jshn_parse’:
/opt/git/libubox/jshn.c:162:2: warning: implicit declaration of function ‘is_error’ [-Wimplicit-function-declaration]
if (is_error(obj) || json_object_get_type(obj) != json_type_object) {
^

adding #include json/bits.h solve the problem (You must have json-c sources on "/usr/include/json") for this to function.

When trying to compile on Ubuntu 14.04 got:

[ 51%] Building C object CMakeFiles/jshn.dir/jshn.c.o
/opt/git/libubox/jshn.c: In function ‘jshn_parse’:
/opt/git/libubox/jshn.c:162:2: warning: implicit declaration of function ‘is_error’ [-Wimplicit-function-declaration]
  if (is_error(obj) || json_object_get_type(obj) != json_type_object) {
  ^

adding #include <json/bits.h> solve the problem (You must have json-c sources on "/usr/include/json") for this to function.
@xfguo
Copy link
Owner

xfguo commented Feb 15, 2015

Hi, @lukss12 , you should commit you patch to the mail list of OpenWrt-Dev, https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants