src/grammars/belle_sip_messageParser.c:197441:3: error

Geert Stappers stappers at stappers.nl
Sun May 7 15:07:04 UTC 2017


On Sun, May 07, 2017 at 04:50:22PM +0200, Johannes Schauer wrote:
> Hi,
> 
> Quoting Geert Stappers (2017-05-07 16:45:28)
> > Only minor progress to report.  The src/grammars/belle_sip_messageParser.c is generated.
> > 
> > Snippet form src/grammars/Makefile.am:
> > 
> > $(builddir)/belle_sip_messageParser.c $(builddir)/belle_sip_messageParser.h \
> >                                 $(builddir)/belle_sip_messageLexer.c $(builddir)/belle_sip_messageLexer.h  : belle_sip_message.g
> >         $(ANTLR)  -make -Xmultithreaded -Xconversiontimeout 10000 -fo  $(builddir) $(srcdir)/belle_sip_message.g
> > 
> > 
> > Find attempt on ANTLR yields the same Makefile.am
> > 
> > <screenshot>
> > stappers at paddy:~/src/belle-sip/src
> > $ egrep -r -e '\<ANTLR\>' * 
> > grammars/Makefile.am:   $(ANTLR)  -make -Xmultithreaded -Xconversiontimeout 10000 -fo  $(builddir) $(srcdir)/belle_sip_message.g
> > grammars/Makefile.am:   $(ANTLR)  -make -Xmultithreaded -Xconversiontimeout 10000 -fo $(builddir)  $<
> > stappers at paddy:~/src/belle-sip/src
> > $ 
> > </screenshot>
> > 
> > 
> > What is  the executable for ANTLR  ?

antlr3 from the package with same name.

> I don't have time right now to debug this myself (and I cannot reproduce it)
> but remember that all the Belledonne Communications packages use cmake and not
> autotools anymore. So for generation of src/grammars/belle_sip_messageParser.c
> you want to instead look at src/CMakeLists.txt.
> 
> Thanks!

Thank you.

I shall peek at src/CMakeLists.txt


Result of `antlr3 -make -Xmultithreaded -Xconversiontimeout 10000 -fo . belle_sip_message.g`
is a belle_sip_messageParser.c of 197440 lines. And the error was on line 197441.
 "error: expected identifier or '(' before   '/' token                                                                                                                        */ "


<screenshot>
stappers at paddy:~/src/belle-sip/src/grammars
$ wc -l belle_sip_messageParser.c
197440 belle_sip_messageParser.c
stappers at paddy:~/src/belle-sip/src/grammars
$ tail -n 12 belle_sip_messageParser.c 
/* End of syntactic predicates
 * ==============================================
 */






/* End of code
 * =============================================================================
 */
stappers at paddy:~/src/belle-sip/src/grammars
$ 
</screenshot>


Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the Pkg-voip-maintainers mailing list