Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129651 - ocrad-0.14 fails to build using gcc-4.1.0
Summary: ocrad-0.14 fails to build using gcc-4.1.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-04-11 21:21 UTC by Conway S. Smith
Modified: 2006-04-13 07:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Conway S. Smith 2006-04-11 21:21:07 UTC
Building ocrad-0.14 using gcc-4.1.0 fails with these errors:
x86_64-pc-linux-gnu-g++  -march=athlon64 -O2 -pipe -c -o bitmap.o bitmap.cc
page_image_layout.cc:34: error: definition of 'void Page_image::find_columns(const Rectangle&, bool)' is not in namespace enclosing 'Page_image'
page_image_layout.cc:110: error: definition of 'void Page_image::find_rows(const Rectangle&, bool)' is not in namespace enclosing 'Page_image'
make: *** [page_image_layout.o] Error 1
make: *** Waiting for unfinished jobs....

The following patch (found at http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg166371.html) fixes this:

--- ocrad-0.14-orig/page_image_layout.cc        2006-01-02 11:31:18.000000000 -0700
+++ ocrad-0.14/page_image_layout.cc     2006-04-11 21:50:48.000000000 -0600
@@ -31,6 +31,8 @@

 void find_rows( const Rectangle & rin, bool recursive ) throw();

+} // end namespace
+
 void Page_image::find_columns( const Rectangle & rin, bool recursive ) throw()
   {
   if( !this->includes( rin ) ) return;
@@ -172,8 +174,6 @@
     }
   }

-} // end namespace
-

 // Creates a reduced Page_image
 //
Comment 1 Martin Ehmsen (RETIRED) gentoo-dev 2006-04-13 07:27:26 UTC
Fixed in CVS.
Thanks for reporting and discovering the patch!