Source: gramophone2 Version: 0.8.13a-3.2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: [email protected] Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. This is most likely caused by a change in dpkg 1.22.6, that enabled -Werror=implicit-function-declaration. For more information, see https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration Relevant part (hopefully): > gcc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 > -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -fstack-clash-protection -Wformat > -Werror=format-security -fcf-protection -fcommon -O2 -Wl,-z,relro -o > gramophone2 GRAMophone.c\ > grammyVM.c init.c midicode.c\ > midifile.c expcode.c debug.c errors.c\ > hash.c GRAMophone.tab.c -lm > GRAMophone.c: In function ‘main’: > GRAMophone.c:94:9: error: implicit declaration of function ‘usageError’; did > you mean ‘strerror’? [-Werror=implicit-function-declaration] > 94 | usageError(); > | ^~~~~~~~~~ > | strerror > GRAMophone.c:98:3: error: implicit declaration of function ‘initGRAMophone’ > [-Werror=implicit-function-declaration] > 98 | initGRAMophone(); > | ^~~~~~~~~~~~~~ > GRAMophone.c:99:3: error: implicit declaration of function ‘yyparse’ > [-Werror=implicit-function-declaration] > 99 | yyparse(); > | ^~~~~~~ > GRAMophone.c:102:59: error: implicit declaration of function ‘grammyvm’ > [-Werror=implicit-function-declaration] > 102 | checkOption?(printf("the composition source is ok\n")):(grammyvm()); > | ^~~~~~~~ > cc1: some warnings being treated as errors > grammyVM.c: In function ‘chomsky_generator’: > grammyVM.c:711:53: error: implicit declaration of function > ‘mf_write_midi_event’ [-Werror=implicit-function-declaration] > 711 | > if(!mf_write_midi_event(prev_duration, note_on, > players[playerCount]->local_params[CHN], data, 2)) { > | > ^~~~~~~~~~~~~~~~~~~ > grammyVM.c: In function ‘lindenmayer_prod_generator’: > grammyVM.c:1114:67: error: implicit declaration of function ‘hash’ > [-Werror=implicit-function-declaration] > 1114 | > buffer[counter++]=hash(string_buf, 0); > | ^~~~ > grammyVM.c: In function ‘myputc’: > grammyVM.c:1477:5: warning: type of ‘c’ defaults to ‘int’ [-Wimplicit-int] > 1477 | int myputc(c) { > | ^~~~~~ > grammyVM.c: In function ‘write_player_track’: > grammyVM.c:1481:5: warning: type of ‘track’ defaults to ‘int’ [-Wimplicit-int] > 1481 | int write_player_track(track) { > | ^~~~~~~~~~~~~~~~~~ > grammyVM.c:1487:21: error: implicit declaration of function > ‘mf_write_meta_event’ [-Werror=implicit-function-declaration] > 1487 | if(!mf_write_meta_event(0, copyright_notice, > copyright, strlen(copyright))) { > | ^~~~~~~~~~~~~~~~~~~ > grammyVM.c:1491:17: error: implicit declaration of function ‘mf_write_tempo’ > [-Werror=implicit-function-declaration] > 1491 | mf_write_tempo((long)60000000/tempo); > | ^~~~~~~~~~~~~~ > grammyVM.c:1514:33: error: implicit declaration of function > ‘print_local_params’ [-Werror=implicit-function-declaration] > 1514 | print_local_params(playerCount); > //debug > | ^~~~~~~~~~~~~~~~~~ > grammyVM.c: In function ‘grammyvm’: > grammyVM.c:1548:11: error: implicit declaration of function > ‘print_composition_info’ [-Werror=implicit-function-declaration] > 1548 | print_composition_info(); //debug > | ^~~~~~~~~~~~~~~~~~~~~~ > grammyVM.c:1549:11: error: implicit declaration of function > ‘print_global_params’ [-Werror=implicit-function-declaration] > 1549 | print_global_params(); //debug > | ^~~~~~~~~~~~~~~~~~~ > cc1: some warnings being treated as errors > init.c: In function ‘initGRAMophone’: > init.c:66:5: error: implicit declaration of function ‘sntx_err’; did you mean > ‘stderr’? [-Werror=implicit-function-declaration] > 66 | sntx_err(MEMORY_ERR, ""); > | ^~~~~~~~ > | stderr > cc1: some warnings being treated as errors > midicode.c: In function ‘gen_code’: > midicode.c:31:6: error: implicit declaration of function ‘hash’ > [-Werror=implicit-function-declaration] > 31 | id=hash(idTemp, 0); > | ^~~~ > cc1: some warnings being treated as errors > midifile.c: In function ‘WriteVarLen’: > midifile.c:98:17: error: implicit declaration of function ‘eputc’; did you > mean ‘putc’? [-Werror=implicit-function-declaration] > 98 | eputc((unsigned)(buffer & 0xff)); > | ^~~~~ > | putc > midifile.c: At top level: > midifile.c:107:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 107 | mfread() /* The only non-static function in this file. > */ > | ^~~~~~ > midifile.c: In function ‘mfread’: > midifile.c:110:17: error: implicit declaration of function ‘mferror’; did you > mean ‘ferror’? [-Werror=implicit-function-declaration] > 110 | mferror("mfread() called without setting Mf_getc"); > | ^~~~~~~ > | ferror > midifile.c:112:9: error: implicit declaration of function ‘readheader’ > [-Werror=implicit-function-declaration] > 112 | readheader(); > | ^~~~~~~~~~ > midifile.c:113:17: error: implicit declaration of function ‘readtrack’ > [-Werror=implicit-function-declaration] > 113 | while ( readtrack() ) > | ^~~~~~~~~ > midifile.c: At top level: > midifile.c:118:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 118 | midifile() > | ^~~~~~~~ > midifile.c:124:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 124 | readmt(s) /* read through the "MThd" or "MTrk" header > string */ > | ^~~~~~ > midifile.c:143:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 143 | egetc() /* read a single character and abort on EOF */ > | ^~~~~ > midifile.c:154:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 154 | readheader() /* read a header chunk */ > | ^~~~~~~~~~ > midifile.c:175:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 175 | readtrack() /* read a track chunk */ > | ^~~~~~~~~ > midifile.c: In function ‘readtrack’: > midifile.c:227:25: error: implicit declaration of function ‘chanmessage’ > [-Werror=implicit-function-declaration] > 227 | chanmessage( status, c1, (needed>1) ? egetc() > : 0 ); > | ^~~~~~~~~~~ > midifile.c:237:25: error: implicit declaration of function ‘msginit’ > [-Werror=implicit-function-declaration] > 237 | msginit(); > | ^~~~~~~ > midifile.c:240:33: error: implicit declaration of function ‘msgadd’ > [-Werror=implicit-function-declaration] > 240 | msgadd(egetc()); > | ^~~~~~ > midifile.c:242:25: error: implicit declaration of function ‘metaevent’; did > you mean ‘meta_event’? [-Werror=implicit-function-declaration] > 242 | metaevent(type); > | ^~~~~~~~~ > | meta_event > midifile.c:255:33: error: implicit declaration of function ‘sysex’; did you > mean ‘system’? [-Werror=implicit-function-declaration] > 255 | sysex(); > | ^~~~~ > | system > midifile.c:272:57: error: implicit declaration of function ‘msgleng’; did you > mean ‘mblen’? [-Werror=implicit-function-declaration] > 272 | > (*Mf_arbitrary)(msgleng(),msg()); > | ^~~~~~~ > | mblen > midifile.c:280:25: error: implicit declaration of function ‘badbyte’ > [-Werror=implicit-function-declaration] > 280 | badbyte(c); > | ^~~~~~~ > midifile.c: At top level: > midifile.c:290:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 290 | badbyte(c) > | ^~~~~~~ > midifile.c:300:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 300 | metaevent(type) > | ^~~~~~~~~ > midifile.c: In function ‘metaevent’: > midifile.c:300:1: warning: type of ‘type’ defaults to ‘int’ [-Wimplicit-int] > midifile.c: At top level: > midifile.c:360:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 360 | sysex() > | ^~~~~ > midifile.c:367:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 367 | chanmessage(status,c1,c2) > | ^~~~~~~~~~~ > midifile.c: In function ‘to32bit’: > midifile.c:427:1: warning: type of ‘c1’ defaults to ‘int’ [-Wimplicit-int] > 427 | to32bit(c1,c2,c3,c4) > | ^~~~~~~ > midifile.c:427:1: warning: type of ‘c2’ defaults to ‘int’ [-Wimplicit-int] > midifile.c:427:1: warning: type of ‘c3’ defaults to ‘int’ [-Wimplicit-int] > midifile.c:427:1: warning: type of ‘c4’ defaults to ‘int’ [-Wimplicit-int] > midifile.c: At top level: > midifile.c:439:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 439 | to16bit(c1,c2) > | ^~~~~~~ > midifile.c:458:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 458 | read16bit() > | ^~~~~~~~~ > midifile.c:467:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 467 | mferror(s) > | ^~~~~~~ > midifile.c:485:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 485 | msginit() > | ^~~~~~~ > midifile.c:497:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 497 | msgleng() > | ^~~~~~~ > midifile.c:503:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 503 | msgadd(c) > | ^~~~~~ > midifile.c: In function ‘msgadd’: > midifile.c:508:17: error: implicit declaration of function ‘biggermsg’ > [-Werror=implicit-function-declaration] > 508 | biggermsg(); > | ^~~~~~~~~ > midifile.c: At top level: > midifile.c:513:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 513 | biggermsg() > | ^~~~~~~~~ > midifile.c:850:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 850 | eputc(c) > | ^~~~~ > cc1: some warnings being treated as errors > expcode.c: In function ‘gen_exp1_code’: > expcode.c:33:6: error: implicit declaration of function ‘hash’ > [-Werror=implicit-function-declaration] > 33 | id=hash(idTemp, 0); > | ^~~~ > cc1: some warnings being treated as errors > hash.c: In function ‘dhInsert’: > hash.c:65:11: error: implicit declaration of function ‘sntx_err’; did you > mean ‘stderr’? [-Werror=implicit-function-declaration] > 65 | sntx_err(ALREADY, "variable "); > | ^~~~~~~~ > | stderr > hash.c:111:25: error: implicit declaration of function ‘gen_code’ > [-Werror=implicit-function-declaration] > 111 | gen_code(_PRD, > ++players[playerCount]->productions[i]->numOr); > | ^~~~~~~~ > cc1: some warnings being treated as errors > In file included from GRAMophone.y:40: > GRAMophone.l: In function ‘yylex’: > GRAMophone.l:50:1: error: implicit declaration of function ‘sntx_err’; did > you mean ‘stderr’? [-Werror=implicit-function-declaration] > 50 | <comment><<EOF>> sntx_err(EOF, ""); > | ^~~~~~~~ > | stderr > GRAMophone.l:248:46: error: implicit declaration of function ‘check_id’ > [-Werror=implicit-function-declaration] > 248 | if(check_id()==MACRO) { > | ^~~~~~~~ > GRAMophone.l:252:89: error: implicit declaration of function ‘dhSearch2’; did > you mean ‘bsearch’? [-Werror=implicit-function-declaration] > 252 | > dhSearch2(yytext), YY_BUF_SIZE)); > | > ^~~~~~~~~ > | > bsearch > GRAMophone.l:251:104: warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > 251 | > yy_scan_buffer((char *) > | > ^ > GRAMophone.l: At top level: > GRAMophone.l:321:1: warning: return type defaults to ‘int’ [-Wimplicit-int] > 321 | yywrap() { > | ^~~~~~ > GRAMophone.y: In function ‘yyparse’: > GRAMophone.y:171:19: error: implicit declaration of function ‘gen_exp3_code’ > [-Werror=implicit-function-declaration] > 171 | gen_exp3_code(_NOT, $2, ctrl[2]); > | ^~~~~~~~~~~~~ > GRAMophone.y:180:19: error: implicit declaration of function ‘gen_exp1_code’ > [-Werror=implicit-function-declaration] > 180 | gen_exp1_code(_AND, $1, ctrlTemp[--w], $4, ctrl[2]); > | ^~~~~~~~~~~~~ > GRAMophone.y:256:21: error: implicit declaration of function ‘gen_exp4_code’ > [-Werror=implicit-function-declaration] > 256 | gen_exp4_code(_ENDEXP); > | ^~~~~~~~~~~~~ > GRAMophone.y:280:23: error: implicit declaration of function ‘gen_exp2_code’ > [-Werror=implicit-function-declaration] > 280 | gen_exp2_code(_MOV, $1, $3, ctrl[2]); > | ^~~~~~~~~~~~~ > GRAMophone.y:285:61: error: implicit declaration of function ‘hash’ > [-Werror=implicit-function-declaration] > 285 | > if((players[playerCount]->productions[hash(idTemp, 0)]-> > | ^~~~ > GRAMophone.y:454:54: error: implicit declaration of function ‘dhSearch’ > [-Werror=implicit-function-declaration] > 454 | if(!(noteVarTempBis=(pnote_var)dhSearch(yytext, > 0)) && > | ^~~~~~~~ > GRAMophone.y:454:43: warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > 454 | if(!(noteVarTempBis=(pnote_var)dhSearch(yytext, > 0)) && > | ^ > GRAMophone.y:455:43: warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > 455 | !(noteVarTempBis=(pnote_var)dhSearch(yytext, > 1))) > | ^ > GRAMophone.y:459:43: warning: cast to pointer from integer of different size > [-Wint-to-pointer-cast] > 459 | if(!(noteVarTempBis=(pnote_var)dhSearch(yytext, > 1))) > | ^ > GRAMophone.y:493:19: error: implicit declaration of function ‘back’ > [-Werror=implicit-function-declaration] > 493 | back(); > | ^~~~ > GRAMophone.y:507:19: error: implicit declaration of function ‘dhInsert’ > [-Werror=implicit-function-declaration] > 507 | dhInsert(NULL, idTemp, 2); > | ^~~~~~~~ > GRAMophone.y:943:19: error: implicit declaration of function > ‘init_local_flag’ [-Werror=implicit-function-declaration] > 943 | init_local_flag(); > | ^~~~~~~~~~~~~~~ > GRAMophone.y:946:19: error: implicit declaration of function ‘init_player’ > [-Werror=implicit-function-declaration] > 946 | init_player(); > | ^~~~~~~~~~~ > GRAMophone.y:1141:19: error: implicit declaration of function ‘gen_code’ > [-Werror=implicit-function-declaration] > 1141 | gen_code(_CHK, ec); > | ^~~~~~~~ > GRAMophone.y:1156:19: error: implicit declaration of function ‘gen_code2’ > [-Werror=implicit-function-declaration] > 1156 | gen_code2(_ELSE); > | ^~~~~~~~~ > GRAMophone.y:1160:19: error: implicit declaration of function ‘code_update’ > [-Werror=implicit-function-declaration] > 1160 | code_update(cc, ccCond); > | ^~~~~~~~~~~ > GRAMophone.y:1209:32: error: implicit declaration of function ‘gen_note_code’ > [-Werror=implicit-function-declaration] > 1209 | (ctrl[4]<0)?(gen_note_code(_EMPTY, ctrl[4], > ctrl[5], ctrl[6], ctrl[7], ctrl[8], ctrl[9], ctrl[10], ctrl[11], > ctrl[12])):(gen_note_code(_NOTEON, ctrl[4], ctrl[5], ctrl[6], ctrl[7], > ctrl[8], ctrl[9], ctrl[10], ctrl[11], ctrl[12])); > | ^~~~~~~~~~~~~ > GRAMophone.y:1241:19: error: implicit declaration of function ‘gen_code3’ > [-Werror=implicit-function-declaration] > 1241 | gen_code3(_REST, ctrl[9], ctrl[10]); > | ^~~~~~~~~ > GRAMophone.y:1322:25: error: implicit declaration of function ‘gen_code4’ > [-Werror=implicit-function-declaration] > 1322 | gen_code4(_PRNT, ctrl[5], ctrl[6], ctrl[3]); > | ^~~~~~~~~ > GRAMophone.tab.c:4583:7: error: implicit declaration of function ‘yyerror’; > did you mean ‘yyerrok’? [-Werror=implicit-function-declaration] > 4583 | yyerror (YY_("syntax error")); > | ^~~~~~~ > | yyerrok > cc1: some warnings being treated as errors > make[1]: *** [Makefile:10: default] Error 1 The full build log is available from: http://qa-logs.debian.net/2024/03/13/gramophone2_0.8.13a-3.2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;[email protected] or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.

