printf ' ' | fink --no-use-binary-dist --yes rebuild ocrad 2>&1 The package 'ocrad' will be built without being installed. Reading build dependency for ocrad-0.21-1... Reading dependency for ocrad-0.21-1... Reading dependency for ocrad-dev-0.21-1... Reading build conflict for ocrad-0.21-1... The following package will be rebuilt: ocrad Setting runtime build-lock... dpkg-deb -b /sw/build.build/root-fink-buildlock-ocrad-0.21-1 /sw/build.build dpkg-deb: building package `fink-buildlock-ocrad-0.21-1' in `/sw/build.build/fink-buildlock-ocrad-0.21-1_2014.07.29-16.03.51_darwin-x86_64.deb'. Installing build-lock package... /sw/bin/dpkg-lockwait -i /sw/build.build/fink-buildlock-ocrad-0.21-1_2014.07.29-16.03.51_darwin-x86_64.deb Selecting previously deselected package fink-buildlock-ocrad-0.21-1. (Reading database ... 4296 files and directories currently installed.) Unpacking fink-buildlock-ocrad-0.21-1 (from .../fink-buildlock-ocrad-0.21-1_2014.07.29-16.03.51_darwin-x86_64.deb) ... Setting up fink-buildlock-ocrad-0.21-1 (2014.07.29-16.03.51) ... sudo -u fink-bld [ENV] sh -c /tmp/fink.b0nBf env LANG=C LC_ALL=C /sw/bin/tar --no-same-owner --no-same-permissions -xvf /sw/src/ocrad-0.21.tar.gz ocrad-0.21/AUTHORS ocrad-0.21/COPYING ocrad-0.21/ChangeLog ocrad-0.21/INSTALL ocrad-0.21/Makefile.in ocrad-0.21/NEWS ocrad-0.21/README ocrad-0.21/TODO ocrad-0.21/configure ocrad-0.21/doc/ocrad.1 ocrad-0.21/doc/ocrad.info ocrad-0.21/doc/ocrad.texinfo ocrad-0.21/testsuite/check.sh ocrad-0.21/testsuite/test.pbm ocrad-0.21/testsuite/test.txt ocrad-0.21/ocrad.png ocrad-0.21/arg_parser.h ocrad-0.21/bitmap.h ocrad-0.21/blob.h ocrad-0.21/character.h ocrad-0.21/common.h ocrad-0.21/feats.h ocrad-0.21/mask.h ocrad-0.21/ocradlib.h ocrad-0.21/page_image.h ocrad-0.21/profile.h ocrad-0.21/rational.h ocrad-0.21/rectangle.h ocrad-0.21/textblock.h ocrad-0.21/textline.h ocrad-0.21/textpage.h ocrad-0.21/track.h ocrad-0.21/ucs.h ocrad-0.21/arg_parser.cc ocrad-0.21/bitmap.cc ocrad-0.21/blob.cc ocrad-0.21/character.cc ocrad-0.21/character_r11.cc ocrad-0.21/character_r12.cc ocrad-0.21/character_r13.cc ocrad-0.21/common.cc ocrad-0.21/feats.cc ocrad-0.21/feats_test0.cc ocrad-0.21/feats_test1.cc ocrad-0.21/main.cc ocrad-0.21/mask.cc ocrad-0.21/ocradlib.cc ocrad-0.21/ocrcheck.cc ocrad-0.21/page_image.cc ocrad-0.21/page_image_io.cc ocrad-0.21/profile.cc ocrad-0.21/rational.cc ocrad-0.21/rectangle.cc ocrad-0.21/textblock.cc ocrad-0.21/textline.cc ocrad-0.21/textline_r2.cc ocrad-0.21/textpage.cc ocrad-0.21/track.cc ocrad-0.21/ucs.cc sudo -u fink-bld [ENV] sh -c /tmp/fink.PSKFn ./configure --prefix=/sw creating config.status creating Makefile VPATH = . prefix = /sw exec_prefix = $(prefix) bindir = $(exec_prefix)/bin datadir = $(prefix)/share includedir = ${prefix}/include infodir = $(datadir)/info libdir = ${exec_prefix}/lib mandir = $(datadir)/man sysconfdir = $(prefix)/etc CXX = g++ CPPFLAGS = CXXFLAGS = -Wall -W -O2 LDFLAGS = OK. Now you can run make. make g++ -Wall -W -O2 -c -o common.o common.cc g++ -Wall -W -O2 -c -o mask.o mask.cc g++ -Wall -W -O2 -c -o rational.o rational.cc g++ -Wall -W -O2 -c -o rectangle.o rectangle.cc g++ -Wall -W -O2 -c -o track.o track.cc g++ -Wall -W -O2 -c -o ucs.o ucs.cc g++ -Wall -W -O2 -c -o page_image.o page_image.cc g++ -Wall -W -O2 -c -o page_image_io.o page_image_io.cc g++ -Wall -W -O2 -c -o bitmap.o bitmap.cc g++ -Wall -W -O2 -c -o blob.o blob.cc track.cc:46:21: error: no member named 'abs' in namespace 'std' 10 * std::abs( r1.bottom() - r2.bottom() ) <= mean_height ) ~~~~~^ track.cc:48:32: error: no member named 'abs' in namespace 'std' if( val > 1 && 10 * std::abs( r1.vcenter() - r2.vcenter() ) <= mean_height ) ~~~~~^ track.cc:51:30: error: no member named 'abs' in namespace 'std' if( val > 2 && 10 * std::abs( r1.vcenter() - r2.vcenter() ) <= mean_height ) ~~~~~^ g++ -Wall -W -O2 -c -o profile.o profile.cc 3 errors generated. make: *** [track.o] Error 1 make: *** Waiting for unfinished jobs.... profile.cc:253:33: error: no member named 'abs' in namespace 'std' if( d > dmax ) { if( std::abs( d ) <= noise ) ++dmax; else dmax = d; } ~~~~~^ profile.cc:618:18: error: no member named 'abs' in namespace 'std' int d = std::abs( ( dx * data[i] ) - y ); ~~~~~^ 2 errors generated. make: *** [profile.o] Error 1 blob.cc:167:37: warning: illegal character encoding in string literal [-Winvalid-source-encoding] else std::fprintf( outfile, " " ); ^~~~ 1 warning generated. ### execution of make failed, exit code 2 ### execution of /tmp/fink.PSKFn failed, exit code 2 Removing runtime build-lock... Removing build-lock package... /sw/bin/dpkg-lockwait -r fink-buildlock-ocrad-0.21-1 (Reading database ... 4297 files and directories currently installed.) Removing fink-buildlock-ocrad-0.21-1 ... Failed: phase compiling: ocrad-0.21-1 failed Before reporting any errors, please run "fink selfupdate" and try again. Also try using "fink configure" to set your maximum build jobs to 1 and attempt to build the package again. If you continue to have issues, please check to see if the FAQ on Fink's website solves the problem. If not, ask on one (not both, please) of these mailing lists: The Fink Users List The Fink Beginners List , with a carbon copy to the maintainer: Daniel Johnson Note that this is preferable to emailing just the maintainer directly, since most fink package maintainers do not have access to all possible hardware and software configurations. Please try to include the complete error message in your report. This generally consists of a compiler line starting with e.g. "gcc" or "g++" followed by the actual error output from the compiler. Also include the following system information: Package manager version: 0.37.0 Distribution version: selfupdate-cvs Thu Jul 24 20:26:24 2014, 10.9, x86_64 Trees: local/main stable/main Xcode.app: 5.1.1 Xcode command-line tools: 6.0.0.0.1.1405597879 Max. Fink build jobs: 8