Summary: | app-text/tesseract-2.04 build fails with gcc 4.4.0: 'snprintf' was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jose daLuz <jdaluz> |
Component: | New packages | Assignee: | Patrick McLean <chutzpah> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | esigra, reuben-gentoo-bugzilla |
Priority: | High | ||
Version: | 2008.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 249226 | ||
Attachments: |
Output of paludis --info tesseract
Patch allowing appt-text/tesseract-2.03 to compile with gcc 4.4 Patch respect to current app-text/tesseract-2.03 ebuild |
Description
Jose daLuz
2009-05-10 21:25:24 UTC
Created attachment 190874 [details]
Output of paludis --info tesseract
This is perhaps the same issue: http://code.google.com/p/tesseract-ocr/issues/detail?id=201 And this one: http://code.google.com/p/tesseract-ocr/issues/detail?id=177&can=1&q=gcc Possibly fixed with this: http://code.google.com/p/tesseract-ocr/source/detail?r=212 That's in the same source file as this error, I don't know if it's the correct fix. Created attachment 190952 [details, diff]
Patch allowing appt-text/tesseract-2.03 to compile with gcc 4.4
Created attachment 190954 [details, diff]
Patch respect to current app-text/tesseract-2.03 ebuild
+ 11 May 2009; Samuli Suominen <ssuominen@gentoo.org> tesseract-2.03.ebuild, + +files/tesseract-2.03-gcc44.patch: + Fix compile with GCC 4.4 wrt #269320, thanks to Jose daLuz and Victor + Ostorga. Same issue with 2.04: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -march=native -O2 -pipe -ggdb -MT scrollview.o -MD -MP -MF .deps/scrollview.Tpo -c -o scrollview.o scrollview.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -march=native -O2 -pipe -ggdb -MT svmnode.o -MD -MP -MF .deps/svmnode.Tpo -c -o svmnode.o svmnode.cpp x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -march=native -O2 -pipe -ggdb -MT svutil.o -MD -MP -MF .deps/svutil.Tpo -c -o svutil.o svutil.cpp svutil.cpp: In constructor 'SVNetwork::SVNetwork(const char*, int)': svutil.cpp:323: error: 'snprintf' was not declared in this scope make[3]: *** [svutil.o] Error 1 Fixed in portage. |