linphone-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] Belle-sip compilation fails on Raspberry Pi - ANTLR3_EN


From: Michael Thomson
Subject: [Linphone-users] Belle-sip compilation fails on Raspberry Pi - ANTLR3_ENC_8BIT undefined
Date: Sat, 3 Mar 2018 21:26:56 +0000

Hi folks

I’m following the instructions here:
https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Linphone%20and%20Raspberry%20Pi/#H

I’ve got to the stage of compiling belle-sip and it’s failing in 
belle_sip_uri_impl.c

I’ve never encountered ANTLR3 before, and so I’m clueless on how to ensure the 
relevant headers are included, but they *do* exist in the file tree:

$ find . -name antlr3defs.h
./src/antlr3c/include/antlr3defs.h

$ grep ANTLR3_ENC_8BIT ./src/antlr3c/include/antlr3defs.h
#define ANTLR3_ENC_8BIT     4

…so this seems to be a missing “include” somewhere? Or am I way, way off the 
mark?
Cheers
Mike


N.B. Output below is taken after running the initial "./autogen.sh && 
./configure && make”, to keep it brief

$ pwd

/home/pi/linphone/belle-sip

$ ls

aclocal.m4      belle-sip.pc       build           compile         config.h.in  
  configure     include     m4           missing        src
AUTHORS         belle-sip.pc.in    ChangeLog       config.guess    config.log   
  configure.ac  install-sh  Makefile     NEWS           stamp-h1
autogen.sh      belle-sip.spec     cmake           config.h        
config.status  COPYING       libtool     Makefile.am  README.centos  tester
autom4te.cache  belle-sip.spec.in  CMakeLists.txt  config.h.cmake  config.sub   
  depcomp       ltmain.sh   Makefile.in  README.md      tools

$ make

make  all-recursive
make[1]: Entering directory '/home/pi/linphone/belle-sip'
Making all in include
make[2]: Entering directory '/home/pi/linphone/belle-sip/include'
Making all in belle-sip
make[3]: Entering directory '/home/pi/linphone/belle-sip/include/belle-sip'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/pi/linphone/belle-sip/include/belle-sip'
make[3]: Entering directory '/home/pi/linphone/belle-sip/include'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/pi/linphone/belle-sip/include'
make[2]: Leaving directory '/home/pi/linphone/belle-sip/include'
Making all in src
make[2]: Entering directory '/home/pi/linphone/belle-sip/src'
Making all in grammars
make[3]: Entering directory '/home/pi/linphone/belle-sip/src/grammars'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/pi/linphone/belle-sip/src/grammars'
make[3]: Entering directory '/home/pi/linphone/belle-sip/src'
  CC       libbellesip_la-belle_sip_uri_impl.lo


In file included from belle_sip_uri_impl.c:24:0:
grammars/belle_sip_messageParser.h:4922:5: warning: function declaration isn’t 
a prototype [-Wstrict-prototypes]
     const char * (*getGrammarFileName)();
     ^~~~~


In file included from belle_sip_uri_impl.c:25:0:
grammars/belle_sip_messageLexer.h:373:5: warning: function declaration isn’t a 
prototype [-Wstrict-prototypes]
     const char * (*getGrammarFileName)();
     ^~~~~


In file included from belle_sip_uri_impl.c:26:0:
belle_sip_uri_impl.c: In function ‘belle_sip_uri_parse’:
belle_sip_internal.h:418:1: error: implicit declaration of function 
‘antlr3StringStreamNew’ [-Werror=implicit-function-declaration]
 
antlr3StringStreamNew((pANTLR3_UINT8)value,ANTLR3_ENC_8BIT,(ANTLR3_UINT32)length,(pANTLR3_UINT8)#object_type)
 ^


belle_sip_internal.h:427:11: note: in expansion of macro ‘ANTLR_STREAM_NEW’
  input  = ANTLR_STREAM_NEW(object_type,value,strlen(value));\
           ^~~~~~~~~~~~~~~~
belle_sip_internal.h:439:38: note: in expansion of macro ‘BELLE_PARSE’
 #define BELLE_SIP_PARSE(object_type) 
BELLE_PARSE(belle_sip_messageParser,belle_sip_,object_type)
                                      ^~~~~~~~~~~
belle_sip_uri_impl.c:160:1: note: in expansion of macro ‘BELLE_SIP_PARSE’
 BELLE_SIP_PARSE(uri);
 ^~~~~~~~~~~~~~~


belle_sip_internal.h:418:44: error: ‘ANTLR3_ENC_8BIT’ undeclared (first use in 
this function)
 
antlr3StringStreamNew((pANTLR3_UINT8)value,ANTLR3_ENC_8BIT,(ANTLR3_UINT32)length,(pANTLR3_UINT8)#object_type)
                                            ^


belle_sip_internal.h:427:11: note: in expansion of macro ‘ANTLR_STREAM_NEW’
  input  = ANTLR_STREAM_NEW(object_type,value,strlen(value));\
           ^~~~~~~~~~~~~~~~
belle_sip_internal.h:439:38: note: in expansion of macro ‘BELLE_PARSE’
 #define BELLE_SIP_PARSE(object_type) 
BELLE_PARSE(belle_sip_messageParser,belle_sip_,object_type)
                                      ^~~~~~~~~~~
belle_sip_uri_impl.c:160:1: note: in expansion of macro ‘BELLE_SIP_PARSE’
 BELLE_SIP_PARSE(uri);
 ^~~~~~~~~~~~~~~
belle_sip_internal.h:418:44: note: each undeclared identifier is reported only 
once for each function it appears in
 
antlr3StringStreamNew((pANTLR3_UINT8)value,ANTLR3_ENC_8BIT,(ANTLR3_UINT32)length,(pANTLR3_UINT8)#object_type)
                                            ^
belle_sip_internal.h:427:11: note: in expansion of macro ‘ANTLR_STREAM_NEW’
  input  = ANTLR_STREAM_NEW(object_type,value,strlen(value));\
           ^~~~~~~~~~~~~~~~
belle_sip_internal.h:439:38: note: in expansion of macro ‘BELLE_PARSE’
 #define BELLE_SIP_PARSE(object_type) 
BELLE_PARSE(belle_sip_messageParser,belle_sip_,object_type)
                                      ^~~~~~~~~~~
belle_sip_uri_impl.c:160:1: note: in expansion of macro ‘BELLE_SIP_PARSE’
 BELLE_SIP_PARSE(uri);
 ^~~~~~~~~~~~~~~
belle_sip_uri_impl.c: In function ‘belle_sip_fast_uri_parse’:
belle_sip_internal.h:418:44: error: ‘ANTLR3_ENC_8BIT’ undeclared (first use in 
this function)
 
antlr3StringStreamNew((pANTLR3_UINT8)value,ANTLR3_ENC_8BIT,(ANTLR3_UINT32)length,(pANTLR3_UINT8)#object_type)
                                            ^
belle_sip_internal.h:427:11: note: in expansion of macro ‘ANTLR_STREAM_NEW’
  input  = ANTLR_STREAM_NEW(object_type,value,strlen(value));\
           ^~~~~~~~~~~~~~~~
belle_sip_internal.h:439:38: note: in expansion of macro ‘BELLE_PARSE’
 #define BELLE_SIP_PARSE(object_type) 
BELLE_PARSE(belle_sip_messageParser,belle_sip_,object_type)
                                      ^~~~~~~~~~~
belle_sip_uri_impl.c:509:1: note: in expansion of macro ‘BELLE_SIP_PARSE’
 BELLE_SIP_PARSE(fast_uri);
 ^~~~~~~~~~~~~~~


cc1: all warnings being treated as errors
Makefile:714: recipe for target 'libbellesip_la-belle_sip_uri_impl.lo' failed


make[3]: *** [libbellesip_la-belle_sip_uri_impl.lo] Error 1
make[3]: Leaving directory '/home/pi/linphone/belle-sip/src'
Makefile:1055: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/pi/linphone/belle-sip/src'
Makefile:510: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/linphone/belle-sip'
Makefile:417: recipe for target 'all' failed
make: *** [all] Error 2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]