Hi Stefan, please read this https://redmine.kannel.org/issues/699 Bug #699: Compile fail in stable verion 1.4.4 - Kannel - Kannel: Open Source WAP and SMS gateway<https://redmine.kannel.org/issues/699> As Mihail Teoderscu said, the problem occurs because bison 3 no longer supports YYLEX_PARAM and YYPARSE_PARAM. Both were have been deprecated since version 1.875, which was released on January 1, 2003. redmine.kannel.org
and use this patch https://redmine.kannel.org/attachments/download/327/gateway-1.4.5.patch.gz Kabin ________________________________ From: users <[email protected]> on behalf of Stefan Midjich <[email protected]> Sent: Thursday, December 13, 2018 7:24 PM To: [email protected] Subject: Kannel 1.4.5 compile issues On CentOS 7.6 it is impossible to compile Kannel right now. According to google results this has been going on for some time with no real solution available online. Two solutions have been offered; 1. Install Bison 2. Install Bison < 3 I've tried both, installing Bison 3.0.4 which is the latest version in CentOS 7 repos. And removing that, replacing it with a custom compile of Bison 2.7.1 from the GNU FTP servers. I get the same error when running make using both configurations; gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/pgsql-11/include -o wmlscript/wsgram.o -c wmlscript/wsgram.c y.tab.c:350: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:1510: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 make: *** [wmlscript/wsgram.o] Error 1 I ran configure with ./configure --prefix=/var/opt/kannel --with-pgsql --with-pgsql-dir=/usr/pgsql-11 I've installed bison 2.7 into /usr/local but I've also tried running LDFLAGS=/usr/local/lib make. -- Vänliga Hälsningar / Sincerely Stefan M
