[wplug] Make error

Arnaud Loos aloos at InnovationsTech.com
Thu Jul 3 10:51:49 EDT 2003


I'm trying to install pwlib, a component needed for the h323 gatekeeper
VoIP software. I run the configure and all is well. When I run make, it
runs for a few min and I get the following error.

make[3]: Entering directory `/root/pwlib/src/ptlib/unix'
make[3]: Nothing to be done for `debug'.
make[3]: Leaving directory `/root/pwlib/src/ptlib/unix'
make[3]: Entering directory `/root/pwlib/tools/asnparser'
g++ -DP_LINUX=2.4.20-8 -D_REENTRANT -Wall -DP_USE_PRAGMA -g -D_DEBUG
-DPMEMORY_CHECK=1 -DPHAS_TEMPLATES -I/root/pwlib/include/ptlib/unix
-I/root/pwlib/include   -c asn_grammar.cxx -o
obj_linux_x86_d/asn_grammar.o
asn_grammar: In function `int yyparse()':
asn_grammar:5049: error: syntax error before `goto'
asn_grammar:5040: warning: label `yyerrlab1' defined but not used
make[3]: *** [obj_linux_x86_d/asn_grammar.o] Error 1
make[3]: Leaving directory `/root/pwlib/tools/asnparser'
make[2]: *** [debug] Error 2
make[2]: Leaving directory `/root/pwlib'
make[1]: *** [libs] Error 2
make[1]: Leaving directory `/root/pwlib'
make: *** [debuglibs] Error 2

I opened the file asn_grammar.cxx and parsed down to line 5040.

/*----------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action.  |
`----------------------------------------------------*/
yyerrlab1:

  /* Suppress GCC warning that yyerrlab1 is unused when no action
     invokes YYERROR.  */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 +
__GNUC_MINOR__)
  __attribute__ ((__unused__))
#endif


  goto yyerrlab2;      <--------- line 5040


/*---------------------------------------------------------------.
| yyerrlab2 -- pop states until the error token can be shifted.  |
`---------------------------------------------------------------*/
yyerrlab2:
  yyerrstatus = 3;	/* Each real token shifted decrements this.  */

  for (;;)
    {
      yyn = yypact[yystate];
      if (yyn != YYPACT_NINF)
	{
	  yyn += YYTERROR;
	  if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
	    {
	      yyn = yytable[yyn];
	      if (0 < yyn)
		break;
	    }
	}


I have no idea how to fix this. Any ideas?

Thanks.

Arnaud-





More information about the wplug mailing list