$ make
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd.c -o uclcmd.o
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_common.c -o uclcmd_common.o
uclcmd_common.c:86:6: warning: implicit declaration of function 'ucl_lookup_path_char' is invalid in C99
[-Wimplicit-function-declaration]
ucl_lookup_path_char(root_obj, dst_prefix, input_sepchar));
^
/usr/include/sys/cdefs.h:650:65: note: expanded from macro '__DECONST'
#define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var))
^
uclcmd_common.c:85:15: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
parent_obj = __DECONST(ucl_object_t *,
^
/usr/include/sys/cdefs.h:650:50: note: expanded from macro '__DECONST'
#define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var))
^
uclcmd_common.c:139:15: warning: cast to 'const void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast]
parent_obj = __DECONST(ucl_object_t *,
^
/usr/include/sys/cdefs.h:650:50: note: expanded from macro '__DECONST'
#define __DECONST(type, var) ((type)(__uintptr_t)(const void *)(var))
^
3 warnings generated.
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_get.c -o uclcmd_get.o
uclcmd_get.c:180:17: warning: implicit declaration of function 'ucl_lookup_path_char' is invalid in C99
[-Wimplicit-function-declaration]
found_object = ucl_lookup_path_char(found_object, node_name, input_sepchar);
uclcmd_get.c:180:15: warning: incompatible integer to pointer conversion assigning to 'const ucl_object_t *'
(aka 'const struct ucl_object_s *') from 'int' [-Wint-conversion]
found_object = ucl_lookup_path_char(found_object, node_name, input_sepchar);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uclcmd_get.c:638:6: warning: incompatible integer to pointer conversion assigning to 'const ucl_object_t *'
(aka 'const struct ucl_object_s *') from 'int' [-Wint-conversion]
cur = ucl_lookup_path_char(obj, reqnode, input_sepchar);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_merge.c -o uclcmd_merge.o
uclcmd_merge.c:245:3: warning: implicit declaration of function 'ucl_array_index_of' is invalid in C99
[-Wimplicit-function-declaration]
ucl_array_index_of(dst_obj, sub_obj));
^
1 warning generated.
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_output.c -o uclcmd_output.o
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_parse.c -o uclcmd_parse.o
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_remove.c -o uclcmd_remove.o
uclcmd_remove.c:150:7: warning: implicit declaration of function 'ucl_array_index_of' is invalid in C99
[-Wimplicit-function-declaration]
ucl_array_index_of(obj_parent, obj_child), ucl_object_key(obj_parent));
^
1 warning generated.
cc -g -O0 -Wall -I/usr/include -I/usr/local/include -c uclcmd_set.c -o uclcmd_set.o
cc -L/usr/lib -L/usr/local/lib -lucl -o uclcmd uclcmd.o uclcmd_common.o uclcmd_get.o uclcmd_merge.o uclcmd_output.o uclcmd_
parse.o uclcmd_remove.o uclcmd_set.o
uclcmd_common.o: In function `get_object':
/usr/home/tparis/uclcmd/uclcmd_common.c:85: undefined reference to `ucl_lookup_path_char'
uclcmd_common.o: In function `get_parent':
/usr/home/tparis/uclcmd/uclcmd_common.c:139: undefined reference to `ucl_lookup_path_char'
uclcmd_get.o: In function `get_mode':
/usr/home/tparis/uclcmd/uclcmd_get.c:180: undefined reference to `ucl_lookup_path_char'
uclcmd_get.o: In function `get_cmd_none':
/usr/home/tparis/uclcmd/uclcmd_get.c:638: undefined reference to `ucl_lookup_path_char'
uclcmd_merge.o: In function `merge_mode':
/usr/home/tparis/uclcmd/uclcmd_merge.c:245: undefined reference to `ucl_array_index_of'
uclcmd_remove.o: In function `remove_main':
/usr/home/tparis/uclcmd/uclcmd_remove.c:150: undefined reference to `ucl_array_index_of'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /usr/home/tparis/uclcmd