* Package: app-text/unpaper-6.1-r1  * Repository: gentoo  * Upstream: https://github.com/Flameeyes/unpaper/issues  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU  * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking unpaper-6.1.tar.xz to /var/tmp/portage/app-text/unpaper-6.1-r1/work >>> Source unpacked in /var/tmp/portage/app-text/unpaper-6.1-r1/work >>> Preparing source in /var/tmp/portage/app-text/unpaper-6.1-r1/work/unpaper-6.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-text/unpaper-6.1-r1/work/unpaper-6.1 ... ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking --disable-silent-rules --docdir=/usr/share/doc/unpaper-6.1-r1 --htmldir=/usr/share/doc/unpaper-6.1-r1/html --libdir=/usr/lib64 checking for a BSD-compatible install... /usr/lib/portage/python3.8/ebuild-helpers/xattr/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for style of include used by make... GNU checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed checking dependency style of x86_64-pc-linux-gnu-gcc... none checking for x86_64-pc-linux-gnu-gcc option to accept ISO C99... none needed checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for library containing sqrt... -lm checking for x86_64-pc-linux-gnu-pkg-config... /usr/bin/x86_64-pc-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for LIBAV... yes checking for xsltproc... xsltproc checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands >>> Source configured. >>> Compiling source in /var/tmp/portage/app-text/unpaper-6.1-r1/work/unpaper-6.1 ... make -j8 x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -O2 -march=native -fomit-frame-pointer -pipe -c -o unpaper-file.o `test -f 'file.c' || echo './'`file.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -O2 -march=native -fomit-frame-pointer -pipe -c -o unpaper-imageprocess.o `test -f 'imageprocess.c' || echo './'`imageprocess.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -O2 -march=native -fomit-frame-pointer -pipe -c -o unpaper-parse.o `test -f 'parse.c' || echo './'`parse.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -O2 -march=native -fomit-frame-pointer -pipe -c -o unpaper-tools.o `test -f 'tools.c' || echo './'`tools.c x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"unpaper\" -DPACKAGE_TARNAME=\"unpaper\" -DPACKAGE_VERSION=\"6.1\" -DPACKAGE_STRING=\"unpaper\ 6.1\" -DPACKAGE_BUGREPORT=\"https://github.com/Flameeyes/unpaper/issues\" -DPACKAGE_URL=\"https://github.com/Flameeyes/unpaper\" -DPACKAGE=\"unpaper\" -DVERSION=\"6.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE__BOOL=1 -DHAVE_STDBOOL_H=1 -I. -O2 -march=native -fomit-frame-pointer -pipe -c -o unpaper-unpaper.o `test -f 'unpaper.c' || echo './'`unpaper.c file.c: In function ‘loadImage’: file.c:68:22: error: ‘AVStream’ has no member named ‘codec’ 68 | if (s->streams[0]->codec->codec_type != AVMEDIA_TYPE_VIDEO) | ^~ file.c:71:11: warning: implicit declaration of function ‘avcodec_copy_context’; did you mean ‘avcodec_free_context’? []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 71 | ret = avcodec_copy_context(avctx, s->streams[0]->codec); | ^~~~~~~~~~~~~~~~~~~~ | avcodec_free_context file.c:71:52: error: ‘AVStream’ has no member named ‘codec’ 71 | ret = avcodec_copy_context(avctx, s->streams[0]->codec); | ^~ file.c:77:11: warning: assignment discards ‘const’ qualifier from pointer target type []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers]8;;] 77 | codec = avcodec_find_decoder(avctx->codec_id); | ^ file.c:96:11: warning: implicit declaration of function ‘avcodec_decode_video2’; did you mean ‘avcodec_decode_subtitle2’? []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 96 | ret = avcodec_decode_video2(avctx, frame, &got_frame, &pkt); | ^~~~~~~~~~~~~~~~~~~~~ | avcodec_decode_subtitle2 file.c: In function ‘saveImage’: file.c:147:9: warning: assignment discards ‘const’ qualifier from pointer target type []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers]8;;] 147 | fmt = av_guess_format("image2", NULL, NULL); | ^ file.c:159:21: error: ‘AVFormatContext’ has no member named ‘filename’ 159 | snprintf(out_ctx->filename, sizeof(out_ctx->filename), "%s", filename); | ^~ file.c:159:47: error: ‘AVFormatContext’ has no member named ‘filename’ 159 | snprintf(out_ctx->filename, sizeof(out_ctx->filename), "%s", filename); | ^~ file.c:186:11: warning: assignment discards ‘const’ qualifier from pointer target type []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers]8;;] 186 | codec = avcodec_find_encoder(output_codec); | ^ file.c:196:25: error: ‘AVStream’ has no member named ‘codec’ 196 | codec_ctx = video_st->codec; | ^~ file.c:221:5: warning: ‘av_init_packet’ is deprecated []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-declarations-Wdeprecated-declarations]8;;] 221 | av_init_packet(&pkt); | ^~~~~~~~~~~~~~ In file included from /usr/include/libavcodec/avcodec.h:45, from file.c:28: /usr/include/libavcodec/packet.h:506:6: note: declared here 506 | void av_init_packet(AVPacket *pkt); | ^~~~~~~~~~~~~~ file.c:224:11: warning: implicit declaration of function ‘avcodec_encode_video2’; did you mean ‘avcodec_encode_subtitle’? []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 224 | ret = avcodec_encode_video2(video_st->codec, &pkt, image, &got_packet); | ^~~~~~~~~~~~~~~~~~~~~ | avcodec_encode_subtitle file.c:224:41: error: ‘AVStream’ has no member named ‘codec’ 224 | ret = avcodec_encode_video2(video_st->codec, &pkt, image, &got_packet); | ^~ file.c:217:5: warning: ignoring return value of ‘avformat_write_header’ declared with attribute ‘warn_unused_result’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result]8;;] 217 | avformat_write_header(out_ctx, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpaper.c: In function ‘main’: unpaper.c:947:5: warning: implicit declaration of function ‘avcodec_register_all’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 947 | avcodec_register_all(); | ^~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:657: unpaper-file.o] Error 1 make: *** Waiting for unfinished jobs.... unpaper.c:948:5: warning: implicit declaration of function ‘av_register_all’ []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration-Wimplicit-function-declaration]8;;] 948 | av_register_all(); | ^~~~~~~~~~~~~~~ In function ‘applyMasks’, inlined from ‘applyBorder’ at imageprocess.c:1168:9: cc1: warning: ‘applyMasks.part.0’ accessing 1600 bytes in a region of size 16 []8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wstringop-overflow=-Wstringop-overflow=]8;;] imageprocess.c: In function ‘applyBorder’: cc1: note: referencing argument 1 of type ‘int (*)[4]’ imageprocess.c:664:6: note: in a call to function ‘applyMasks.part.0’ 664 | void applyMasks(int mask[MAX_MASKS][EDGES_COUNT], const int maskCount, AVFrame *image) { | ^~~~~~~~~~ * ERROR: app-text/unpaper-6.1-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-text/unpaper-6.1-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-text/unpaper-6.1-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-text/unpaper-6.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/unpaper-6.1-r1/temp/environment'. * Working directory: '/var/tmp/portage/app-text/unpaper-6.1-r1/work/unpaper-6.1' * S: '/var/tmp/portage/app-text/unpaper-6.1-r1/work/unpaper-6.1'