Problem z kompilacja demona - CentOS 7
Witam. Probuje skompilowac demona z wersji 1.11.13 w systemie CentOS Linux release 7.3.1611 (z CentOS 6.8 problemu nie ma). Przy make, dostaje nastepujacy blad dla 'parsera',
make[2]: Entering directory `/root/lms/daemon/modules/parser' make -C lib make[3]: Entering directory `/root/lms/daemon/modules/parser/lib' make[3]: Circular tscript_parser.h <- tscript_parser.h dependency dropped. bison -o tscript_parser.c -d tscript_parser.y -p tscript_yy -r lookahead tscript_parser.y: conflicts: 32 shift/reduce, 1 reduce/reduce gcc -c tscript_ast.c -O2 -fPIC gcc -c tscript_context.c -O2 -fPIC gcc -c tscript_compiler.c -O2 -fPIC tscript_compiler.c: In function ‘tscript_compile_stream’: tscript_compiler.c:43:2: warning: passing argument 1 of ‘tscript_yyparse’ from incompatible pointer type [enabled by default] return tscript_yyparse(&context->ast); ^ In file included from tscript_compiler.c:33:0: tscript_parser.h:121:5: note: expected ‘struct tscript_context *’ but argument is of type ‘struct tscript_ast_node **’ int tscript_yyparse (tscript_context* context); ^ tscript_compiler.c: In function ‘tscript_compile_string’: tscript_compiler.c:51:2: warning: passing argument 1 of ‘tscript_yyparse’ from incompatible pointer type [enabled by default] r = tscript_yyparse(&context->ast); ^ In file included from tscript_compiler.c:33:0: tscript_parser.h:121:5: note: expected ‘struct tscript_context *’ but argument is of type ‘struct tscript_ast_node **’ int tscript_yyparse (tscript_context* context); ^ gcc -c tscript_interpreter.c -O2 -fPIC gcc -c tscript_variables.c -O2 -fPIC gcc -c tscript_parser.c -O2 -fPIC tscript_parser.c:981:21: error: unknown type name ‘FILE’ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp) ^ make[3]: *** [tscript_parser.o] Error 1 make[3]: Leaving directory `/root/lms/daemon/modules/parser/lib' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/root/lms/daemon/modules/parser'
Pakiety bison/flex takze z develem poinstalowane. Czy ktos jest w stanie zasugerowac gdzie szukac?
Pozdrawiam.
uczestnicy (1)
-
Łukasz Matys