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
Created attachment 111096 [details, diff] patch that fixes the build
I confirm this fixes the build.
The patch also fixes it for me on amd64
Patch added to CVS, thanks.