Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168193 - app-text/tesseract-1.03-r1 fails to compile
Summary: app-text/tesseract-1.03-r1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-02-23 22:41 UTC by Stefan de Konink
Modified: 2007-03-01 14:40 UTC (History)
1 user (show)

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


Attachments
patch that fixes the build (tesseract-1.03.patch,1.78 KB, patch)
2007-02-23 23:35 UTC, David Watzke
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2007-02-23 22:41:17 UTC
then mv -f ".deps/tface.Tpo" ".deps/tface.Po"; else rm -f ".deps/tface.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ccstruct -I../ccutil -I../cutil -I../classify -I../image -I../dict -I../viewer   -march=athlon64 -pipe -msse3 -DNDEBUG -O3 -Wall -MT wordclass.o -MD -MP -MF ".deps/wordclass.Tpo" -c -o wordclass.o wordclass.cpp; \
        then mv -f ".deps/wordclass.Tpo" ".deps/wordclass.Po"; else rm -f ".deps/wordclass.Tpo"; exit 1; fi
../cutil/globals.h:46: error: previous declaration of 'int optind' with 'C++' linkage
../ccutil/getopt.h:23: error: conflicts with new declaration with 'C' linkage
../cutil/globals.h:47: error: previous declaration of 'char* optarg' with 'C++' linkage
../ccutil/getopt.h:24: error: conflicts with new declaration with 'C' linkage
make[3]: *** [tface.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/paludis/app-text/tesseract-1.03-r1/work/tesseract-1.03/wordrec'
make[2]: *** [all-recursive] Error 1

Reproducible: Always

Steps to Reproduce:
1. emerge tesseract




x86_64-pc-linux-gnu-4.1.2/amd64-vanilla
Comment 1 David Watzke 2007-02-23 23:35:39 UTC
Created attachment 111096 [details, diff]
patch that fixes the build
Comment 2 Stefan de Konink 2007-02-23 23:54:18 UTC
I confirm this fixes the build.
Comment 3 James Ausmus 2007-02-28 00:35:06 UTC
The patch also fixes it for me on amd64
Comment 4 Patrick McLean gentoo-dev 2007-03-01 14:40:14 UTC
Patch added to CVS, thanks.