• Bug#1066717: k2pdfopt: FTBFS: ocrtess.c:180:9: error: implicit declarat

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 15:00:02 2024
    Source: k2pdfopt
    Version: 2.55+ds-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):
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/ocrwords.c.o -MF CMakeFiles/willuslib.dir/ocrwords.c.o.d -o CMakeFiles/willuslib.dir/ocrwords.c.o -c /<<PKGBUILDDIR>>/willuslib/ocrwords.c
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_lang_by_index’:
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:180:9: error: implicit declaration of function ‘ocrtess_lang_default’ [-Werror=implicit-function-declaration]
    180 | ocrtess_lang_default(NULL,NULL,0,langdef,31,NULL,0,0);
    | ^~~~~~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_set_logfile’: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:226:5: error: implicit declaration of function ‘tess_capi_set_logfile’ [-Werror=implicit-function-declaration]
    226 | tess_capi_set_logfile(filename);
    | ^~~~~~~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_debug_message’:
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:233:5: error: implicit declaration of function ‘tess_capi_debug_message’; did you mean ‘ocrtess_debug_message’? [-Werror=implicit-function-declaration]
    233 | tess_capi_debug_message(message);
    | ^~~~~~~~~~~~~~~~~~~~~~~
    | ocrtess_debug_message
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_lang_exists’: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:244:5: error: implicit declaration of function ‘ocrtess_datapath’ [-Werror=implicit-function-declaration]
    244 | ocrtess_datapath(tesspath0,datadir,MAXFILENAMELEN-1);
    | ^~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_lang_get_from_github’:
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:263:5: error: implicit declaration of function ‘ocrtess_url’ [-Werror=implicit-function-declaration]
    263 | ocrtess_url(url,255,fast);
    | ^~~~~~~~~~~
    [ 60%] Linking C static library libk2pdfoptlib.a
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/k2pdfoptlib && /usr/bin/cmake -P CMakeFiles/k2pdfoptlib.dir/cmake_clean_target.cmake
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:265:5: error: implicit declaration of function ‘ocrtess_baselang’ [-Werror=implicit-function-declaration]
    265 | ocrtess_baselang(urlbasename,lang,127);
    | ^~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: At top level: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:300:6: warning: conflicting types for ‘ocrtess_baselang’; have ‘void(char *, char *, int)’
    300 | void ocrtess_baselang(char *dst,char *src,int maxlen)
    | ^~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:265:5: note: previous implicit declaration of ‘ocrtess_baselang’ with type ‘void(char *, char *, int)’
    265 | ocrtess_baselang(urlbasename,lang,127);
    | ^~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:315:6: warning: conflicting types for ‘ocrtess_url’; have ‘void(char *, int, int)’
    315 | void ocrtess_url(char *url0,int maxlen,int fast)
    | ^~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:263:5: note: previous implicit declaration of ‘ocrtess_url’ with type ‘void(char *, int, int)’
    263 | ocrtess_url(url,255,fast);
    | ^~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_init’: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:365:9: error: implicit declaration of function ‘tess_capi_init’ [-Werror=implicit-function-declaration]
    365 | api=tess_capi_init(tesspath0,langdef,0,out,initstr,maxlen,status);
    | ^~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:365:8: warning: assignment to ‘void *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
    365 | api=tess_capi_init(tesspath0,langdef,0,out,initstr,maxlen,status);
    | ^
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: At top level: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:370:6: warning: conflicting types for ‘ocrtess_lang_default’; have ‘void(char *, char *, int, char *, int, char *, int, int)’
    370 | void ocrtess_lang_default(char *datadir,char *tesspath,int maxtesspathlen,
    | ^~~~~~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:180:9: note: previous implicit declaration of ‘ocrtess_lang_default’ with type ‘void(char *, char *, int, char *, int, char *, int, int)’
    180 | ocrtess_lang_default(NULL,NULL,0,langdef,31,NULL,0,0);
    | ^~~~~~~~~~~~~~~~~~~~ /<<PKGBUILDDIR>>/willuslib/ocrtess.c:497:6: warning: conflicting types for ‘ocrtess_datapath’; have ‘void(char *, char *, int)’
    497 | void ocrtess_datapath(char *datapath,char *suggested,int maxlen)
    | ^~~~~~~~~~~~~~~~
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:244:5: note: previous implicit declaration of ‘ocrtess_datapath’ with type ‘void(char *, char *, int)’
    244 | ocrtess_datapath(tesspath0,datadir,MAXFILENAMELEN-1);
    | ^~~~~~~~~~~~~~~~
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/k2pdfoptlib && /usr/bin/cmake -E cmake_link_script CMakeFiles/k2pdfoptlib.dir/link.txt --verbose=1
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_end’: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:632:5: error: implicit declaration of function ‘tess_capi_end’ [-Werror=implicit-function-declaration]
    632 | tess_capi_end(api);
    | ^~~~~~~~~~~~~
    [ 61%] Building C object willuslib/CMakeFiles/willuslib.dir/pdffonts.c.o
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/pdffonts.c.o -MF CMakeFiles/willuslib.dir/pdffonts.c.o.d -o CMakeFiles/willuslib.dir/pdffonts.c.o -c /<<PKGBUILDDIR>>/willuslib/pdffonts.c
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_ocrwords_from_bmp8’:
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c:794:5: error: implicit declaration of function ‘tess_capi_get_ocr_multiword’ [-Werror=implicit-function-declaration]
    794 | tess_capi_get_ocr_multiword(api,pix,segmode<0 || segmode>10 ? 6 : segmode,
    | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/bin/ar qc libk2pdfoptlib.a CMakeFiles/k2pdfoptlib.dir/bmpregion.c.o CMakeFiles/k2pdfoptlib.dir/devprofile.c.o CMakeFiles/k2pdfoptlib.dir/k2bmp.c.o CMakeFiles/k2pdfoptlib.dir/k2file.c.o CMakeFiles/k2pdfoptlib.dir/k2files.c.o CMakeFiles/k2pdfoptlib.
    dir/k2gui_cbox.c.o CMakeFiles/k2pdfoptlib.dir/k2gui_osdep.c.o CMakeFiles/k2pdfoptlib.dir/k2mark.c.o CMakeFiles/k2pdfoptlib.dir/k2master.c.o CMakeFiles/k2pdfoptlib.dir/k2mem.c.o CMakeFiles/k2pdfoptlib.dir/k2menu.c.o CMakeFiles/k2pdfoptlib.dir/k2ocr.c.o
    CMakeFiles/k2pdfoptlib.dir/k2parsecmd.c.o CMakeFiles/k2pdfoptlib.dir/k2proc.c.o CMakeFiles/k2pdfoptlib.dir/k2publish.c.o CMakeFiles/k2pdfoptlib.dir/k2settings.c.o CMakeFiles/k2pdfoptlib.dir/k2settings2cmd.c.o CMakeFiles/k2pdfoptlib.dir/k2sys.c.o
    CMakeFiles/k2pdfoptlib.dir/k2usage.c.o CMakeFiles/k2pdfoptlib.dir/k2version.c.o CMakeFiles/k2pdfoptlib.dir/pagelist.c.o CMakeFiles/k2pdfoptlib.dir/pageregions.c.o CMakeFiles/k2pdfoptlib.dir/textrows.c.o CMakeFiles/k2pdfoptlib.dir/textwords.c.o CMakeFiles/
    k2pdfoptlib.dir/userinput.c.o CMakeFiles/k2pdfoptlib.dir/wrapbmp.c.o
    /<<PKGBUILDDIR>>/willuslib/ocrtess.c: In function ‘ocrtess_from_bmp8’: /<<PKGBUILDDIR>>/willuslib/ocrtess.c:900:12: error: implicit declaration of function ‘tess_capi_get_ocr’ [-Werror=implicit-function-declaration]
    900 | status=tess_capi_get_ocr(api,pix,text,maxlen,segmode<0 || segmode>10 ? 6 : segmode,out);
    | ^~~~~~~~~~~~~~~~~
    [ 63%] Building C object willuslib/CMakeFiles/willuslib.dir/pdfwrite.c.o
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/pdfwrite.c.o -MF CMakeFiles/willuslib.dir/pdfwrite.c.o.d -o CMakeFiles/willuslib.dir/pdfwrite.c.o -c /<<PKGBUILDDIR>>/willuslib/pdfwrite.c
    /usr/bin/ranlib libk2pdfoptlib.a
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
    [ 63%] Built target k2pdfoptlib
    [ 64%] Building C object willuslib/CMakeFiles/willuslib.dir/point2d.c.o
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/point2d.c.o -MF CMakeFiles/willuslib.dir/point2d.c.o.d -o CMakeFiles/willuslib.dir/point2d.c.o -c /<<PKGBUILDDIR>>/willuslib/point2d.c
    [ 65%] Building C object willuslib/CMakeFiles/willuslib.dir/render.c.o
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/render.c.o -MF CMakeFiles/willuslib.dir/render.c.o.d -o CMakeFiles/willuslib.dir/render.c.o -c /<<PKGBUILDDIR>>/willuslib/render.c
    /<<PKGBUILDDIR>>/willuslib/pdfwrite.c: In function ‘decodecheck’: /<<PKGBUILDDIR>>/willuslib/pdfwrite.c:1048:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    1048 | fread(inbuf,1,np+extra,f);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    [ 67%] Building C object willuslib/CMakeFiles/willuslib.dir/strbuf.c.o
    cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/<<PKGBUILDDIR>>/. -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/willuslib -I/<<PKGBUILDDIR>>/k2pdfoptlib -I/<<PKGBUILDDIR>>/willuslib/.. -isystem /usr/include/leptonica -
    g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wdate-time -D_FORTIFY_SOURCE=2 -DUSE_CMAKE -Wall -MD -MT
    willuslib/CMakeFiles/willuslib.dir/strbuf.c.o -MF CMakeFiles/willuslib.dir/strbuf.c.o.d -o CMakeFiles/willuslib.dir/strbuf.c.o -c /<<PKGBUILDDIR>>/willuslib/strbuf.c
    cc1: some warnings being treated as errors
    make[3]: *** [willuslib/CMakeFiles/willuslib.dir/build.make:289: willuslib/CMakeFiles/willuslib.dir/ocrtess.c.o] Error 1


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/k2pdfopt_2.55+ds-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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Thu Mar 21 16:10:01 2024
    This is a multi-part message in MIME format...

    Your message dated Thu, 21 Mar 2024 15:06:43 +0000
    with message-id <E1rnK0B-00CJFY-GN@fasolo.debian.org>
    and subject line Bug#1066717: fixed in k2pdfopt 2.55+ds-2
    has caused the Debian Bug report #1066717,
    regarding k2pdfopt: FTBFS: ocrtess.c:180:9: error: implicit declaration of function ‘ocrtess_lang_default’ [-Werror=implicit-function-declaration]
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1066717: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066717
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 13 Mar 2024 13:55:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-106.1 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
    FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,
    UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 191; hammy, 150; neutral, 236; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <lucas@debian.org>
    Received: from stravinsky.debian.org ([2