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

Geert Stappers stappers at stappers.nl
Sun May 7 14:45:28 UTC 2017


On Sun, May 07, 2017 at 11:44:16AM +0200, Geert Stappers wrote:
> Hello,
> 
> 
> 
> What I did:
> * sbuild  bctoolbox
> * fresh gbp clone of belle-sip
> * gbp buildpackage --git-pristine-tar --git-builder=sbuild --extra-package=../libbctoolbox-dev_0.5.1-1_amd64.deb --extra-package=../libbctoolbox1_0.5.1-1_amd64.deb -d unstable
> 
> 
> What I got:
> 
> [ 93%] Building C object src/CMakeFiles/bellesip.dir/transports/tls_channel.c.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc  -DHAVE_CONFIG_H -Dbellesip_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/usr/share/bctoolbox/cmake/../../../include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -std=gnu99  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-missing-field-initializers -Wno-strict-prototypes -Wno-error=sign-compare -o CMakeFiles/bellesip.dir/transports/tls_channel.c.o   -c /<<PKGBUILDDIR>>/src/transports/tls_channel.c
> [ 94%] Building C object src/CMakeFiles/bellesip.dir/grammars/belle_sdpLexer.c.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc  -DHAVE_CONFIG_H -Dbellesip_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/usr/share/bctoolbox/cmake/../../../include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -std=gnu99  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-missing-field-initializers -Wno-strict-prototypes -Wno-error=sign-compare -o CMakeFiles/bellesip.dir/grammars/belle_sdpLexer.c.o   -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/grammars/belle_sdpLexer.c
> /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/grammars/belle_sip_messageParser.c:197441:3: error: expected identifier or '(' before '/' token
>   */
>    ^
> [ 95%] Building C object src/CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/cc  -DHAVE_CONFIG_H -Dbellesip_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src -I/usr/share/bctoolbox/cmake/../../../include  -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC   -std=gnu99  -Wall -Wuninitialized -Wno-error=deprecated-declarations -Wno-error=pragmas -Werror -Wextra -Wno-unused-parameter -Wno-error=unknown-pragmas -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wno-missing-field-initializers -Wno-strict-prototypes -Wno-error=sign-compare -o CMakeFiles/bellesip.dir/grammars/belle_sdpParser.c.o   -c /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/grammars/belle_sdpParser.c
> [ 96%] Building C object src/CMakeFiles/bellesip.dir/grammars/belle_sip_messageLexer.c.o
> 
> 
> How to get beyond that error?
> Is it even reproduceable by others??
> 

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  ?




Groeten
Geert Stappers
-- 
Leven en laten leven



More information about the Pkg-voip-maintainers mailing list