Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413937 - =app-text/tesseract-2.04-r1 not compiles with gcc-4.7
Summary: =app-text/tesseract-2.04-r1 not compiles with gcc-4.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2012-04-29 04:28 UTC by David Kredba
Modified: 2012-06-28 09:57 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tesseract 3.01 (tesseract-3.01-gcc47.patch,289 bytes, patch)
2012-04-29 21:12 UTC, Jimmy.Jazz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kredba 2012-04-29 04:28:43 UTC
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
Comment 1 Jimmy.Jazz 2012-04-29 21:12:02 UTC
Created attachment 310451 [details, diff]
tesseract 3.01
Comment 2 David Kredba 2012-05-06 11:10:46 UTC
Thank you very much, your patch works for me.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2012-06-04 11:40:03 UTC
+  04 Jun 2012; Justin Lecher <jlec@gentoo.org> tesseract-2.04-r1.ebuild,
+  +files/tesseract-2.04-gcc47.patch:
+  Include fix for gcc47, #413937
+
Comment 4 crabbed halo ablution 2012-06-28 09:54:06 UTC
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....
Comment 5 crabbed halo ablution 2012-06-28 09:55:03 UTC
Adding Justin since he was the committer
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2012-06-28 09:57:55 UTC
version 3 is not in the tree.