Bug#1066242: snacc: FTBFS: parse-asn1.c:2716:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
Source: snacc
Version: 1.3.1-9.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
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 -DHAVE_CONFIG_H -I. -I../.. -DCOMPILER -DUSE_NIBBLE_MEMORY=0 -DUSE_EXP_BUF -I../../c-lib/inc -I../../c-lib/boot -I../../compiler/back-ends -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 -O0 -DFLEX_IN_USE -c -o parse-asn1.o parse-asn1.c
> parse-asn1.c: In function ‘yyparse’:
> parse-asn1.c:2716:16: error: implicit declaration of function ‘yylex’ [-Werror=implicit-function-declaration]
> 2716 | yychar = yylex ();
> | ^~~~~
> parse-asn1.y:712:9: error: implicit declaration of function ‘LexBeginInitialContext’; did you mean ‘LexBeginIntialContext’? [-Werror=implicit-function-declaration]
> 712 | LexBeginInitialContext();
> | ^~~~~~~~~~~~~~~~~~~~~~
> | LexBeginIntialContext
> parse-asn1.y:927:13: error: implicit declaration of function ‘yyerror’; did you mean ‘YYerror’? [-Werror=implicit-function-declaration]
> 927 | yyerror("Warning: positive signed number out of range");
> | ^~~~~~~
> | YYerror
> parse-asn1.y:1872:34: error: implicit declaration of function ‘OidArcNameToNum’ [-Werror=implicit-function-declaration]
> 1872 | $$->arcNum = OidArcNameToNum ($1);
> | ^~~~~~~~~
> parse-asn1.y:1911:9: error: implicit declaration of function ‘AddNewValueDef’ [-Werror=implicit-function-declaration]
> 1911 | AddNewValueDef (oidElmtValDefsG, $1, newVal);
> | ^~~~~~~~~~~~~~
> parse-asn1.y: At top level:
> parse-asn1.y:3065:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
> 3065 | yyerror (s)
> | ^~~~~~~
> parse-asn1.y: In function ‘yyerror’:
> parse-asn1.y:3068:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
> 3068 | fprintf (stderr,"file \"%s\", line %d: %s at symbol \"%s\"\n\n", modulePtrG->asn1SrcFileName, myLineNoG, s, yytext);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
> | |
> | long unsigned int
> parse-asn1.y: In function ‘InitAsn1Parser’:
> parse-asn1.y:3092:9: error: implicit declaration of function ‘yyrestart’ [-Werror=implicit-function-declaration]
> 3092 | yyrestart (fPtr);
> | ^~~~~~~~~
> In file included from parse-asn1.y:78:
> parse-asn1.y: In function ‘PushApplTag’:
> snacc-util.h:25:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
> 25 | fprintf (stderr, "file \"%s\", line %d: ", fileName, lineNo)
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> parse-asn1.y:3159:13: note: in expansion of macro ‘PrintErrLoc’
> 3159 | PrintErrLoc (modulePtrG->asn1SrcFileName, lineNo);
> | ^~~~~~~~~~~
> parse-asn1.y:3160:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
> 3160 | fprintf (stderr,"ERROR - APPLICATION tags can be used only once per ASN.1 module. The tag \"[APPLICATION %d]\" was previously used on line %d.\n", tagCode, l->lineNo);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~
> | |
> | long unsigned int
> parse-asn1.y:3160:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
> 3160 | fprintf (stderr,"ERROR - APPLICATION tags can be used only once per ASN.1 module. The tag \"[APPLICATION %d]\" was previously used on line %d.\n", tagCode, l->lineNo);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~
> | |
> | long unsigned int
> cc1: some warnings being treated as errors
> make[5]: *** [Makefile:538: parse-asn1.o] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/03/13/snacc_1.3.1-9.1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&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.
Reply to: