• Bug#1065981: snacc: FTBFS on arm{el,hf}: parse-asn1.c:2716:16: error: i

    From Sebastian Ramacher@21:1/5 to All on Sun Mar 10 23:00:01 2024
    Source: snacc
    Version: 1.3.1-9.1
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=snacc&arch=armhf&ver=1.3.1-9.1&stamp=1709536993&raw=0

    cc -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 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -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 -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 ‘yyerrok’? [-Werror=implicit-function-declaration]
    927 | yyerror("Warning: positive signed number out of range");
    | ^~~~~~~
    | yyerrok
    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

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)