Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270916 - sci-geosciences/grass-6.3.0 fails to build with gcc-4.4
Summary: sci-geosciences/grass-6.3.0 fails to build with gcc-4.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Steve Arnold
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4 250850
  Show dependency tree
 
Reported: 2009-05-23 09:25 UTC by Jiří Moravec
Modified: 2009-06-08 04:56 UTC (History)
2 users (show)

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


Attachments
patch proposed as solution of same problem with building grass-6.4.0-rc4 (grass-6.3.0-gcc44.patch,387 bytes, patch)
2009-05-23 09:28 UTC, Jiří Moravec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...