AmitGorvadiya / tesseract-ocr

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

Ubuntu9.04>g++4.3.3>ld2.19.1>compile error with ld #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/
tesseract-ocr-read-only
2. ./runautoconf
3. ./configure
4. make

What is the expected output? What do you see instead?
I get the following error:
g++ -DHAVE_CONFIG_H -I. -I..  -I../ccutil -I../ccstruct -I../image
-I../viewer -I../ccops -I../dict -I../classify -I../ccmain -I../wordrec
-I../cutil -I../textord   -g -O2 -MT baseapi.o -MD -MP -MF
.deps/baseapi.Tpo -c -o baseapi.o baseapi.cpp
mv -f .deps/baseapi.Tpo .deps/baseapi.Po
ld -r -o libtesseract_api.o baseapi.o \
    ../ccmain/libtesseract_main.a \
    ../textord/libtesseract_textord.a \
    ../wordrec/libtesseract_wordrec.a \
    ../classify/libtesseract_classify.a \
    ../dict/libtesseract_dict.a \
    ../ccstruct/libtesseract_ccstruct.a \
    ../image/libtesseract_image.a \
    ../cutil/libtesseract_cutil.a \
    ../viewer/libtesseract_viewer.a \
    ../ccutil/libtesseract_ccutil.a
ar cru libtesseract_api.a libtesseract_api.o ; ranlib libtesseract_api.a
g++ -DHAVE_CONFIG_H -I. -I..  -I../ccutil -I../ccstruct -I../image
-I../viewer -I../ccops -I../dict -I../classify -I../ccmain -I../wordrec
-I../cutil -I../textord   -g -O2 -MT tesseractmain.o -MD -MP -MF
.deps/tesseractmain.Tpo -c -o tesseractmain.o tesseractmain.cpp
mv -f .deps/tesseractmain.Tpo .deps/tesseractmain.Po
g++  -g -O2   -o tesseract tesseractmain.o libtesseract_api.a -ltiff
-lpthread -ljpeg -lpng -lz  -lm
/usr/bin/ld: error in libtesseract_api.a(libtesseract_api.o)(.eh_frame); no
.eh_frame_hdr table will be created.
make[3]: Leaving directory
`/home/bwakkie/source/svn/tesseract-ocr-read-only/api'
make[2]: Leaving directory
`/home/bwakkie/source/svn/tesseract-ocr-read-only/api'
make[2]: Entering directory `/home/bwakkie/source/svn/tesseract-ocr-read-only'
make[2]: Leaving directory `/home/bwakkie/source/svn/tesseract-ocr-read-only'
make[1]: Leaving directory `/home/bwakkie/source/svn/tesseract-ocr-read-only'

What version of the product are you using? On what operating system?
Linux 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686
GNU/Linux
g++4.3.3
ld2.19.1

Original issue reported on code.google.com by bwak...@gmail.com on 25 Aug 2009 at 10:05

GoogleCodeExporter commented 9 years ago
btw: svn revision 319

Original comment by bwak...@gmail.com on 25 Aug 2009 at 10:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I don't know how to fix this but something to note is that although it says 
'error'
it's actually only a warning and the executable does get created and you can run
'make install' afterwards.

There was a binutils bug related to this but I don't know whether that was the
problem (it was already fixed in a 2.18 version and you are running 2.19, as am 
I).

Original comment by mika.rae...@gmail.com on 20 Nov 2009 at 7:26

GoogleCodeExporter commented 9 years ago
I can confirm observation 3 by mika rento - on Ubuntu 9.04 tesseract 30 pre 
(august
20). The executable works OK.

This thread : http://gcc.gnu.org/ml/gcc-help/2009-04/msg00220.html seems to 
explain
the reason in more detail. Too hairy for me to fix, though :-(

Original comment by theodor....@gmail.com on 2 Feb 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Might be related to issue 268, which is fixed in 3.00, or might be related to 
the
cyclic dependency between textord and classify, which is fixed in 3.01 by 
removal of
compare_blobs.

Original comment by theraysm...@gmail.com on 20 May 2010 at 4:17