Make ERROR in Revision 5141 & with Stable Release 1.4.4

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Make ERROR in Revision 5141 & with Stable Release 1.4.4

Hamid R. Hashmi
Just Check out from SVN (Revision 5141) and facing ERROR while compiling. BUT If I compile Revision 5058 i did not got any error. I have also tried Stable Release 1.4.4, its also giving the same ERROR.

hrhashmi@OfficeLaptop:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty

hrhashmi@OfficeLaptop:~$ uname -a
Linux OfficeLaptop 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

hrhashmi@OfficeLaptop:~$ bison -V
bison (GNU Bison) 3.0.2
Written by Robert Corbett and Richard Stallman.

ERROR:

gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGEconfigure.txtmake.txt_FILES= -I/usr/include/libxml2 -o wmlscript/wsgram.o -c wmlscript/wsgram.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
make: *** [wmlscript/wsgram.o] Error 1

Regards
Hamid R. Hashmi
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

Ivan Walulya
Just incase anyone else runs into this error.

The error occurs if you compile with Bison version > 3.0

install bison version 2.7 as in http://geeksww.com/tutorials/miscellaneous/bison_gnu_parser_generator/installation/installing_bison_gnu_parser_generator_ubuntu_linux.php

Remember to redo the unzipping of the files and configure again.

then it will compile successfully.
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

Gutzeit
Thank you a lot, it works!
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

abdoucamara
Hello


I am getting similar error on centos tried installed bison but still


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/include/openssl -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
[root@syslog3 gateway-1.4.4]#
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

Dziugas
In reply to this post by Hamid R. Hashmi
I'm also receiving below errors, any update on this?


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/include/openssl -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
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

danny martinez
In reply to this post by Ivan Walulya
Makefile:225: recipe for target 'wmlscript/wsgram.o' failed
make: *** [wmlscript/wsgram.o] Error 1
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

GORKI
Hello ..Did you fix this error? Can you help me? I am using the stable 1.4.5
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

{x3d}
This post was updated on .
Download and install bison 2.7 (current version bison 3.0 has a conflict)
wget https://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz
tar zxvf bison-2.7.tar.gz && cd bison-2.7 && ./configure && make && make install && cd src
cp bison /usr/local/bin/bison && cp bison /usr/bin/bison
cd .. && cd .. && rm -rf bison-2.7.tar.gz bison-2.7
rm -rf gateway-1.4.5 gateway-1.4.5.tar.gz
wget https://www.kannel.org/download/1.4.5/gateway-1.4.5.tar.gz --no-check-certificate
tar zxvf gateway-1.4.5.tar.gz
cd gateway-1.4.5
sh bootstrap.sh
./configure
make && make install

Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

umair
Hey I tried the above stull the error remains. Any other way to resolve it???
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

umair baig
In reply to this post by {x3d}
I tried the commands that you have posted by making a new directory but now I get this error.
gcc: error @LIBICNOV@: No such file or directory
make: *** [wmlscript/wmlsc] Error 1
Reply | Threaded
Open this post in threaded view
|

Re: Make ERROR in Revision 5141 & with Stable Release 1.4.4

Robi
In reply to this post by {x3d}

You saved me!