patcharats / tesseract-ocr

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

build fails on fc6 #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. after config, make
2. config complains about 'missing' script.
3. make fails with header definition conflict.

What is the expected output? What do you see instead?
section of make output containing error:
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
`/var/opt/onlinedownloads/tesseract/tesseract-1.04/wordrec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/opt/onlinedownloads/tesseract/tesseract-1.04/wordrec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/opt/onlinedownloads/tesseract/tesseract-1.04'
make: *** [all] Error 2

What version of the product are you using? On what operating system?

happens for tes 1.04 and 1.04b.

in FC6 with:
[root@junior tesseract]# izrpm gcc
gcc-c++-4.1.1-51.fc6                          Thu Jan 18 01:51:44 2007
gcc-objc-4.1.1-51.fc6                         Thu Jan 18 01:51:39 2007
gcc-java-4.1.1-51.fc6                         Thu Jan 18 01:51:33 2007
gcc-gnat-4.1.1-51.fc6                         Thu Jan 18 01:51:07 2007
gcc-gfortran-4.1.1-51.fc6                     Thu Jan 18 01:50:48 2007
gcc-4.1.1-51.fc6                              Thu Jan 18 01:46:27 2007
libgcc-4.1.1-51.fc6                           Thu Jan 18 01:36:10 2007

Please provide any additional information below.

i notice that configure complains about missing.
configure output attached.
make output attached.
both the above attachments are for 1.04b build attempt.

Original issue reported on code.google.com by jbra...@gmail.com on 24 Jun 2007 at 11:45

Attachments:

GoogleCodeExporter commented 9 years ago
oops.  this is a dup of 33.  somehow i missed it when i scanend for this 
problem.

Original comment by jbra...@gmail.com on 24 Jun 2007 at 11:51

GoogleCodeExporter commented 9 years ago
in fact, the patches indicated in issue 36 DO, in fact, solve the failed 
compilation
problem for me.

Original comment by jbra...@gmail.com on 25 Jun 2007 at 12:21

GoogleCodeExporter commented 9 years ago
Adding all of config dir to distribution for release 2.0.
C/C++ linkage errors will also be fixed in release 2.0.

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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