make[3]: Entering directory `/var/tmp/portage/app-text/tesseract-2.04-r1/work/tesseract-2.04/viewer' x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -ggdb -march=native -c -o scrollview.o scrollview.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -ggdb -march=native -c -o svmnode.o svmnode.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -ggdb -march=native -c -o svutil.o svutil.cpp svutil.cpp: In static member function ‘static void SVSync::StartProcess(const char*, const char*)’: svutil.cpp:76:18: error: ‘fork’ was not declared in this scope svutil.cpp:106:28: error: ‘execvp’ was not declared in this scope svutil.cpp: In member function ‘void SVNetwork::Close()’: svutil.cpp:249:16: error: ‘close’ was not declared in this scope svutil.cpp: In constructor ‘SVNetwork::SVNetwork(const char*, int)’: svutil.cpp:337:14: error: ‘sleep’ was not declared in this scope make[3]: *** [svutil.o] Error 1
Created attachment 310451 [details, diff] tesseract 3.01
Thank you very much, your patch works for me.
+ 04 Jun 2012; Justin Lecher <jlec@gentoo.org> tesseract-2.04-r1.ebuild, + +files/tesseract-2.04-gcc47.patch: + Include fix for gcc47, #413937 +
Patch needed for 3.00 also, please reopen: (Someone give me EDITBUGS for chrissake) Could also be solved by bumping to 3.01 * Package: app-text/tesseract-3.00 * Repository: loki-system-overlay * USE: amd64 elibc_glibc en kernel_linux multilib tiff userland_GNU * FEATURES: installsources sandbox splitdebug userpriv usersandbox >>> Unpacking source... >>> Unpacking tesseract-3.00.tar.gz to /var/tmp/portage/app-text/tesseract-3.00/work >>> Unpacking eng.traineddata.gz to /var/tmp/portage/app-text/tesseract-3.00/work >>> Source unpacked in /var/tmp/portage/app-text/tesseract-3.00/work >>> Preparing source in /var/tmp/portage/app-text/tesseract-3.00/work/tesseract-3.00 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/app-text/tesseract-3.00/work/tesseract-3.00 ... * econf: updating tesseract-3.00/config/config.sub with /usr/share/gnuconfig/config.sub * econf: updating tesseract-3.00/config/config.guess with /usr/share/gnuconfig/config.guess [...] scrollview.cpp: In static member function ‘static void* ScrollView::MessageReceiver(void*)’: scrollview.cpp:103:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] svutil.cpp: In static member function ‘static void SVSync::StartProcess(const char*, const char*)’: svutil.cpp:91:18: error: ‘fork’ was not declared in this scope svutil.cpp:121:28: error: ‘execvp’ was not declared in this scope svutil.cpp: In member function ‘void SVNetwork::Close()’: svutil.cpp:264:16: error: ‘close’ was not declared in this scope svutil.cpp: In constructor ‘SVNetwork::SVNetwork(const char*, int)’: svutil.cpp:419:14: error: ‘sleep’ was not declared in this scope make[3]: *** [svutil.lo] Error 1 make[3]: *** Waiting for unfinished jobs....
Adding Justin since he was the committer
version 3 is not in the tree.