karldergrosse / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
0 stars 0 forks source link

tesseract-1.04b.tar.gz make error on fedora 5 #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. .configure reported no problems 
2. make dies with error below
3.

What is the expected output? What do you see instead?

if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ccstruct -I../ccutil -I../cutil
-I../classify -I../image -I../dict -I../viewer   -g -O2 -MT tface.o -MD -MP
-MF ".deps/tface.Tpo" -c -o tface.o tface.cpp; \
then mv -f ".deps/tface.Tpo" ".deps/tface.Po"; else rm -f
".deps/tface.Tpo"; exit 1; fi
../cutil/globals.h:49: error: previous declaration of ‘char* optarg’ with
‘C++’ linkage
/usr/include/getopt.h:59: error: conflicts with new declaration with ‘C’
linkage
../cutil/globals.h:48: error: previous declaration of ‘int optind’ with
‘C++’ linkage
/usr/include/getopt.h:73: error: conflicts with new declaration with ‘C’
linkage
make[3]: *** [tface.o] Error 1
make[3]: Leaving directory `/home/neumann/Desktop/tesseract-1.04/wordrec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/neumann/Desktop/tesseract-1.04/wordrec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/neumann/Desktop/tesseract-1.04'
make: *** [all] Error 2

What version of the product are you using? On what operating system?
tesseract-1.04b.tar.gz on linux (Fedora 5)

Please provide any additional information below.

I doubt it is relevant: "configure" gave one warning: "`missing' script is
too old or missing"

Original issue reported on code.google.com by walter.n...@gmail.com on 20 May 2007 at 5:14

GoogleCodeExporter commented 9 years ago
I had the same problem on FC6.  The workaround is to use GCC 3.4 instead of 
4.1. 
(Both are available in Fedora Core 6's repositories.)

It may be better to retitle the issue to "compile error with GCC 4.1."

Original comment by ahz...@gmail.com on 25 May 2007 at 8:32

GoogleCodeExporter commented 9 years ago
I haven't tested it, but here's a patch I found here:
http://karlik.nonlogic.org/tesseract/tesseract-1.03-2.src.rpm
via https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=220979

Original comment by ahz...@gmail.com on 25 May 2007 at 9:50

Attachments:

GoogleCodeExporter commented 9 years ago
see issue #36 for the fix, which i just posted

Original comment by z23r...@gmail.com on 16 Jun 2007 at 10:01

GoogleCodeExporter commented 9 years ago
This problem will be fixed properly in v2.0.

Original comment by theraysm...@gmail.com on 7 Jul 2007 at 1:26

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 18 Jul 2007 at 10:27