=> Bootstrap dependency digest>=20010302: found digest-20160304 ===> Skipping vulnerability checks. WARNING: No /var/db/pkg/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'. => Checksum SHA1 OK for tessdata-3.04.00.tar.gz => Checksum RMD160 OK for tessdata-3.04.00.tar.gz => Checksum SHA512 OK for tessdata-3.04.00.tar.gz => Checksum SHA1 OK for tesseract-3.05.00.tar.gz => Checksum RMD160 OK for tesseract-3.05.00.tar.gz => Checksum SHA512 OK for tesseract-3.05.00.tar.gz ===> Installing dependencies for tesseract-3.05.00nb2 ========================================================================== The following variables will affect the build process of this package, tesseract-3.05.00nb2. Their current value is shown below: * JPEG_DEFAULT = jpeg Based on these variables, the following variables have been set: * JPEGBASE (defined, but empty) * JPEG_TYPE = jpeg You may want to abort the process now with CTRL-C and change their value before continuing. Be sure to run `/usr/bin/make clean' after the changes. ========================================================================== => Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6 => Tool dependency automake>=1.9: found automake-1.15nb4 => Tool dependency autoconf>=2.58: found autoconf-2.69nb7 => Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1 => Tool dependency checkperms>=1.1: found checkperms-1.11nb1 => Build dependency renderproto>=0.9.3nb1: found renderproto-0.11.1 => Build dependency kbproto>=1.0.2: found kbproto-1.0.7 => Build dependency xproto>=7.0.9: found xproto-7.0.31 => Build dependency xcb-proto>=1.4: found xcb-proto-1.12 => Build dependency dri2proto>=2.1: found dri2proto-2.8 => Build dependency dri3proto>=1.0: found dri3proto-1.0 => Build dependency presentproto>=1.0: found presentproto-1.1 => Build dependency glproto>=1.4.11: found glproto-1.4.17 => Build dependency damageproto>=1.1.0: found damageproto-1.2.1 => Build dependency fixesproto>=4.0.0: found fixesproto-5.0 => Build dependency xextproto>=7.0.99.1: found xextproto-7.3.0 => Build dependency inputproto>=1.4: found inputproto-2.3.2 => Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1 => Build dependency xf86driproto>=2.0.3: found xf86driproto-2.1.1nb1 => Build dependency cwrappers>=20150314: found cwrappers-20170112 => Full dependency pango>=1.40.3nb2: found pango-1.40.3nb2 => Full dependency cairo>=1.14.2nb1: found cairo-1.14.8 => Full dependency leptonica>=1.74.1nb1: found leptonica-1.74.1nb1 => Full dependency icu>=58.1: found icu-59.1 ===> Overriding tools for tesseract-3.05.00nb2 ===> Extracting for tesseract-3.05.00nb2 tar: Global extended headers posix ustar archive. Extracting as plain files. Following files might be in the wrong directory or have wrong attributes. tar: Global extended headers posix ustar archive. Extracting as plain files. Following files might be in the wrong directory or have wrong attributes. /bin/mv /data/scratch/graphics/tesseract/work/tessdata-3.04.00/* /data/scratch/graphics/tesseract/work/tesseract-3.05.00/tessdata ===> Patching for tesseract-3.05.00nb2 => Applying pkgsrc patches for tesseract-3.05.00nb2 => Verifying /data/pkgsrc/graphics/tesseract/patches/patch-tessdata_Makefile.am => Applying pkgsrc patch /data/pkgsrc/graphics/tesseract/patches/patch-tessdata_Makefile.am Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-tessdata_Makefile.am,v 1.1 2017/02/21 17:51:18 fhajny Exp $ | |Revert a trunk commit that broke install-lang for tesseract<4. | |--- tessdata/Makefile.am.orig 2017-02-16 17:59:48.000000000 +0000 |+++ tessdata/Makefile.am -------------------------- Patching file tessdata/Makefile.am using Plan A... Hunk #1 succeeded at 44. done => Verifying /data/pkgsrc/graphics/tesseract/patches/patch-viewer_scrollview.cpp => Applying pkgsrc patch /data/pkgsrc/graphics/tesseract/patches/patch-viewer_scrollview.cpp Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-viewer_scrollview.cpp,v 1.1 2013/04/29 21:31:12 joerg Exp $ | |--- viewer/scrollview.cpp.orig 2013-04-29 19:49:57.000000000 +0000 |+++ viewer/scrollview.cpp -------------------------- Patching file viewer/scrollview.cpp using Plan A... Hunk #1 succeeded at 26 (offset -13 lines). done ===> Creating toolchain wrappers for tesseract-3.05.00nb2 src=/usr/pkg/lib/pkgconfig/fixesproto.pc dst=/data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig/fixesext.pc; /bin/mkdir -p /data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig; if test -f ${src}; then /bin/ln -sf ${src} ${dst}; fi ===> Configuring for tesseract-3.05.00nb2 cd /data/scratch/graphics/tesseract/work/tesseract-3.05.00 && /usr/bin/env LIBLEPT_HEADERSDIR=/usr/pkg/include FREETYPE_CONFIG=/usr/pkg/bin/freetype-config PTHREAD_CFLAGS=\ -pthread\ PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr LIBTOOL="/data/scratch/graphics/tesseract/work/.cwrapper/bin/libtool " INSTALL_INFO= MAKEINFO=/data/scratch/graphics/tesseract/work/.tools/bin/makeinfo FLEX= BISON= AWK=/usr/bin/awk CAT=/bin/cat ac_cv_path_CAT=/bin/cat CHMOD=/bin/chmod CMP=/usr/bin/cmp CP=/bin/cp DIFF=/usr/bin/diff ECHO=echo ac_cv_path_ECHO=echo EGREP=/usr/bin/egrep ac_cv_path_EGREP=/usr/bin/egrep SETENV=/usr/bin/env ENV_PROG=/usr/bin/env ac_cv_path_ENV=/usr/bin/env FALSE=false ac_cv_path_FALSE=false FIND=/usr/bin/find GREP=/usr/bin/grep ac_cv_path_GREP=/usr/bin/grep HOSTNAME=/bin/hostname LN=/bin/ln LS=/bin/ls MKDIR=/bin/mkdir\ -p MV=/bin/mv RM=/bin/rm RMDIR=/bin/rmdir SED=/usr/bin/sed SORT=/usr/bin/sort TAR=/bin/tar TEST=test ac_cv_path_TEST=test TOUCH=/usr/bin/touch TR=/usr/bin/tr TRUE=true ac_cv_path_TRUE=true PKG_CONFIG=/data/scratch/graphics/tesseract/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig:/data/scratch/graphics/tesseract/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data/scratch/graphics/tesseract/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make gt_cv_func_gnugettext_libintl="yes" gt_cv_func_gnugettext1_libintl="yes" gt_cv_func_gnugettext2_libintl="yes" CWRAPPERS_CONFIG_DIR=/data/scratch/graphics/tesseract/work/.cwrapper/config CC=clang CFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm CXX=clang++ CXXFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/libdrm COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data/scratch/graphics/tesseract/work/.cwrapper/bin:/data/scratch/graphics/tesseract/work/.buildlink/bin:/data/scratch/graphics/tesseract/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/data/scratch/graphics/tesseract/work/.home CWRAPPERS_CONFIG_DIR=/data/scratch/graphics/tesseract/work/.cwrapper/config CONFIG_SHELL=/bin/sh LIBS= ac_given_INSTALL=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users lt_cv_sys_max_cmd_len=262144 /bin/sh ./autogen.sh Running aclocal Running libtoolize rm: config/ltmain.sh: No such file or directory rm: config/ltmain.sh: No such file or directory libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'. libtoolize: copying file 'config/ltmain.sh' rm: m4/libtool.m4: No such file or directory rm: m4/libtool.m4: No such file or directory libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' rm: m4/ltoptions.m4: No such file or directory rm: m4/ltoptions.m4: No such file or directory libtoolize: copying file 'm4/ltoptions.m4' rm: m4/ltsugar.m4: No such file or directory rm: m4/ltsugar.m4: No such file or directory libtoolize: copying file 'm4/ltsugar.m4' rm: m4/ltversion.m4: No such file or directory rm: m4/ltversion.m4: No such file or directory libtoolize: copying file 'm4/ltversion.m4' rm: m4/lt~obsolete.m4: No such file or directory rm: m4/lt~obsolete.m4: No such file or directory libtoolize: copying file 'm4/lt~obsolete.m4' Running autoheader Running automake --add-missing --copy configure.ac:312: installing 'config/compile' configure.ac:87: installing 'config/config.guess' configure.ac:87: installing 'config/config.sub' configure.ac:69: installing 'config/install-sh' configure.ac:69: installing 'config/missing' api/Makefile.am: installing 'config/depcomp' Running autoconf All done. To build the software now, do something like: $ ./configure [--enable-debug] [...other options] => Generating pkg-config file for builtin expat package. => Modifying GNU configure scripts to avoid --recheck => Replacing config-guess with pkgsrc versions => Replacing config-sub with pkgsrc versions => Replacing install-sh with pkgsrc version => Checking for portability problems in extracted files 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 clang++ accepts -g... yes git: not found checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users checking whether build environment is sane... yes checking for a thread-safe mkdir -p... config/install-sh -c -d checking for gawk... /usr/bin/awk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking whether make supports nested variables... yes checking dependency style of clang++... gcc3 checking whether to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64--netbsd checking host system type... x86_64--netbsd checking --enable-graphics argument... yes checking whether to disable cube... no checking --enable-embedded argument... no checking --enable-opencl argument... no checking how to run the C++ preprocessor... clang++ -E checking for grep that handles long lines and -e... (cached) /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep 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 CL/cl.h usability... no checking CL/cl.h presence... no checking for CL/cl.h... no checking OpenCL/cl.h usability... no checking OpenCL/cl.h presence... no checking for OpenCL/cl.h... no checking tiffio.h usability... yes checking tiffio.h presence... yes checking for tiffio.h... yes checking for clGetPlatformIDs in -lOpenCL... no checking --enable-visibility argument... no checking --enable-multiple-libraries argument... no checking whether to use tessdata-prefix... yes checking whether to enable debugging... no checking how to print strings... printf checking for x86_64--netbsd-gcc... clang checking whether we are using the GNU C compiler... yes checking whether clang accepts -g... yes checking for clang option to accept ISO C89... none needed checking whether clang understands -c and -o together... yes checking dependency style of clang... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by clang... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... (cached) 262144 checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64--netbsd-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$ checking for x86_64--netbsd-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64--netbsd-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64--netbsd-strip... no checking for strip... strip checking for x86_64--netbsd-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from clang object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for x86_64--netbsd-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if clang supports -fno-rtti -fno-exceptions... yes checking for clang option to produce PIC... -fPIC -DPIC checking if clang PIC flag -fPIC -DPIC works... yes checking if clang static flag -static works... yes checking if clang supports -c -o file.o... rm: conftest*: No such file or directory yes checking if clang supports -c -o file.o... (cached) yes checking whether the clang linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory no checking dynamic linker characteristics... NetBSD ld.elf_so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... clang++ -E checking for ld used by clang++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... yes checking for clang++ option to produce PIC... -fPIC -DPIC checking if clang++ PIC flag -fPIC -DPIC works... yes checking if clang++ static flag -static works... yes checking if clang++ supports -c -o file.o... rm: conftest*: No such file or directory yes checking if clang++ supports -c -o file.o... (cached) yes checking whether the clang++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... NetBSD ld.elf_so checking how to hardcode library paths into programs... immediate checking whether byte ordering is bigendian... no checking if compiling with clang... yes checking whether compiler supports C++11... yes checking for snprintf... yes checking for library containing sem_init... -lpthread checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking sys/ipc.h usability... yes checking sys/ipc.h presence... yes checking for sys/ipc.h... yes checking sys/shm.h usability... yes checking sys/shm.h presence... yes checking for sys/shm.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking for stdbool.h that conforms to C99... no checking for _Bool... no checking whether #! works in shell scripts... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for getline... yes checking for wchar_t... yes checking for long long int... yes checking for off_t... yes checking for mbstate_t... yes checking for leptonica... yes checking for l_generateCIDataForPdf in -llept... yes checking leptonica headers version >= 1.74... yes checking unicode/uchar.h usability... no checking unicode/uchar.h presence... yes configure: WARNING: unicode/uchar.h: present but cannot be compiled configure: WARNING: unicode/uchar.h: check for missing prerequisite headers? configure: WARNING: unicode/uchar.h: see the Autoconf documentation configure: WARNING: unicode/uchar.h: section "Present But Cannot Be Compiled" configure: WARNING: unicode/uchar.h: proceeding with the compiler's result configure: WARNING: ## ---------------------------------------------------------------- ## configure: WARNING: ## Report this to https://github.com/tesseract-ocr/tesseract/issues ## configure: WARNING: ## ---------------------------------------------------------------- ## checking for unicode/uchar.h... no configure: WARNING: Training tools WILL NOT be built because of missing icu library. configure: WARNING: Try to install libicu-devel package. checking pkg-config is at least version 0.9.0... yes checking for pango... yes checking for cairo... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating tesseract.pc config.status: creating api/Makefile config.status: creating ccmain/Makefile config.status: creating opencl/Makefile config.status: creating ccstruct/Makefile config.status: creating ccutil/Makefile config.status: creating classify/Makefile config.status: creating cube/Makefile config.status: creating cutil/Makefile config.status: creating dict/Makefile config.status: creating neural_networks/runtime/Makefile config.status: creating textord/Makefile config.status: creating viewer/Makefile config.status: creating wordrec/Makefile config.status: creating tessdata/Makefile config.status: creating tessdata/configs/Makefile config.status: creating tessdata/tessconfigs/Makefile config.status: creating testing/Makefile config.status: creating java/Makefile config.status: creating java/com/Makefile config.status: creating java/com/google/Makefile config.status: creating java/com/google/scrollview/Makefile config.status: creating java/com/google/scrollview/events/Makefile config.status: creating java/com/google/scrollview/ui/Makefile config.status: creating doc/Makefile config.status: creating config_auto.h config.status: executing depfiles commands config.status: executing libtool commands rm: libtoolT: No such file or directory Configuration is done. You can now build and install tesseract by running: $ make $ sudo make install You can not build training tools because of missing dependency. Check configure output for details. => Modifying libtool scripts to use pkgsrc libtool => Modifying libtool scripts to use pkgsrc depcomp