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

Bug 270916

Summary: sci-geosciences/grass-6.3.0 fails to build with gcc-4.4
Product: Gentoo Linux Reporter: Jiří Moravec <qjim>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, sci-geosciences
Priority: High    
Version: 2008.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 249226, 250850    
Attachments: patch proposed as solution of same problem with building grass-6.4.0-rc4

Description Jiří Moravec 2009-05-23 09:25:09 UTC
Grass 6.3.0 is failing to build with gcc-4.4. This was reported as debian bug #526204 against 6.4.0~rc4-1 and patch was proposed by Martin Michlmayr. In current grass-6.4.0-SVN this problem was resolved the same way.

build:
...
Output.h: In static member function 'static void Output::Begin()':
Output.h:17: error: 'stderr' was not declared in this scope
Output.h:17: error: 'fprintf' was not declared in this scope
Output.h: In static member function 'static void Output::Print(std::string)':
Output.h:24: error: 'stderr' was not declared in this scope
Output.h:24: error: 'fprintf' was not declared in this scope
Output.h: In static member function 'static void Output::Repeat(int, char)':
Output.h:31: error: 'stderr' was not declared in this scope
Output.h:31: error: 'fprintf' was not declared in this scope
Output.h: In static member function 'static void Output::End()':
Output.h:40: error: 'stderr' was not declared in this scope
Output.h:40: error: 'fprintf' was not declared in this scope
...

Reproducible: Always

Steps to Reproduce:
1. build grass-6.3.0 with gcc-4.4/glibc-2.10.1

Actual Results:  
Errors in:
/var/tmp/portage/sci-geosciences/grass-6.3.0/work/grass-6.3.0/imagery/i.atcorr
--
In case of errors please change into the directory with error and run 'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.


Expected Results:  
grass build without error
Comment 1 Jiří Moravec 2009-05-23 09:28:13 UTC
Created attachment 192171 [details, diff]
patch proposed as solution of same problem with building grass-6.4.0-rc4
Comment 2 Steve Arnold gentoo-dev 2009-06-08 04:56:36 UTC
Now updated in portage; thanks for the patch...