[GRASS-dev] build error against GCC 4.7

Markus Neteler neteler at osgeo.org
Wed Sep 5 15:08:58 PDT 2012


On Wed, Sep 5, 2012 at 11:32 PM, Angelos Tzotsos <gcpp.kalxas at gmail.com> wrote:
> Hi all,
>
> openSUSE 12.2 is out today and I am updating the GRASS package for it.

[it is the GRASS 6.4.2 version according to the log file]

> There is an error during build with GCC 4.7 and I wanted to check here
> before I make a custom patch.
>
> https://build.opensuse.org/package/rawlog?arch=i586&package=grass&project=Application%3AGeo&repository=openSUSE_12.2
>
> The error:
>
> [  664s] ami_stream.cc:46:1: warning: deprecated conversion from string
> constant to 'char*' [-Wwrite-strings]mm.cc: In function 'void* operator new
> [](size_t)':
> [  664s] mm.cc:259:32: error: declaration of 'void* operator new [](size_t)'
> has a different exception specifier

This has been fixed for the upcoming 6.4.3:
http://trac.osgeo.org/grass/changeset/51638/grass/branches/releasebranch_6_4/lib/iostream/mm.cc

> Would someone like to provide a patch for this error?

See the fix in r51638.

Markus


More information about the grass-dev mailing list