Package Details: dpic-git r48.1e982f5-1

Git Clone URL: https://aur.archlinux.org/dpic-git.git (read-only, click to copy)
Package Base: dpic-git
Description: An implementation of the pic "little language," with support for LaTeX, PDF, SVG, Postscript, and xfig 3.2 output.
Upstream URL: https://ece.uwaterloo.ca/~aplevich/dpic/
Licenses: custom: BSD
Conflicts: dpic
Submitter: aksr
Maintainer: aksr
Last Packager: aksr
Votes: 1
Popularity: 0.003025
First Submitted: 2018-05-15 10:20 (UTC)
Last Updated: 2023-03-24 20:06 (UTC)

Dependencies (1)

Required by (1)

Sources (1)

Latest Comments

dreieck commented on 2023-03-24 19:52 (UTC)

It fails compiling for me with dpic.tab.c:5129:84: error: macro "YY_CAST" passed 4 arguments, but takes just 2 and other errors:

[...]
gcc   -g0 -march=x86-64 -mtune=native -O3 -flto -ffat-lto-objects -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fomit-frame-pointer -fPIC     -c -o parser.o dpic.tab.c
dpic.tab.c: In function ‘yyparse’:
dpic.tab.c:5129:84: error: macro "YY_CAST" passed 4 arguments, but takes just 2
 5129 |                              yyvsp[-2].xval,yyvsp[-1].lexval-Xcompare,yyvsp[0].xval); }
      |                                                                                    ^
dpic.tab.c:233: note: macro "YY_CAST" defined here
  233 | #   define YY_CAST(Type, Val) ((Type) (Val))
      | 
dpic.tab.c:5128:21: error: ‘YY_CAST’ undeclared (first use in this function)
 5128 |             yymsg = YY_CAST (char *,
      |                     ^~~~~~~
dpic.tab.c:5128:21: note: each undeclared identifier is reported only once for each function it appears in
dpic.tab.c:5130:2: error: #endif without #if
 5130 | #endif
      |  ^~~~~
dpic.tab.c:5064:5: error: break statement not within loop or switch
 5064 |                 { yyval.xval = yyvsp[-1].xval; }
      |     ^    
dpic.tab.c:5066:3: error: case label not within a switch statement
 5066 |     break;
      |   ^ ~~
dpic.tab.c:5087:5: error: break statement not within loop or switch
 5087 |   yylen = 0;
      |     ^~~~~
dpic.tab.c:5089:3: error: case label not within a switch statement
 5089 |   *++yyvsp = yyval;
      |   ^~~~
dpic.tab.c:5097:5: error: break statement not within loop or switch
 5097 |     yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
      |     ^~~~~
dpic.tab.c:5099:3: error: case label not within a switch statement
 5099 |                : yydefgoto[yylhs]);
      |   ^   
dpic.tab.c:5109:5: error: break statement not within loop or switch
 5109 |   /* Make sure we have latest lookahead translation.  See comments at
      |     ^~~~~
dpic.tab.c:5111:3: error: case label not within a switch statement
 5111 |   yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
      |   ^~~~
dpic.tab.c:5115:5: error: break statement not within loop or switch
 5115 |       ++yynerrs;
      |     ^ ~~~
dpic.tab.c:5117:3: error: case label not within a switch statement
 5117 |         yypcontext_t yyctx
      |   ^   
dpic.tab.c:5121:5: error: break statement not within loop or switch
 5121 |         yysyntax_error_status = yysyntax_error (&yymsg_alloc, &yymsg, &yyctx);
      |     ^   ~
dpic.tab.c:5123:3: error: case label not within a switch statement
 5123 |           yymsgp = yymsg;
      |   ^   
dpic.tab.c:5186:19: error: break statement not within loop or switch
 5186 |                   clearchbuf(yyvsp[-1].chbufx, yyvsp[-1].toklen);
      |                   ^~~~~
dpic.tab.c:5188:3: error: case label not within a switch statement
 5188 | #line 5109 "dpic.tab.c"
      |   ^~~~
dpic.tab.c:5192:5: error: break statement not within loop or switch
 5192 | #line 2911 "dpic.y"
      |     ^~~~~
dpic.tab.c:5194:3: error: case label not within a switch statement
 5194 | #line 5115 "dpic.tab.c"
      |   ^~~~
dpic.tab.c:5200:5: error: break statement not within loop or switch
 5200 | #line 5121 "dpic.tab.c"
      |     ^~~~~
dpic.tab.c:5202:3: error: case label not within a switch statement
 5202 | 
      |   ^   
dpic.tab.c:5253:24: error: break statement not within loop or switch
 5253 |                               s = fabs(primp->endpos_.ypos - wprim->aat.ypos);
      |                 ^           
dpic.tab.c:5255:8: error: case label not within a switch statement
 5255 |                               else if (s == 0.0) { yyval.xval = r; }
      |   ^                      
dpic.tab.c:5276:5: error: break statement not within loop or switch
 5276 |                 { srandom(Rnd(yyvsp[-1].xval));
      |     ^    
dpic.tab.c:5278:17: error: case label not within a switch statement
 5278 |                   }
      |                 ^ ~ 
dpic.tab.c:5282:5: error: break statement not within loop or switch
 5282 |   case 180: /* primary: "function (1 arg)" "(" expression ")"  */
      |     ^~~~~
dpic.tab.c:5284:3: error: case label not within a switch statement
 5284 |                 { switch (yyval.lexval) {
      |   ^   
dpic.tab.c:5288:19: error: break statement not within loop or switch
 5288 |                       t = yyvsp[-1].xval;
      |                   ^   ~
dpic.tab.c:5293:21: error: ‘default’ label not within a switch statement
 5293 |                       t = yyvsp[-1].xval;
      |                     ^ ~~~~~
dpic.tab.c:5293:30: error: break statement not within loop or switch
 5293 |                       t = yyvsp[-1].xval;
      |                              ^~~~~
dpic.tab.c:2019:7: error: label ‘yyerrlab1’ used but not defined
 2019 |       goto yyerrlab1;
      |       ^~~~
dpic.tab.c:1979:5: error: label ‘yyacceptlab’ used but not defined
 1979 |     YYACCEPT;
      |     ^~~~~~~~
dpic.tab.c:1973:9: error: label ‘yyabortlab’ used but not defined
 1973 |         YYABORT;
      |         ^~~~~~~
dpic.tab.c:1955:11: error: label ‘yyexhaustedlab’ used but not defined
 1955 |           YYNOMEM;
      |           ^~~~~~~
dpic.tab.c: At top level:
dpic.tab.c:1881:32: error: expected ‘)’ before ‘-=’ token
 1881 | #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
      |                                ^~
dpic.tab.c:5308:17: note: in expansion of macro ‘YYPOPSTACK’
 5308 |                       break;
      |                 ^     ~~~~
dpic.tab.c:5309:17: warning: data definition has no type or storage class
 5309 |                     case Xloge:
      |                 ^   ~
dpic.tab.c:5309:17: warning: type defaults to ‘int’ in declaration of ‘yylen’ [-Wimplicit-int]
dpic.tab.c:5311:18: error: expected identifier or ‘(’ before ‘++’ token
 5311 |                       else { yyval.xval = log(yyvsp[-1].xval); }
      |                  ^ 
dpic.tab.c:5316:17: error: expected identifier or ‘(’ before ‘{’ token
 5316 |                       break;
      |                 ^
dpic.tab.c:5324:17: error: expected identifier or ‘(’ before ‘goto’
 5324 |                       t = cos(yyvsp[-1].xval);
      |                 ^   
dpic.tab.c:5330:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5330 |                     }
      |                       ^
dpic.tab.c:5335:3: error: expected identifier or ‘(’ before ‘if’
 5335 |   case 181: /* primary: "function (2 args)" "(" expression "," expression ")"  */
      |   ^~
dpic.tab.c:5371:3: error: expected identifier or ‘(’ before ‘if’
 5371 | #line 5292 "dpic.tab.c"
      |   ^~
dpic.tab.c:5392:3: error: expected identifier or ‘(’ before ‘goto’
 5392 | 
      |   ^   
dpic.tab.c:5398:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5398 |     const int yyi = yypgoto[yylhs] + *yyssp;
      |           ^
dpic.tab.c:5403:3: error: expected identifier or ‘(’ before ‘++’ token
 5403 | 
      |   ^ 
dpic.tab.c:1881:32: error: expected ‘)’ before ‘-=’ token
 1881 | #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
      |                                ^~
dpic.tab.c:5407:3: note: in expansion of macro ‘YYPOPSTACK’
 5407 | /*--------------------------------------.
      |   ^~~~~~~~~~
dpic.tab.c:5408:3: warning: data definition has no type or storage class
 5408 | | yyerrlab -- here on detecting error.  |
      |   ^~~~~
dpic.tab.c:5408:3: warning: type defaults to ‘int’ in declaration of ‘yylen’ [-Wimplicit-int]
dpic.tab.c:5408:3: error: redefinition of ‘yylen’
dpic.tab.c:5309:17: note: previous definition of ‘yylen’ with type ‘int’
 5309 |                     case Xloge:
      |                 ^   ~
dpic.tab.c:5410:3: warning: data definition has no type or storage class
 5410 | yyerrlab:
      |   ^~~~~~~
dpic.tab.c:5410:3: warning: type defaults to ‘int’ in declaration of ‘yystate’ [-Wimplicit-int]
dpic.tab.c:5410:14: error: ‘yyssp’ undeclared here (not in a function)
 5410 | yyerrlab:
      |              ^    
dpic.tab.c:5411:3: error: expected identifier or ‘(’ before ‘goto’
 5411 |   /* Make sure we have latest lookahead translation.  See comments at
      |   ^~~~
dpic.tab.c:5417:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5417 |       ++yynerrs;
      |          ^
dpic.tab.c:5421:3: error: expected identifier or ‘(’ before ‘for’
 5421 |         char const *yymsgp = YY_("syntax error");
      |   ^  
dpic.tab.c:5421:10: error: expected identifier or ‘(’ before ‘)’ token
 5421 |         char const *yymsgp = YY_("syntax error");
      |          ^
dpic.tab.c:5448:4: error: expected identifier or ‘(’ before ‘++’ token
 5448 |       }
      |    ^ 
dpic.tab.c:5455:3: warning: data definition has no type or storage class
 5455 | 
      |   ^      
dpic.tab.c:5455:3: warning: type defaults to ‘int’ in declaration of ‘yystate’ [-Wimplicit-int]
dpic.tab.c:5455:3: error: redefinition of ‘yystate’
dpic.tab.c:5410:3: note: previous definition of ‘yystate’ with type ‘int’
 5410 | yyerrlab:
      |   ^~~~~~~
dpic.tab.c:5455:13: error: ‘yyn’ undeclared here (not in a function); did you mean ‘yn’?
 5455 | 
      |             ^  
      |             yn
dpic.tab.c:5456:3: error: expected identifier or ‘(’ before ‘goto’
 5456 |       if (yychar <= END)
      |   ^   
dpic.tab.c:5462:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5462 |       else
      |            ^
dpic.tab.c:5464:3: error: expected identifier or ‘(’ before ‘goto’
 5464 |           yydestruct ("Error: discarding",
      |   ^   
dpic.tab.c:5470:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5470 |   /* Else will try to reuse lookahead token after shifting the error
      |           ^
dpic.tab.c:5472:3: error: expected identifier or ‘(’ before ‘goto’
 5472 |   goto yyerrlab1;
      |   ^~~~
dpic.tab.c:5478:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5478 | yyerrorlab:
      |               ^
dpic.tab.c:5480:3: warning: data definition has no type or storage class
 5480 |      label yyerrorlab therefore never appears in user code.  */
      |   ^  ~~~~~
dpic.tab.c:5480:3: warning: type defaults to ‘int’ in declaration of ‘yyresult’ [-Wimplicit-int]
dpic.tab.c:5481:3: error: expected identifier or ‘(’ before ‘goto’
 5481 |   if (0)
      |   ^~~~
dpic.tab.c:5487:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 5487 |   YYPOPSTACK (yylen);
      |            ^
dpic.tab.c:1881:32: error: expected ‘)’ before ‘-=’ token
 1881 | #define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))
      |                                ^~
dpic.tab.c:5498:3: note: in expansion of macro ‘YYPOPSTACK’
 5498 |   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
      |   ^~~~~~~~~~
dpic.tab.c:5500:3: error: expected identifier or ‘(’ before ‘while’
 5500 |   /* Pop stack until we find a state that shifts the error token.  */
      |   ^~~~~
dpic.tab.c:5507:3: error: expected identifier or ‘(’ before ‘if’
 5507 |           if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
      |   ^ 
dpic.tab.c:5510:3: error: expected identifier or ‘(’ before ‘if’
 5510 |               if (0 < yyn)
      |   ^ 
dpic.tab.c:5512:3: error: expected identifier or ‘(’ before ‘return’
 5512 |             }
      |   ^     
dpic.tab.c:5513:1: error: expected identifier or ‘(’ before ‘}’ token
 5513 |         }
      | ^
make: *** [Makefile:73: parser.o] Error 1
make: *** Waiting for unfinished jobs...

Regards!

puffybsd commented on 2021-09-08 02:21 (UTC)

Looks like the package build is failing because there's no configure file. Builds OK with the ./configure line commented out.

aksr commented on 2018-07-07 04:41 (UTC)

gondsman: Why 'provide'? 'Depends' array is fixed.

gondsman commented on 2018-06-29 14:44 (UTC)

This package should 'provide' dpic as well. Also, I think the quotes in "depends=('')" makes some aur helpers freak out.