Source: k2pdfopt Version: 2.55+ds-3.1 Severity: serious Tags: ftbfs Building on amd64 fails because of implicit-function-declaration and int-conversion:
[ 94%] Building C object willuslib/CMakeFiles/willuslib.dir/ocrtess.c.o cd /home/bgermann/k2pdfopt-2.55+ds/obj-x86_64-linux-gnu/willuslib && /usr/bin/cc -I/home/bgermann/k2pdfopt-2.55+ds/. -I/home/bgermann/k2pdfopt-2.55+ds/obj-x86_64-linux-gnu -I/home/bgermann/k2pdfopt-2.55+ds/willuslib -I/home/bgermann/k2pdfopt-2.55+ds/k2pdfoptlib -I/home/bgermann/k2pdfopt-2.55+ds/willuslib/.. -isystem /include -isystem /usr/include/harfbuzz -isystem /usr/include/leptonica -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/bgermann/k2pdfopt-2.55+ds=. -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/ocrtess.c.o -MF CMakeFiles/willuslib.dir/ocrtess.c.o.d -o CMakeFiles/willuslib.dir/ocrtess.c.o -c /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c /home/bgermann/k2pdfopt-2.55+ds/willuslib/wgs.c:28:1: warning: "/*" within comment [-Wcomment] 28 | /* /home/bgermann/k2pdfopt-2.55+ds/willuslib/wzfile.c: In function ‘archive_extract’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/wzfile.c:150:5: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 150 | system(cmd); | ^~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/wfile.c: In function ‘wfile_check_file_64bit’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/wfile.c:1306:25: warning: ‘%s’ directive writing up to 511 bytes into a region of size 506 [-Wformat-overflow=] 1306 | sprintf(cmd,"file \"%s\" > \"%s\"",fullname,tmpfile); | ^~ ~~~~~~~~ In file included from /usr/include/stdio.h:970, from /home/bgermann/k2pdfopt-2.55+ds/willuslib/willus.h:337, from /home/bgermann/k2pdfopt-2.55+ds/willuslib/wfile.c:25: In function ‘sprintf’, inlined from ‘wfile_check_file_64bit’ at /home/bgermann/k2pdfopt-2.55+ds/willuslib/wfile.c:1306:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output 13 or more bytes (assuming 524) into a destination of size 512 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_set_logfile’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:226:5: error: implicit declaration of function ‘tess_capi_set_logfile’ [-Wimplicit-function-declaration] 226 | tess_capi_set_logfile(filename); | ^~~~~~~~~~~~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_debug_message’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:233:5: error: implicit declaration of function ‘tess_capi_debug_message’; did you mean ‘ocrtess_debug_message’? [-Wimplicit-function-declaration] 233 | tess_capi_debug_message(message); | ^~~~~~~~~~~~~~~~~~~~~~~ | ocrtess_debug_message /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_init’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:365:9: error: implicit declaration of function ‘tess_capi_init’ [-Wimplicit-function-declaration] 365 | api=tess_capi_init(tesspath0,langdef,0,out,initstr,maxlen,status); | ^~~~~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:365:8: error: 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); | ^ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_end’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:632:5: error: implicit declaration of function ‘tess_capi_end’ [-Wimplicit-function-declaration] 632 | tess_capi_end(api); | ^~~~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_ocrwords_from_bmp8’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:794:5: error: implicit declaration of function ‘tess_capi_get_ocr_multiword’ [-Wimplicit-function-declaration] 794 | tess_capi_get_ocr_multiword(api,pix,segmode<0 || segmode>10 ? 6 : segmode, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c: In function ‘ocrtess_from_bmp8’: /home/bgermann/k2pdfopt-2.55+ds/willuslib/ocrtess.c:900:12: error: implicit declaration of function ‘tess_capi_get_ocr’ [-Wimplicit-function-declaration] 900 | status=tess_capi_get_ocr(api,pix,text,maxlen,segmode<0 || segmode>10 ? 6 : segmode,out); | ^~~~~~~~~~~~~~~~~ make[3]: *** [willuslib/CMakeFiles/willuslib.dir/build.make:656: willuslib/CMakeFiles/willuslib.dir/ocrtess.c.o] Error 1