본문 바로가기

IMS/kamailio

jansson_funcs.c:25:21: warning: jansson.h: No such file or directory

CC (gcc) [M jansson.so]         jansson_funcs.o

jansson_funcs.c:25:21: warning: jansson.h: No such file or directory

In file included from jansson_funcs.c:30:

jansson_path.h:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

jansson_path.h:14: error: expected ‘)’ before ‘*’ token

In file included from jansson_funcs.c:32:

jansson_utils.h:31: error: expected declaration specifiers or ‘...’ before ‘json_t’

jansson_utils.h:32: error: expected declaration specifiers or ‘...’ before ‘json_t’

jansson_funcs.c: In function ‘janssonmod_get’:

jansson_funcs.c:53: error: ‘json_t’ undeclared (first use in this function)

jansson_funcs.c:53: error: (Each undeclared identifier is reported only once

jansson_funcs.c:53: error: for each function it appears in.)

jansson_funcs.c:53: error: ‘json’ undeclared (first use in this function)

jansson_funcs.c:54: error: ‘json_error_t’ undeclared (first use in this function)

jansson_funcs.c:54: error: expected ‘;’ before ‘parsing_error’

jansson_funcs.c:56: warning: implicit declaration of function ‘json_loads’

jansson_funcs.c:56: error: ‘JSON_REJECT_DUPLICATES’ undeclared (first use in this function)

jansson_funcs.c:56: error: ‘parsing_error’ undeclared (first use in this function)

jansson_funcs.c:67: error: ‘v’ undeclared (first use in this function)

jansson_funcs.c:67: warning: implicit declaration of function ‘json_path_get’

jansson_funcs.c:74: error: too many arguments to function ‘jansson_to_val’

jansson_funcs.c:82: warning: implicit declaration of function ‘json_decref’

jansson_funcs.c: In function ‘janssonmod_set’:

jansson_funcs.c:135: error: ‘json_t’ undeclared (first use in this function)

jansson_funcs.c:135: error: ‘result_json’ undeclared (first use in this function)

jansson_funcs.c:136: error: ‘value’ undeclared (first use in this function)

jansson_funcs.c:138: error: ‘json_error_t’ undeclared (first use in this function)

jansson_funcs.c:138: error: expected ‘;’ before ‘parsing_error’

jansson_funcs.c:143: error: ‘JSON_REJECT_DUPLICATES’ undeclared (first use in this function)

jansson_funcs.c:143: error: ‘parsing_error’ undeclared (first use in this function)

jansson_funcs.c:144: warning: implicit declaration of function ‘json_is_object’

jansson_funcs.c:151: warning: implicit declaration of function ‘json_is_array’

jansson_funcs.c:158: warning: implicit declaration of function ‘json_string’

jansson_funcs.c:159: warning: implicit declaration of function ‘json_is_string’

jansson_funcs.c:171: warning: implicit declaration of function ‘json_integer’

jansson_funcs.c:172: warning: implicit declaration of function ‘json_is_integer’

jansson_funcs.c:183: warning: implicit declaration of function ‘json_real’

jansson_funcs.c:184: warning: implicit declaration of function ‘json_is_real’

jansson_funcs.c:190: warning: implicit declaration of function ‘json_true’

jansson_funcs.c:193: warning: implicit declaration of function ‘json_false’

jansson_funcs.c:196: warning: implicit declaration of function ‘json_null’

jansson_funcs.c:220: warning: implicit declaration of function ‘json_path_set’

jansson_funcs.c:224: error: too many arguments to function ‘jansson_to_val’

jansson_funcs.c: In function ‘janssonmod_array_size’:

jansson_funcs.c:257: error: ‘json_t’ undeclared (first use in this function)

jansson_funcs.c:257: error: ‘json’ undeclared (first use in this function)

jansson_funcs.c:258: error: ‘json_error_t’ undeclared (first use in this function)

jansson_funcs.c:258: error: expected ‘;’ before ‘parsing_error’

jansson_funcs.c:260: error: ‘JSON_REJECT_DUPLICATES’ undeclared (first use in this function)

jansson_funcs.c:260: error: ‘parsing_error’ undeclared (first use in this function)

jansson_funcs.c:270: error: ‘v’ undeclared (first use in this function)

jansson_funcs.c:281: warning: implicit declaration of function ‘json_array_size’

make[2]: *** [jansson_funcs.o] Error 1

make[1]: *** [modules] Error 1

make[1]: Leaving directory `/root/kamailio/kamailio-5.1.5/src'

make: *** [all] Error 2


solution


yum install libevent2*