Am 08.08.2014 11:30, schrieb Hanh Le Bich:
Hello,I have got error when do "make", please help. app@application:/usr/src/gateway-1.4.4$ sudo make -j 24 ... gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/lib/include -I/usr/include/mysql -o gw/bearerbox.o -c gw/bearerbox.c gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/lib/include -I/usr/include/mysql -o gw/smsbox.o -c gw/smsbox.c y.tab.c:348:5: error: conflicting types for ‘ws_yy_parse’ In file included from wmlscript/wsgram.y:15:0: ./wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was here int ws_yy_parse(void *context); ^ wmlscript/wsgram.c:63:25: error: conflicting types for ‘ws_yy_parse’ #define yyparse ws_yy_parse ^ y.tab.c:1508:1: note: in expansion of macro ‘yyparse’ In file included from wmlscript/wsgram.y:15:0: ./wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was here int ws_yy_parse(void *context); ^ wmlscript/wsgram.y: In function ‘ws_yy_parse’: wmlscript/wsgram.y:122:23: error: ‘pctx’ undeclared (first use in this function) { ws_error_syntax(pctx, @1.first_line); } ^ wmlscript/wsgram.y:122:23: note: each undeclared identifier is reported only once for each function it appears in In file included from wmlscript/wslexer.c:72:0: y.tab.h:262:5: error: conflicting types for ‘ws_yy_parse’ In file included from wmlscript/wslexer.c:70:0: wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was here int ws_yy_parse(void *context); ^ In file included from wmlscript/wsstree.c:72:0: y.tab.h:262:5: error: conflicting types for ‘ws_yy_parse’ In file included from wmlscript/wsstree.c:71:0: wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was here int ws_yy_parse(void *context); ^ Makefile:231: recipe for target 'wmlscript/wsgram.o' failed make: *** [wmlscript/wsgram.o] Error 1 make: *** Waiting for unfinished jobs.... Makefile:231: recipe for target 'wmlscript/wslexer.o' failed make: *** [wmlscript/wslexer.o] Error 1 Makefile:231: recipe for target 'wmlscript/wsstree.o' failed make: *** [wmlscript/wsstree.o] Error 1 app@application:/usr/src/gateway-1.4.4$
most likely there is an issue with the yacc parser on your system. Do you have the 'bison' package installed?
The files that are referenced here are "generated" during the initial make run. Please try to re-create the files from the package itself and then re-compile.
If that does not help, please indicate the issue via our bug tracking system (see website) and report with architecture and Linux distro you are using.
Stipe -- ------------------------------------------------------------------- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany Kannel Foundation tolj.org system architecture http://www.kannel.org/ http://www.tolj.org/ mailto:stolj_{at}_kannel.org mailto:st_{at}_tolj.org -------------------------------------------------------------------
