Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Apr 14, 2015 · 5 comments
Closed

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

GoogleCodeExporter opened this issue Apr 14, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

see issue #36 for the fix, which i just posted

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

@GoogleCodeExporter
Copy link
Author

This problem will be fixed properly in v2.0.

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

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant