Error building libhandler on ubuntu
ankushdesai opened this issue · 1 comments
I am getting the following error when I run the make command:
use 'make help' for help
build variant: debug, configuration: clang-amd64-pc-linux-gnu
clang -Wall -g -Iinc -Iout/clang-amd64-pc-linux-gnu -std=c99 -o out/clang-amd64-pc-linux-gnu/debug/libhandler.o -c src/libhandler.c
In file included from src/libhandler.c:45:
inc/libhandler.h:390:1: error: unknown type name 'ptrdiff_t'
ptrdiff_t _lh_linear_handler_init(const lh_handlerdef* hdef, lh_value local, bool* init);
^
inc/libhandler.h:391:36: error: unknown type name 'ptrdiff_t'void _lh_linear_handler_done(ptrdiff_t id, bool init, bool do_release);
^src/libhandler.c:308:2: warning: 'gets' is deprecated [-Wdeprecated-declarations]
gets(buf);
^/usr/include/stdio.h:638:14: note: 'gets' has been explicitly marked deprecated here
extern char *gets (char *__s) __wur attribute_deprecated;
^
1 warning and 2 errors generated.Makefile:153: recipe for target 'out/clang-amd64-pc-linux-gnu/debug/libhandler.o' failed
make: *** [out/clang-amd64-pc-linux-gnu/debug/libhandler.o] Error 1
prtdiff_t is not found.
The issue was in a older version of libhandler.
Closing the issue.