=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/databases/sqlite", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for sqlite-2.8.17nb3 sed -e s/--VERS--/`cat ./VERSION`/ \ -e s/--ENCODING--/ISO8859/ \ ./src/sqlite.h.in >sqlite.h echo '#include ' >temp.c echo '#include ' >>temp.c echo 'int main(){printf(' >>temp.c echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c echo 'exit(0);}' >>temp.c gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DUINT32_TYPE=uint32_t -DUINT16_TYPE=uint16_t -DUINT8_TYPE=uint8_t -DINTPTR_TYPE=long -I/opt/pkg/include -I/opt/pkg/include/ncurses -o temp temp.c echo '/* Automatically generated file. Do not edit */' >opcodes.h grep '^case OP_' ./src/vdbe.c | \ sed -e 's/://' | \ awk '{printf "#define %-30s %3d\n", $2, ++cnt}' >>opcodes.h gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DUINT32_TYPE=uint32_t -DUINT16_TYPE=uint16_t -DUINT8_TYPE=uint8_t -DINTPTR_TYPE=long -I/opt/pkg/include -I/opt/pkg/include/ncurses -o lemon ./tool/lemon.c ./temp >config.h echo >>config.h ./tool/lemon.c:31:14: error: conflicting types for 'malloc'; have 'void *(void)' 31 | extern void *malloc(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from ./tool/lemon.c:13: /usr/include/iso/stdlib_iso.h:142:14: note: previous declaration of 'malloc' with type 'void *(long unsigned int)' 142 | extern void *malloc(size_t); | ^~~~~~ ./tool/lemon.c: In function 'Action_new': ./tool/lemon.c:336:33: error: too many arguments to function 'malloc'; expected 0, have 1 336 | freelist = (struct action *)malloc( sizeof(struct action)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'actioncmp': ./tool/lemon.c:350:12: warning: old-style function definition [-Wold-style-definition] 350 | static int actioncmp(ap1,ap2) | ^~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:358:5: note: in expansion of macro 'assert' 358 | assert( ap1->type==REDUCE || ap1->type==RD_RESOLVED || ap1->type==CONFLICT); | ^~~~~~ ./tool/lemon.c:38:6: note: declared here 38 | void myassert(); | ^~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:359:5: note: in expansion of macro 'assert' 359 | assert( ap2->type==REDUCE || ap2->type==RD_RESOLVED || ap2->type==CONFLICT); | ^~~~~~ ./tool/lemon.c:38:6: note: declared here 38 | void myassert(); | ^~~~~~~~ ./tool/lemon.c: In function 'Action_sort': ./tool/lemon.c:366:16: warning: old-style function definition [-Wold-style-definition] 366 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c:368:1: error: number of arguments doesn't match prototype 368 | { | ^ ./tool/lemon.c:35:16: error: prototype declaration 35 | struct action *Action_sort(); | ^~~~~~~~~~~ ./tool/lemon.c:369:25: error: too many arguments to function 'msort'; expected 0, have 3 369 | ap = (struct action *)msort((char *)ap,(char **)&ap->next,actioncmp); | ^~~~~ ~~~~~~~~~~ ./tool/lemon.c:30:7: note: declared here 30 | char *msort(); | ^~~~~ ./tool/lemon.c: In function 'Action_add': ./tool/lemon.c:373:6: warning: old-style function definition [-Wold-style-definition] 373 | void Action_add(app,type,sp,arg) | ^~~~~~~~~~ ./tool/lemon.c: In function 'acttab_alloc': ./tool/lemon.c:434:15: error: too many arguments to function 'malloc'; expected 0, have 1 434 | acttab *p = malloc( sizeof(*p) ); | ^~~~~~ ~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'acttab_insert': ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:480:3: note: in expansion of macro 'assert' 480 | assert( p->nLookahead>0 ); | ^~~~~~ ./tool/lemon.c:38:6: note: declared here 38 | void myassert(); | ^~~~~~~~ ./tool/lemon.c: In function 'myassert': ./tool/lemon.c:559:6: warning: old-style function definition [-Wold-style-definition] 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:562:1: error: number of arguments doesn't match prototype 562 | { | ^ ./tool/lemon.c:38:6: error: prototype declaration 38 | void myassert(); | ^~~~~~~~ ./tool/lemon.c: In function 'FindRulePrecedences': ./tool/lemon.c:581:6: warning: old-style function definition [-Wold-style-definition] 581 | void FindRulePrecedences(xp) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:583:1: error: number of arguments doesn't match prototype 583 | { | ^ ./tool/lemon.c:46:6: error: prototype declaration 46 | void FindRulePrecedences(); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function 'FindFirstSets': ./tool/lemon.c:604:6: warning: old-style function definition [-Wold-style-definition] 604 | void FindFirstSets(lemp) | ^~~~~~~~~~~~~ ./tool/lemon.c:606:1: error: number of arguments doesn't match prototype 606 | { | ^ ./tool/lemon.c:47:6: error: prototype declaration 47 | void FindFirstSets(); | ^~~~~~~~~~~~~ ./tool/lemon.c:642:23: error: too many arguments to function 'SetAdd'; expected 0, have 2 642 | progress += SetAdd(s1->firstset,s2->index); | ^~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:103:5: note: declared here 103 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:647:23: error: too many arguments to function 'SetUnion'; expected 0, have 2 647 | progress += SetUnion(s1->firstset,s2->firstset); | ^~~~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function 'FindStates': ./tool/lemon.c:661:6: warning: old-style function definition [-Wold-style-definition] 661 | void FindStates(lemp) | ^~~~~~~~~~ ./tool/lemon.c:663:1: error: number of arguments doesn't match prototype 663 | { | ^ ./tool/lemon.c:48:6: error: prototype declaration 48 | void FindStates(); | ^~~~~~~~~~ ./tool/lemon.c:671:10: error: too many arguments to function 'Symbol_find'; expected 0, have 1 671 | sp = Symbol_find(lemp->start); | ^~~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:303:16: note: declared here 303 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:705:14: error: too many arguments to function 'Configlist_addbasis'; expected 0, have 2 705 | newcfp = Configlist_addbasis(rp,0); | ^~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:56:16: note: declared here 56 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:706:5: error: too many arguments to function 'SetAdd'; expected 0, have 2 706 | SetAdd(newcfp->fws,0); | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:103:5: note: declared here 103 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:712:9: error: too many arguments to function 'getstate'; expected 0, have 1 712 | (void)getstate(lemp); | ^~~~~~~~ ~~~~ ./tool/lemon.c:660:23: note: declared here 660 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */ | ^~~~~~~~ ./tool/lemon.c: In function 'getstate': ./tool/lemon.c:720:23: warning: old-style function definition [-Wold-style-definition] 720 | PRIVATE struct state *getstate(lemp) | ^~~~~~~~ ./tool/lemon.c:722:1: error: number of arguments doesn't match prototype 722 | { | ^ ./tool/lemon.c:660:23: error: prototype declaration 660 | PRIVATE struct state *getstate(/* struct lemon * */); /* forward reference */ | ^~~~~~~~ ./tool/lemon.c:732:9: error: too many arguments to function 'State_find'; expected 0, have 1 732 | stp = State_find(bp); | ^~~~~~~~~~ ~~ ./tool/lemon.c:314:15: note: declared here 314 | struct state *State_find(/* struct config * */); | ^~~~~~~~~~ ./tool/lemon.c:739:7: error: too many arguments to function 'Plink_copy'; expected 0, have 2 739 | Plink_copy(&y->bplp,x->bplp); | ^~~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:88:6: note: declared here 88 | void Plink_copy(/* struct plink **, struct plink * */); | ^~~~~~~~~~ ./tool/lemon.c:740:7: error: too many arguments to function 'Plink_delete'; expected 0, have 1 740 | Plink_delete(x->fplp); | ^~~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:89:6: note: declared here 89 | void Plink_delete(/* struct plink * */); | ^~~~~~~~~~~~ ./tool/lemon.c:744:5: error: too many arguments to function 'Configlist_eat'; expected 0, have 1 744 | Configlist_eat(cfp); | ^~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:62:6: note: declared here 62 | void Configlist_eat(/* struct config * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:747:5: error: too many arguments to function 'Configlist_closure'; expected 0, have 1 747 | Configlist_closure(lemp); /* Compute the configuration closure */ | ^~~~~~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:57:6: note: declared here 57 | void Configlist_closure(/* void */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:756:5: error: too many arguments to function 'State_insert'; expected 0, have 2 756 | State_insert(stp,stp->bp); /* Add to the state table */ | ^~~~~~~~~~~~ ~~~ ./tool/lemon.c:313:5: note: declared here 313 | int State_insert(/* struct state *, struct config * */); | ^~~~~~~~~~~~ ./tool/lemon.c:757:5: error: too many arguments to function 'buildshifts'; expected 0, have 2 757 | buildshifts(lemp,stp); /* Recursively compute successor states */ | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:719:14: note: declared here 719 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */ | ^~~~~~~~~~~ ./tool/lemon.c: In function 'buildshifts': ./tool/lemon.c:765:14: warning: old-style function definition [-Wold-style-definition] 765 | PRIVATE void buildshifts(lemp,stp) | ^~~~~~~~~~~ ./tool/lemon.c:768:1: error: number of arguments doesn't match prototype 768 | { | ^ ./tool/lemon.c:719:14: error: prototype declaration 719 | PRIVATE void buildshifts(/* struct lemon *, struct state * */); /* Forwd ref */ | ^~~~~~~~~~~ ./tool/lemon.c:796:13: error: too many arguments to function 'Configlist_addbasis'; expected 0, have 2 796 | new = Configlist_addbasis(bcfp->rp,bcfp->dot+1); | ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:56:16: note: declared here 56 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:797:7: error: too many arguments to function 'Plink_add'; expected 0, have 2 797 | Plink_add(&new->bplp,bcfp); | ^~~~~~~~~ ~~~~~~~~~~ ./tool/lemon.c:87:6: note: declared here 87 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c:802:14: error: too many arguments to function 'getstate'; expected 0, have 1 802 | newstp = getstate(lemp); | ^~~~~~~~ ~~~~ ./tool/lemon.c:720:23: note: declared here 720 | PRIVATE struct state *getstate(lemp) | ^~~~~~~~ ./tool/lemon.c: In function 'FindLinks': ./tool/lemon.c:813:6: warning: old-style function definition [-Wold-style-definition] 813 | void FindLinks(lemp) | ^~~~~~~~~ ./tool/lemon.c:815:1: error: number of arguments doesn't match prototype 815 | { | ^ ./tool/lemon.c:49:6: error: prototype declaration 49 | void FindLinks(); | ^~~~~~~~~ rm -f temp.c temp ./libtool --mode=compile gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DUINT32_TYPE=uint32_t -DUINT16_TYPE=uint16_t -DUINT8_TYPE=uint8_t -DINTPTR_TYPE=long -I/opt/pkg/include -I/opt/pkg/include/ncurses -DOS_UNIX=1 -DOS_WIN=0 -DHAVE_USLEEP=1 -I. -I./src -c ./src/encode.c ./tool/lemon.c:838:9: error: too many arguments to function 'Plink_add'; expected 0, have 2 838 | Plink_add(&other->fplp,cfp); | ^~~~~~~~~ ~~~~~~~~~~~~ ./tool/lemon.c:87:6: note: declared here 87 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function 'FindFollowSets': ./tool/lemon.c:849:6: warning: old-style function definition [-Wold-style-definition] 849 | void FindFollowSets(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:851:1: error: number of arguments doesn't match prototype 851 | { | ^ ./tool/lemon.c:50:6: error: prototype declaration 50 | void FindFollowSets(); | ^~~~~~~~~~~~~~ ./tool/lemon.c:870:20: error: too many arguments to function 'SetUnion'; expected 0, have 2 870 | change = SetUnion(plp->cfp->fws,cfp->fws); | ^~~~~~~~ ~~~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function 'FindActions': ./tool/lemon.c:886:6: warning: old-style function definition [-Wold-style-definition] 886 | void FindActions(lemp) | ^~~~~~~~~~~ ./tool/lemon.c:888:1: error: number of arguments doesn't match prototype 888 | { | ^ ./tool/lemon.c:51:6: error: prototype declaration 51 | void FindActions(); | ^~~~~~~~~~~ ./tool/lemon.c:916:10: error: too many arguments to function 'Symbol_find'; expected 0, have 1 916 | sp = Symbol_find(lemp->start); | ^~~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:303:16: note: declared here 303 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:931:5: note: in expansion of macro 'assert' 931 | assert( stp->ap ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:932:15: error: too many arguments to function 'Action_sort'; expected 0, have 1 932 | stp->ap = Action_sort(stp->ap); | ^~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:366:16: note: declared here 366 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c:937:29: error: too many arguments to function 'resolve_conflict'; expected 0, have 3 937 | lemp->nconflict += resolve_conflict(ap,nap,lemp->errsym); | ^~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:882:12: note: declared here 882 | static int resolve_conflict(); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c: In function 'resolve_conflict': ./tool/lemon.c:970:12: warning: old-style function definition [-Wold-style-definition] 970 | static int resolve_conflict(apx,apy,errsym) | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:977:3: note: in expansion of macro 'assert' 977 | assert( apx->sp==apy->sp ); /* Otherwise there would be no conflict */ | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ libtool: compile: gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DUINT32_TYPE=uint32_t -DUINT16_TYPE=uint16_t -DUINT8_TYPE=uint8_t -DINTPTR_TYPE=long -I/tmp/work/databases/sqlite/work/.buildlink/include -I/tmp/work/databases/sqlite/work/.buildlink/include/ncurses -DOS_UNIX=1 -DOS_WIN=0 -DHAVE_USLEEP=1 -I. -I./src -c ./src/encode.c -fPIC -DPIC -o .libs/encode.o ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:994:7: note: in expansion of macro 'assert' 994 | assert( spx->prec==spy->prec && spx->assoc==NONE ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1011:5: note: in expansion of macro 'assert' 1011 | assert( | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c: In function 'newconfig': ./tool/lemon.c:1043:33: error: too many arguments to function 'malloc'; expected 0, have 1 1043 | freelist = (struct config *)malloc( sizeof(struct config)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'deleteconfig': ./tool/lemon.c:1057:14: warning: old-style function definition [-Wold-style-definition] 1057 | PRIVATE void deleteconfig(old) | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'Configlist_reset': ./tool/lemon.c:1080:3: error: too many arguments to function 'Configtable_clear'; expected 0, have 1 1080 | Configtable_clear(0); | ^~~~~~~~~~~~~~~~~ ~ ./tool/lemon.c:322:6: note: declared here 322 | void Configtable_clear(/* int(*)(struct config *) */); | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function 'Configlist_add': ./tool/lemon.c:1085:16: warning: old-style function definition [-Wold-style-definition] 1085 | struct config *Configlist_add(rp,dot) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1088:1: error: number of arguments doesn't match prototype 1088 | { | ^ ./tool/lemon.c:55:16: error: prototype declaration 55 | struct config *Configlist_add(/* struct rule *, int */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1091:3: note: in expansion of macro 'assert' 1091 | assert( currentend!=0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:1094:9: error: too many arguments to function 'Configtable_find'; expected 0, have 1 1094 | cfp = Configtable_find(&model); | ^~~~~~~~~~~~~~~~ ~~~~~~ ./tool/lemon.c:321:16: note: declared here 321 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:1106:5: error: too many arguments to function 'Configtable_insert'; expected 0, have 1 1106 | Configtable_insert(cfp); | ^~~~~~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:320:5: note: declared here 320 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function 'Configlist_addbasis': ./tool/lemon.c:1112:16: warning: old-style function definition [-Wold-style-definition] 1112 | struct config *Configlist_addbasis(rp,dot) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1115:1: error: number of arguments doesn't match prototype 1115 | { | ^ ./tool/lemon.c:56:16: error: prototype declaration 56 | struct config *Configlist_addbasis(/* struct rule *, int */); | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1118:3: note: in expansion of macro 'assert' 1118 | assert( basisend!=0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1119:3: note: in expansion of macro 'assert' 1119 | assert( currentend!=0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:1122:9: error: too many arguments to function 'Configtable_find'; expected 0, have 1 1122 | cfp = Configtable_find(&model); | ^~~~~~~~~~~~~~~~ ~~~~~~ ./tool/lemon.c:321:16: note: declared here 321 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:1136:5: error: too many arguments to function 'Configtable_insert'; expected 0, have 1 1136 | Configtable_insert(cfp); | ^~~~~~~~~~~~~~~~~~ ~~~ ./tool/lemon.c:320:5: note: declared here 320 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c: In function 'Configlist_closure': ./tool/lemon.c:1142:6: warning: old-style function definition [-Wold-style-definition] 1142 | void Configlist_closure(lemp) | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1144:1: error: number of arguments doesn't match prototype 1144 | { | ^ ./tool/lemon.c:57:6: error: prototype declaration 57 | void Configlist_closure(/* void */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1150:3: note: in expansion of macro 'assert' 1150 | assert( currentend!=0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:1163:18: error: too many arguments to function 'Configlist_add'; expected 0, have 2 1163 | newcfp = Configlist_add(newrp,0); | ^~~~~~~~~~~~~~ ~~~~~ ./tool/lemon.c:1085:16: note: declared here 1085 | struct config *Configlist_add(rp,dot) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1167:13: error: too many arguments to function 'SetAdd'; expected 0, have 2 1167 | SetAdd(newcfp->fws,xsp->index); | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:103:5: note: declared here 103 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c:1170:13: error: too many arguments to function 'SetUnion'; expected 0, have 2 1170 | SetUnion(newcfp->fws,xsp->firstset); | ^~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:104:5: note: declared here 104 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c:1174:27: error: too many arguments to function 'Plink_add'; expected 0, have 2 1174 | if( i==rp->nrhs ) Plink_add(&cfp->fplp,newcfp); | ^~~~~~~~~ ~~~~~~~~~~ ./tool/lemon.c:87:6: note: declared here 87 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function 'Configlist_sort': ./tool/lemon.c:1183:30: error: too many arguments to function 'msort'; expected 0, have 3 1183 | current = (struct config *)msort((char *)current,(char **)&(current->next),Configcmp); | ^~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:30:7: note: declared here 30 | char *msort(); | ^~~~~ ./tool/lemon.c: In function 'Configlist_sortbasis': ./tool/lemon.c:1190:28: error: too many arguments to function 'msort'; expected 0, have 3 1190 | basis = (struct config *)msort((char *)current,(char **)&(current->bp),Configcmp); | ^~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:30:7: note: declared here 30 | char *msort(); | ^~~~~ ./tool/lemon.c: In function 'Configlist_eat': ./tool/lemon.c:1216:6: warning: old-style function definition [-Wold-style-definition] 1216 | void Configlist_eat(cfp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1218:1: error: number of arguments doesn't match prototype 1218 | { | ^ ./tool/lemon.c:62:6: error: prototype declaration 62 | void Configlist_eat(/* struct config * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1222:5: note: in expansion of macro 'assert' 1222 | assert( cfp->fplp==0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:1223:5: note: in expansion of macro 'assert' 1223 | assert( cfp->bplp==0 ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:1224:20: error: too many arguments to function 'SetFree'; expected 0, have 1 1224 | if( cfp->fws ) SetFree(cfp->fws); | ^~~~~~~ ~~~~~~~~ ./tool/lemon.c:101:7: note: declared here 101 | void SetFree(/* char* */); /* Deallocate a set */ | ^~~~~~~ ./tool/lemon.c: In function 'findbreak': ./tool/lemon.c:1237:12: warning: old-style function definition [-Wold-style-definition] 1237 | static int findbreak(msg,min,max) | ^~~~~~~~~ ./tool/lemon.c: In function 'main': ./tool/lemon.c:1316:5: warning: old-style function definition [-Wold-style-definition] 1316 | int main(argc,argv) | ^~~~ ./tool/lemon.c:1340:3: error: too many arguments to function 'OptInit'; expected 0, have 3 1340 | OptInit(argv,options,stderr); | ^~~~~~~ ~~~~ ./tool/lemon.c:76:8: note: declared here 76 | int OptInit(/* char**,struct s_options*,FILE* */); | ^~~~~~~ ./tool/lemon.c:1356:18: error: too many arguments to function 'OptArg'; expected 0, have 1 1356 | lem.filename = OptArg(0); | ^~~~~~ ~ ./tool/lemon.c:78:8: note: declared here 78 | char *OptArg(/* int */); | ^~~~~~ ./tool/lemon.c:1367:3: error: too many arguments to function 'Symbol_new'; expected 0, have 1 1367 | Symbol_new("$"); | ^~~~~~~~~~ ~~~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1368:16: error: too many arguments to function 'Symbol_new'; expected 0, have 1 1368 | lem.errsym = Symbol_new("error"); | ^~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1371:3: error: too many arguments to function 'Parse'; expected 0, have 1 1371 | Parse(&lem); | ^~~~~ ~~~~ ./tool/lemon.c:83:6: note: declared here 83 | void Parse(/* struct lemon *lemp */); | ^~~~~ ./tool/lemon.c:1380:3: error: too many arguments to function 'Symbol_new'; expected 0, have 1 1380 | Symbol_new("{default}"); | ^~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1384:9: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 1384 | (int(*)())Symbolcmpp); | ^~~~~~~~~~~~~~~~~~~~ | | | int (*)(void) /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:300:5: note: 'Symbolcmpp' declared here 300 | int Symbolcmpp(/* struct symbol **, struct symbol ** */); | ^~~~~~~~~~ ./tool/lemon.c:1391:5: error: too many arguments to function 'Reprint'; expected 0, have 1 1391 | Reprint(&lem); | ^~~~~~~ ~~~~ ./tool/lemon.c:92:6: note: declared here 92 | void Reprint(/* struct lemon * */); | ^~~~~~~ ./tool/lemon.c:1394:5: error: too many arguments to function 'SetSize'; expected 0, have 1 1394 | SetSize(lem.nterminal); | ^~~~~~~ ~~~~~~~~~~~~~ ./tool/lemon.c:99:7: note: declared here 99 | void SetSize(/* int N */); /* All sets will be of size N */ | ^~~~~~~ ./tool/lemon.c:1397:5: error: too many arguments to function 'FindRulePrecedences'; expected 0, have 1 1397 | FindRulePrecedences(&lem); | ^~~~~~~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:581:6: note: declared here 581 | void FindRulePrecedences(xp) | ^~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:1401:5: error: too many arguments to function 'FindFirstSets'; expected 0, have 1 1401 | FindFirstSets(&lem); | ^~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:604:6: note: declared here 604 | void FindFirstSets(lemp) | ^~~~~~~~~~~~~ ./tool/lemon.c:1406:5: error: too many arguments to function 'FindStates'; expected 0, have 1 1406 | FindStates(&lem); | ^~~~~~~~~~ ~~~~ ./tool/lemon.c:661:6: note: declared here 661 | void FindStates(lemp) | ^~~~~~~~~~ ./tool/lemon.c:1410:5: error: too many arguments to function 'FindLinks'; expected 0, have 1 1410 | FindLinks(&lem); | ^~~~~~~~~ ~~~~ ./tool/lemon.c:813:6: note: declared here 813 | void FindLinks(lemp) | ^~~~~~~~~ ./tool/lemon.c:1413:5: error: too many arguments to function 'FindFollowSets'; expected 0, have 1 1413 | FindFollowSets(&lem); | ^~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:849:6: note: declared here 849 | void FindFollowSets(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:1416:5: error: too many arguments to function 'FindActions'; expected 0, have 1 1416 | FindActions(&lem); | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:886:6: note: declared here 886 | void FindActions(lemp) | ^~~~~~~~~~~ ./tool/lemon.c:1419:23: error: too many arguments to function 'CompressTables'; expected 0, have 1 1419 | if( compress==0 ) CompressTables(&lem); | ^~~~~~~~~~~~~~ ~~~~ ./tool/lemon.c:96:6: note: declared here 96 | void CompressTables(/* struct lemon * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:1422:18: error: too many arguments to function 'ReportOutput'; expected 0, have 1 1422 | if( !quiet ) ReportOutput(&lem); | ^~~~~~~~~~~~ ~~~~ ./tool/lemon.c:93:6: note: declared here 93 | void ReportOutput(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c:1425:5: error: too many arguments to function 'ReportTable'; expected 0, have 2 1425 | ReportTable(&lem, mhflag); | ^~~~~~~~~~~ ~~~~ ./tool/lemon.c:94:6: note: declared here 94 | void ReportTable(/* struct lemon * */); | ^~~~~~~~~~~ ./tool/lemon.c:1430:19: error: too many arguments to function 'ReportHeader'; expected 0, have 1 1430 | if( !mhflag ) ReportHeader(&lem); | ^~~~~~~~~~~~ ~~~~ ./tool/lemon.c:95:6: note: declared here 95 | void ReportHeader(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'merge': ./tool/lemon.c:1488:14: warning: old-style function definition [-Wold-style-definition] 1488 | static char *merge(a,b,cmp,offset) | ^~~~~ ./tool/lemon.c:1501:10: error: too many arguments to function 'cmp'; expected 0, have 2 1501 | if( (*cmp)(a,b)<0 ){ | ~^~~~~ ~ ./tool/lemon.c:1510:12: error: too many arguments to function 'cmp'; expected 0, have 2 1510 | if( (*cmp)(a,b)<0 ){ | ~^~~~~ ~ ./tool/lemon.c: In function 'msort': ./tool/lemon.c:1540:7: warning: old-style function definition [-Wold-style-definition] 1540 | char *msort(list,next,cmp) | ^~~~~ ./tool/lemon.c:1544:1: error: number of arguments doesn't match prototype 1544 | { | ^ ./tool/lemon.c:30:7: error: prototype declaration 30 | char *msort(); | ^~~~~ ./tool/lemon.c: In function 'errline': ./tool/lemon.c:1576:13: warning: old-style function definition [-Wold-style-definition] 1576 | static void errline(n,k,err) | ^~~~~~~ ./tool/lemon.c: In function 'argindex': ./tool/lemon.c:1602:12: warning: old-style function definition [-Wold-style-definition] 1602 | static int argindex(n) | ^~~~~~~~ ./tool/lemon.c: In function 'handleflags': ./tool/lemon.c:1624:12: warning: old-style function definition [-Wold-style-definition] 1624 | static int handleflags(i,err) | ^~~~~~~~~~~ ./tool/lemon.c:1644:6: error: too many arguments to function '(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg'; expected 0, have 1 1644 | (*(void(*)())(op[j].arg))(v); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~ ./tool/lemon.c: In function 'handleswitch': ./tool/lemon.c:1658:12: warning: old-style function definition [-Wold-style-definition] 1658 | static int handleswitch(i,err) | ^~~~~~~~~~~~ ./tool/lemon.c:1726:10: error: too many arguments to function '(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg'; expected 0, have 1 1726 | (*(void(*)())(op[j].arg))(dv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c:1732:10: error: too many arguments to function '(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg'; expected 0, have 1 1732 | (*(void(*)())(op[j].arg))((int)lv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:1738:10: error: too many arguments to function '(void (*)(void))(op + (sizetype)((long unsigned int)j * 32))->arg'; expected 0, have 1 1738 | (*(void(*)())(op[j].arg))(sv); | ~^~~~~~~~~~~~~~~~~~~~~~~~ ~~ ./tool/lemon.c: In function 'OptInit': ./tool/lemon.c:1745:5: warning: old-style function definition [-Wold-style-definition] 1745 | int OptInit(a,o,err) | ^~~~~~~ ./tool/lemon.c:1749:1: error: number of arguments doesn't match prototype 1749 | { | ^ ./tool/lemon.c:76:8: error: prototype declaration 76 | int OptInit(/* char**,struct s_options*,FILE* */); | ^~~~~~~ ./tool/lemon.c: In function 'OptArg': ./tool/lemon.c:1785:7: warning: old-style function definition [-Wold-style-definition] 1785 | char *OptArg(n) | ^~~~~~ ./tool/lemon.c:1787:1: error: number of arguments doesn't match prototype 1787 | { | ^ ./tool/lemon.c:78:8: error: prototype declaration 78 | char *OptArg(/* int */); | ^~~~~~ ./tool/lemon.c: In function 'OptErr': ./tool/lemon.c:1793:6: warning: old-style function definition [-Wold-style-definition] 1793 | void OptErr(n) | ^~~~~~ ./tool/lemon.c:1795:1: error: number of arguments doesn't match prototype 1795 | { | ^ ./tool/lemon.c:79:8: error: prototype declaration 79 | void OptErr(/* int */); | ^~~~~~ ./tool/lemon.c: In function 'parseonetoken': ./tool/lemon.c:1900:13: warning: old-style function definition [-Wold-style-definition] 1900 | static void parseonetoken(psp) | ^~~~~~~~~~~~~ ./tool/lemon.c:1904:7: error: too many arguments to function 'Strsafe'; expected 0, have 1 1904 | x = Strsafe(psp->tokenstart); /* Save the token permanently */ | ^~~~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:291:7: note: declared here 291 | char *Strsafe(); | ^~~~~~~ ./tool/lemon.c:1920:20: error: too many arguments to function 'Symbol_new'; expected 0, have 1 1920 | psp->lhs = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:1963:34: error: too many arguments to function 'Symbol_new'; expected 0, have 1 1963 | psp->prevrule->precsym = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2024:29: error: too many arguments to function 'malloc'; expected 0, have 1 2024 | rp = (struct rule *)malloc( sizeof(struct rule) + | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ 2025 | sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:2066:33: error: too many arguments to function 'Symbol_new'; expected 0, have 1 2066 | psp->rhs[psp->nrhs] = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2184:29: error: too many arguments to function 'Symbol_new'; expected 0, have 1 2184 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2197:29: error: too many arguments to function 'Symbol_new'; expected 0, have 1 2197 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2208:14: error: too many arguments to function 'Symbol_new'; expected 0, have 1 2208 | sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:2251:29: error: too many arguments to function 'Symbol_new'; expected 0, have 1 2251 | struct symbol *sp = Symbol_new(x); | ^~~~~~~~~~ ~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c: In function 'Parse': ./tool/lemon.c:2279:6: warning: old-style function definition [-Wold-style-definition] 2279 | void Parse(gp) | ^~~~~ ./tool/lemon.c:2281:1: error: number of arguments doesn't match prototype 2281 | { | ^ ./tool/lemon.c:83:6: error: prototype declaration 83 | void Parse(/* struct lemon *lemp */); | ^~~~~ ./tool/lemon.c:2306:21: error: too many arguments to function 'malloc'; expected 0, have 1 2306 | filebuf = (char *)malloc( filesize+1 ); | ^~~~~~ ~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Plink_new': ./tool/lemon.c:2431:38: error: too many arguments to function 'malloc'; expected 0, have 1 2431 | plink_freelist = (struct plink *)malloc( sizeof(struct plink)*amt ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Plink_add': ./tool/lemon.c:2446:6: warning: old-style function definition [-Wold-style-definition] 2446 | void Plink_add(plpp,cfp) | ^~~~~~~~~ ./tool/lemon.c:2449:1: error: number of arguments doesn't match prototype 2449 | { | ^ ./tool/lemon.c:87:6: error: prototype declaration 87 | void Plink_add(/* struct plink **, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function 'Plink_copy': ./tool/lemon.c:2458:6: warning: old-style function definition [-Wold-style-definition] 2458 | void Plink_copy(to,from) | ^~~~~~~~~~ ./tool/lemon.c:2461:1: error: number of arguments doesn't match prototype 2461 | { | ^ ./tool/lemon.c:88:6: error: prototype declaration 88 | void Plink_copy(/* struct plink **, struct plink * */); | ^~~~~~~~~~ ./tool/lemon.c: In function 'Plink_delete': ./tool/lemon.c:2472:6: warning: old-style function definition [-Wold-style-definition] 2472 | void Plink_delete(plp) | ^~~~~~~~~~~~ ./tool/lemon.c:2474:1: error: number of arguments doesn't match prototype 2474 | { | ^ ./tool/lemon.c:89:6: error: prototype declaration 89 | void Plink_delete(/* struct plink * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'file_makename': ./tool/lemon.c:2493:15: warning: old-style function definition [-Wold-style-definition] 2493 | PRIVATE char *file_makename(lemp,suffix) | ^~~~~~~~~~~~~ ./tool/lemon.c:2500:10: error: too many arguments to function 'malloc'; expected 0, have 1 2500 | name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'file_open': ./tool/lemon.c:2515:15: warning: old-style function definition [-Wold-style-definition] 2515 | PRIVATE FILE *file_open(lemp,suffix,mode) | ^~~~~~~~~ ./tool/lemon.c: In function 'Reprint': ./tool/lemon.c:2535:6: warning: old-style function definition [-Wold-style-definition] 2535 | void Reprint(lemp) | ^~~~~~~ ./tool/lemon.c:2537:1: error: number of arguments doesn't match prototype 2537 | { | ^ ./tool/lemon.c:92:6: error: prototype declaration 92 | void Reprint(/* struct lemon * */); | ^~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:2555:7: note: in expansion of macro 'assert' 2555 | assert( sp->index==j ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c: In function 'ConfigPrint': ./tool/lemon.c:2575:6: warning: old-style function definition [-Wold-style-definition] 2575 | void ConfigPrint(fp,cfp) | ^~~~~~~~~~~ ./tool/lemon.c: In function 'ReportOutput': ./tool/lemon.c:2658:6: warning: old-style function definition [-Wold-style-definition] 2658 | void ReportOutput(lemp) | ^~~~~~~~~~~~ ./tool/lemon.c:2660:1: error: number of arguments doesn't match prototype 2660 | { | ^ ./tool/lemon.c:93:6: error: prototype declaration 93 | void ReportOutput(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'pathsearch': ./tool/lemon.c:2705:15: warning: old-style function definition [-Wold-style-definition] 2705 | PRIVATE char *pathsearch(argv0,name,modemask) | ^~~~~~~~~~ ./tool/lemon.c:2723:20: error: too many arguments to function 'malloc'; expected 0, have 1 2723 | path = (char *)malloc( strlen(argv0) + strlen(name) + 2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:2727:18: error: conflicting types for 'getenv'; have 'char *(void)' 2727 | extern char *getenv(); | ^~~~~~ /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ ./tool/lemon.c:2728:16: error: too many arguments to function 'getenv'; expected 0, have 1 2728 | pathlist = getenv("PATH"); | ^~~~~~ ~~~~~~ ./tool/lemon.c:2727:18: note: declared here 2727 | extern char *getenv(); | ^~~~~~ ./tool/lemon.c:2730:20: error: too many arguments to function 'malloc'; expected 0, have 1 2730 | path = (char *)malloc( strlen(pathlist)+strlen(name)+2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:2741:13: error: too many arguments to function 'access'; expected 0, have 2 2741 | if( access(path,modemask)==0 ) break; | ^~~~~~ ~~~~ ./tool/lemon.c:2713:14: note: declared here 2713 | extern int access(); | ^~~~~~ ./tool/lemon.c: In function 'compute_action': ./tool/lemon.c:2752:13: warning: old-style function definition [-Wold-style-definition] 2752 | PRIVATE int compute_action(lemp,ap) | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function 'tplt_xfer': ./tool/lemon.c:2777:14: warning: old-style function definition [-Wold-style-definition] 2777 | PRIVATE void tplt_xfer(name,in,out,lineno) | ^~~~~~~~~ ./tool/lemon.c: In function 'tplt_open': ./tool/lemon.c:2806:15: warning: old-style function definition [-Wold-style-definition] 2806 | PRIVATE FILE *tplt_open(lemp) | ^~~~~~~~~ ./tool/lemon.c:2821:7: error: implicit declaration of function 'access' [-Wimplicit-function-declaration] 2821 | if( access(buf,004)==0 ){ | ^~~~~~ ./tool/lemon.c:2713:14: note: previous declaration of 'access' with type 'int(void)' 2713 | extern int access(); | ^~~~~~ ./tool/lemon.c: In function 'tplt_print': ./tool/lemon.c:2844:14: warning: old-style function definition [-Wold-style-definition] 2844 | PRIVATE void tplt_print(out,lemp,str,strln,lineno) | ^~~~~~~~~~ ./tool/lemon.c: In function 'emit_destructor_code': ./tool/lemon.c:2866:6: warning: old-style function definition [-Wold-style-definition] 2866 | void emit_destructor_code(out,sp,lemp,lineno) | ^~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:2887:4: note: in expansion of macro 'assert' 2887 | assert( 0 ); /* Cannot happen */ | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c: In function 'has_destructor': ./tool/lemon.c:2906:5: warning: old-style function definition [-Wold-style-definition] 2906 | int has_destructor(sp, lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function 'emit_code': ./tool/lemon.c:2923:14: warning: old-style function definition [-Wold-style-definition] 2923 | PRIVATE void emit_code(out,rp,lemp,lineno) | ^~~~~~~~~ ./tool/lemon.c: In function 'print_stack_union': ./tool/lemon.c:3007:6: warning: old-style function definition [-Wold-style-definition] 3007 | void print_stack_union(out,lemp,plineno,mhflag) | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:3024:19: error: too many arguments to function 'malloc'; expected 0, have 1 3024 | types = (char**)malloc( arraysize * sizeof(char*) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3037:18: error: too many arguments to function 'malloc'; expected 0, have 1 3037 | stddt = (char*)malloc( maxdtlength*2 + 1 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3082:28: error: too many arguments to function 'malloc'; expected 0, have 1 3082 | types[hash] = (char*)malloc( strlen(stddt)+1 ); | ^~~~~~ ~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'ReportTable': ./tool/lemon.c:3156:6: warning: old-style function definition [-Wold-style-definition] 3156 | void ReportTable(lemp, mhflag) | ^~~~~~~~~~~ ./tool/lemon.c:3159:1: error: number of arguments doesn't match prototype 3159 | { | ^ ./tool/lemon.c:94:6: error: prototype declaration 94 | void ReportTable(/* struct lemon * */); | ^~~~~~~~~~~ ./tool/lemon.c:3272:8: error: too many arguments to function 'malloc'; expected 0, have 1 3272 | ax = malloc( sizeof(ax[0])*lemp->nstate*2 ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:3462:5: note: in expansion of macro 'assert' 3462 | assert( rp->index==i ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c: In function 'ReportHeader': ./tool/lemon.c:3551:6: warning: old-style function definition [-Wold-style-definition] 3551 | void ReportHeader(lemp) | ^~~~~~~~~~~~ ./tool/lemon.c:3553:1: error: number of arguments doesn't match prototype 3553 | { | ^ ./tool/lemon.c:95:6: error: prototype declaration 95 | void ReportHeader(/* struct lemon * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'CompressTables': ./tool/lemon.c:3590:6: warning: old-style function definition [-Wold-style-definition] 3590 | void CompressTables(lemp) | ^~~~~~~~~~~~~~ ./tool/lemon.c:3592:1: error: number of arguments doesn't match prototype 3592 | { | ^ ./tool/lemon.c:96:6: error: prototype declaration 96 | void CompressTables(/* struct lemon * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:40:29: error: too many arguments to function 'myassert'; expected 0, have 2 40 | # define assert(X) if(!(X))myassert(__FILE__,__LINE__) | ^~~~~~~~ ./tool/lemon.c:3630:5: note: in expansion of macro 'assert' 3630 | assert( ap ); | ^~~~~~ ./tool/lemon.c:559:6: note: declared here 559 | void myassert(file,line) | ^~~~~~~~ ./tool/lemon.c:3631:14: error: too many arguments to function 'Symbol_new'; expected 0, have 1 3631 | ap->sp = Symbol_new("{default}"); | ^~~~~~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:299:16: note: declared here 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:3635:15: error: too many arguments to function 'Action_sort'; expected 0, have 1 3635 | stp->ap = Action_sort(stp->ap); | ^~~~~~~~~~~ ~~~~~~~ ./tool/lemon.c:366:16: note: declared here 366 | struct action *Action_sort(ap) | ^~~~~~~~~~~ ./tool/lemon.c: In function 'SetSize': ./tool/lemon.c:3647:6: warning: old-style function definition [-Wold-style-definition] 3647 | void SetSize(n) | ^~~~~~~ ./tool/lemon.c:3649:1: error: number of arguments doesn't match prototype 3649 | { | ^ ./tool/lemon.c:99:7: error: prototype declaration 99 | void SetSize(/* int N */); /* All sets will be of size N */ | ^~~~~~~ ./tool/lemon.c: In function 'SetNew': ./tool/lemon.c:3657:14: error: too many arguments to function 'malloc'; expected 0, have 1 3657 | s = (char*)malloc( size ); | ^~~~~~ ~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'SetFree': ./tool/lemon.c:3667:6: warning: old-style function definition [-Wold-style-definition] 3667 | void SetFree(s) | ^~~~~~~ ./tool/lemon.c:3669:1: error: number of arguments doesn't match prototype 3669 | { | ^ ./tool/lemon.c:101:7: error: prototype declaration 101 | void SetFree(/* char* */); /* Deallocate a set */ | ^~~~~~~ ./tool/lemon.c: In function 'SetAdd': ./tool/lemon.c:3675:5: warning: old-style function definition [-Wold-style-definition] 3675 | int SetAdd(s,e) | ^~~~~~ ./tool/lemon.c:3678:1: error: number of arguments doesn't match prototype 3678 | { | ^ ./tool/lemon.c:103:5: error: prototype declaration 103 | int SetAdd(/* char*,int */); /* Add element to a set */ | ^~~~~~ ./tool/lemon.c: In function 'SetUnion': ./tool/lemon.c:3686:5: warning: old-style function definition [-Wold-style-definition] 3686 | int SetUnion(s1,s2) | ^~~~~~~~ ./tool/lemon.c:3689:1: error: number of arguments doesn't match prototype 3689 | { | ^ ./tool/lemon.c:104:5: error: prototype declaration 104 | int SetUnion(/* char *A,char *B */); /* A <- A U B, thru element N */ | ^~~~~~~~ ./tool/lemon.c: In function 'strhash': ./tool/lemon.c:3714:18: warning: old-style function definition [-Wold-style-definition] 3714 | PRIVATE unsigned strhash(x) | ^~~~~~~ ./tool/lemon.c: In function 'Strsafe': ./tool/lemon.c:3726:7: warning: old-style function definition [-Wold-style-definition] 3726 | char *Strsafe(y) | ^~~~~~~ ./tool/lemon.c:3728:1: error: number of arguments doesn't match prototype 3728 | { | ^ ./tool/lemon.c:291:7: error: prototype declaration 291 | char *Strsafe(); | ^~~~~~~ ./tool/lemon.c:3731:7: error: too many arguments to function 'Strsafe_find'; expected 0, have 1 3731 | z = Strsafe_find(y); | ^~~~~~~~~~~~ ~ ./tool/lemon.c:295:7: note: declared here 295 | char *Strsafe_find(/* char * */); | ^~~~~~~~~~~~ ./tool/lemon.c:3732:18: error: too many arguments to function 'malloc'; expected 0, have 1 3732 | if( z==0 && (z=malloc( strlen(y)+1 ))!=0 ){ | ^~~~~~ ~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3734:5: error: too many arguments to function 'Strsafe_insert'; expected 0, have 1 3734 | Strsafe_insert(z); | ^~~~~~~~~~~~~~ ~ ./tool/lemon.c:294:5: note: declared here 294 | int Strsafe_insert(/* char * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c: In function 'Strsafe_init': ./tool/lemon.c:3767:23: error: too many arguments to function 'malloc'; expected 0, have 1 3767 | x1a = (struct s_x1*)malloc( sizeof(struct s_x1) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3771:25: error: too many arguments to function 'malloc'; expected 0, have 1 3771 | x1a->tbl = (x1node*)malloc( | ^~~~~~ 3772 | (sizeof(x1node) + sizeof(x1node*))*1024 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Strsafe_insert': ./tool/lemon.c:3785:5: warning: old-style function definition [-Wold-style-definition] 3785 | int Strsafe_insert(data) | ^~~~~~~~~~~~~~ ./tool/lemon.c:3787:1: error: number of arguments doesn't match prototype 3787 | { | ^ ./tool/lemon.c:294:5: error: prototype declaration 294 | int Strsafe_insert(/* char * */); | ^~~~~~~~~~~~~~ ./tool/lemon.c:3810:26: error: too many arguments to function 'malloc'; expected 0, have 1 3810 | array.tbl = (x1node*)malloc( | ^~~~~~ 3811 | (sizeof(x1node) + sizeof(x1node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Strsafe_find': ./tool/lemon.c:3842:7: warning: old-style function definition [-Wold-style-definition] 3842 | char *Strsafe_find(key) | ^~~~~~~~~~~~ ./tool/lemon.c:3844:1: error: number of arguments doesn't match prototype 3844 | { | ^ ./tool/lemon.c:295:7: error: prototype declaration 295 | char *Strsafe_find(/* char * */); | ^~~~~~~~~~~~ ./tool/lemon.c: In function 'Symbol_new': ./tool/lemon.c:3861:16: warning: old-style function definition [-Wold-style-definition] 3861 | struct symbol *Symbol_new(x) | ^~~~~~~~~~ ./tool/lemon.c:3863:1: error: number of arguments doesn't match prototype 3863 | { | ^ ./tool/lemon.c:299:16: error: prototype declaration 299 | struct symbol *Symbol_new(); | ^~~~~~~~~~ ./tool/lemon.c:3866:8: error: too many arguments to function 'Symbol_find'; expected 0, have 1 3866 | sp = Symbol_find(x); | ^~~~~~~~~~~ ~ ./tool/lemon.c:303:16: note: declared here 303 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c:3868:27: error: too many arguments to function 'malloc'; expected 0, have 1 3868 | sp = (struct symbol *)malloc( sizeof(struct symbol) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3870:16: error: too many arguments to function 'Strsafe'; expected 0, have 1 3870 | sp->name = Strsafe(x); | ^~~~~~~ ~ ./tool/lemon.c:3726:7: note: declared here 3726 | char *Strsafe(y) | ^~~~~~~ ./tool/lemon.c:3880:5: error: too many arguments to function 'Symbol_insert'; expected 0, have 2 3880 | Symbol_insert(sp,sp->name); | ^~~~~~~~~~~~~ ~~ ./tool/lemon.c:302:5: note: declared here 302 | int Symbol_insert(/* struct symbol *, char * */); | ^~~~~~~~~~~~~ ./tool/lemon.c: At top level: ./tool/lemon.c:3895:5: error: conflicting types for 'Symbolcmpp'; have 'int(struct symbol **, struct symbol **)' 3895 | int Symbolcmpp(struct symbol **a, struct symbol **b){ | ^~~~~~~~~~ ./tool/lemon.c:300:5: note: previous declaration of 'Symbolcmpp' with type 'int(void)' 300 | int Symbolcmpp(/* struct symbol **, struct symbol ** */); | ^~~~~~~~~~ ./tool/lemon.c: In function 'Symbol_init': ./tool/lemon.c:3929:23: error: too many arguments to function 'malloc'; expected 0, have 1 3929 | x2a = (struct s_x2*)malloc( sizeof(struct s_x2) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:3933:25: error: too many arguments to function 'malloc'; expected 0, have 1 3933 | x2a->tbl = (x2node*)malloc( | ^~~~~~ 3934 | (sizeof(x2node) + sizeof(x2node*))*128 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Symbol_insert': ./tool/lemon.c:3947:5: warning: old-style function definition [-Wold-style-definition] 3947 | int Symbol_insert(data,key) | ^~~~~~~~~~~~~ ./tool/lemon.c:3950:1: error: number of arguments doesn't match prototype 3950 | { | ^ ./tool/lemon.c:302:5: error: prototype declaration 302 | int Symbol_insert(/* struct symbol *, char * */); | ^~~~~~~~~~~~~ ./tool/lemon.c:3973:26: error: too many arguments to function 'malloc'; expected 0, have 1 3973 | array.tbl = (x2node*)malloc( | ^~~~~~ 3974 | (sizeof(x2node) + sizeof(x2node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Symbol_find': ./tool/lemon.c:4007:16: warning: old-style function definition [-Wold-style-definition] 4007 | struct symbol *Symbol_find(key) | ^~~~~~~~~~~ ./tool/lemon.c:4009:1: error: number of arguments doesn't match prototype 4009 | { | ^ ./tool/lemon.c:303:16: error: prototype declaration 303 | struct symbol *Symbol_find(/* char * */); | ^~~~~~~~~~~ ./tool/lemon.c: In function 'Symbol_Nth': ./tool/lemon.c:4024:16: warning: old-style function definition [-Wold-style-definition] 4024 | struct symbol *Symbol_Nth(n) | ^~~~~~~~~~ ./tool/lemon.c:4026:1: error: number of arguments doesn't match prototype 4026 | { | ^ ./tool/lemon.c:304:16: error: prototype declaration 304 | struct symbol *Symbol_Nth(/* int */); | ^~~~~~~~~~ ./tool/lemon.c: In function 'Symbol_arrayof': ./tool/lemon.c:4051:29: error: too many arguments to function 'malloc'; expected 0, have 1 4051 | array = (struct symbol **)malloc( sizeof(struct symbol *)*size ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Configcmp': ./tool/lemon.c:4059:5: warning: old-style function definition [-Wold-style-definition] 4059 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c:4062:1: error: number of arguments doesn't match prototype 4062 | { | ^ ./tool/lemon.c:310:5: error: prototype declaration 310 | int Configcmp(/* struct config *, struct config * */); | ^~~~~~~~~ ./tool/lemon.c: In function 'statecmp': ./tool/lemon.c:4070:13: warning: old-style function definition [-Wold-style-definition] 4070 | PRIVATE int statecmp(a,b) | ^~~~~~~~ ./tool/lemon.c: In function 'statehash': ./tool/lemon.c:4087:18: warning: old-style function definition [-Wold-style-definition] 4087 | PRIVATE unsigned statehash(a) | ^~~~~~~~~ ./tool/lemon.c: In function 'State_new': ./tool/lemon.c:4102:25: error: too many arguments to function 'malloc'; expected 0, have 1 4102 | new = (struct state *)malloc( sizeof(struct state) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'State_init': ./tool/lemon.c:4135:23: error: too many arguments to function 'malloc'; expected 0, have 1 4135 | x3a = (struct s_x3*)malloc( sizeof(struct s_x3) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:4139:25: error: too many arguments to function 'malloc'; expected 0, have 1 4139 | x3a->tbl = (x3node*)malloc( | ^~~~~~ 4140 | (sizeof(x3node) + sizeof(x3node*))*128 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'State_insert': ./tool/lemon.c:4153:5: warning: old-style function definition [-Wold-style-definition] 4153 | int State_insert(data,key) | ^~~~~~~~~~~~ ./tool/lemon.c:4156:1: error: number of arguments doesn't match prototype 4156 | { | ^ ./tool/lemon.c:313:5: error: prototype declaration 313 | int State_insert(/* struct state *, struct config * */); | ^~~~~~~~~~~~ ./tool/lemon.c:4179:26: error: too many arguments to function 'malloc'; expected 0, have 1 4179 | array.tbl = (x3node*)malloc( | ^~~~~~ 4180 | (sizeof(x3node) + sizeof(x3node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'State_find': ./tool/lemon.c:4213:15: warning: old-style function definition [-Wold-style-definition] 4213 | struct state *State_find(key) | ^~~~~~~~~~ ./tool/lemon.c:4215:1: error: number of arguments doesn't match prototype 4215 | { | ^ ./tool/lemon.c:314:15: error: prototype declaration 314 | struct state *State_find(/* struct config * */); | ^~~~~~~~~~ ./tool/lemon.c: In function 'State_arrayof': ./tool/lemon.c:4238:28: error: too many arguments to function 'malloc'; expected 0, have 1 4238 | array = (struct state **)malloc( sizeof(struct state *)*size ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'confighash': ./tool/lemon.c:4246:18: warning: old-style function definition [-Wold-style-definition] 4246 | PRIVATE unsigned confighash(a) | ^~~~~~~~~~ ./tool/lemon.c: In function 'Configtable_init': ./tool/lemon.c:4281:23: error: too many arguments to function 'malloc'; expected 0, have 1 4281 | x4a = (struct s_x4*)malloc( sizeof(struct s_x4) ); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c:4285:25: error: too many arguments to function 'malloc'; expected 0, have 1 4285 | x4a->tbl = (x4node*)malloc( | ^~~~~~ 4286 | (sizeof(x4node) + sizeof(x4node*))*64 ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Configtable_insert': ./tool/lemon.c:4299:5: warning: old-style function definition [-Wold-style-definition] 4299 | int Configtable_insert(data) | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:4301:1: error: number of arguments doesn't match prototype 4301 | { | ^ ./tool/lemon.c:320:5: error: prototype declaration 320 | int Configtable_insert(/* struct config * */); | ^~~~~~~~~~~~~~~~~~ ./tool/lemon.c:4311:9: error: too many arguments to function 'Configcmp'; expected 0, have 2 4311 | if( Configcmp(np->data,data)==0 ){ | ^~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:4059:5: note: declared here 4059 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c:4324:26: error: too many arguments to function 'malloc'; expected 0, have 1 4324 | array.tbl = (x4node*)malloc( | ^~~~~~ 4325 | (sizeof(x4node) + sizeof(x4node*))*size ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tool/lemon.c:31:14: note: declared here 31 | extern void *malloc(); | ^~~~~~ ./tool/lemon.c: In function 'Configtable_find': ./tool/lemon.c:4356:16: warning: old-style function definition [-Wold-style-definition] 4356 | struct config *Configtable_find(key) | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:4358:1: error: number of arguments doesn't match prototype 4358 | { | ^ ./tool/lemon.c:321:16: error: prototype declaration 321 | struct config *Configtable_find(/* struct config * */); | ^~~~~~~~~~~~~~~~ ./tool/lemon.c:4366:9: error: too many arguments to function 'Configcmp'; expected 0, have 2 4366 | if( Configcmp(np->data,key)==0 ) break; | ^~~~~~~~~ ~~~~~~~~ ./tool/lemon.c:4059:5: note: declared here 4059 | int Configcmp(a,b) | ^~~~~~~~~ ./tool/lemon.c: In function 'Configtable_clear': ./tool/lemon.c:4374:6: warning: old-style function definition [-Wold-style-definition] 4374 | void Configtable_clear(f) | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:4376:1: error: number of arguments doesn't match prototype 4376 | { | ^ ./tool/lemon.c:322:6: error: prototype declaration 322 | void Configtable_clear(/* int(*)(struct config *) */); | ^~~~~~~~~~~~~~~~~ ./tool/lemon.c:4379:40: error: too many arguments to function 'f'; expected 0, have 1 4379 | if( f ) for(i=0; icount; i++) (*f)(x4a->tbl[i].data); | ~^~~ ~~~~~~~~~~~~~~~~ libtool: compile: gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DUINT32_TYPE=uint32_t -DUINT16_TYPE=uint16_t -DUINT8_TYPE=uint8_t -DINTPTR_TYPE=long -I/tmp/work/databases/sqlite/work/.buildlink/include -I/tmp/work/databases/sqlite/work/.buildlink/include/ncurses -DOS_UNIX=1 -DOS_WIN=0 -DHAVE_USLEEP=1 -I. -I./src -c ./src/encode.c -o encode.o >/dev/null 2>&1 gmake: *** [Makefile:218: lemon] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/databases/sqlite *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/databases/sqlite