How do I fix errors compiling asn_grammar.y/asn_grammar.cxx?
On some platforms, compiling the ASNParser results in errors like this: In file included from /pwlib/include/ptlib/contain.h:782, from /pwlib/include/ptlib.h:146, from asn_grammar.y:77: /pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()’: /pwlib/include/ptlib/contain.inl:428: warning: right-hand operand of comma has no effect asn_grammar: In function `int yyparse()’: asn_grammar:5045: error: expected primary-expression before “__attribute__” asn_grammar:5045: error: expected `;’ before “__attribute__” asn_grammar:5040: warning: label `yyerrlab1′ defined but not used These errors are probably due some flag differences in the bison pre-processor, but the solution is very simple. Simply upgrade your code to at least the last Janus release version (as of 1 Nov 2004, this was Janus patch 4) because that version (and all subsequent versions) no longer require the ASN parser to be compiled. See 4.21 for more information 4.27 – When I compile pwlib I get warnings