Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 129651

Summary: ocrad-0.14 fails to build using gcc-4.1.0
Product: Gentoo Linux Reporter: Conway S. Smith <beolach+gb>
Component: [OLD] GCC PortingAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    

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!