Hi all,

openSUSE 12.2 is out today and I am updating the GRASS package for it.

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
[  664s] In file included from mm.cc:29:0:
[  664s] 
/home/abuild/rpmbuild/BUILD/grass-6.4.2/dist.i686-pc-linux-gnu/include/grass/iostream/mm.h:114:17:
 error: from previous declaration 'void* operator new [](std::size_t) throw 
(std::bad_alloc)'
[  664s]
[  664s] ami_stream.cc:46:1: warning: deprecated conversion from string 
constant to 'char*' [-Wwrite-strings]
[  664s] ami_stream.cc:46:1: warning: deprecated conversion from string 
constant to 'char*' [-Wwrite-strings]
[  664s] ami_stream.cc:46:1: warning: deprecated conversion from string 
constant to 'char*' [-Wwrite-strings]
[  664s] mm.cc:310:30: error: declaration of 'void* operator new(size_t)' has a 
different exception specifier
[  664s] In file included from mm.cc:29:0:
[  664s] 
/home/abuild/rpmbuild/BUILD/grass-6.4.2/dist.i686-pc-linux-gnu/include/grass/iostream/mm.h:113:17:
 error: from previous declaration 'void* operator new(std::size_t) throw 
(std::bad_alloc)'
[  664s] mm.cc:362:32: error: declaration of 'void operator delete(void*)' has 
a different exception specifier
[  664s] In file included from mm.cc:29:0:
[  664s] 
/home/abuild/rpmbuild/BUILD/grass-6.4.2/dist.i686-pc-linux-gnu/include/grass/iostream/mm.h:115:15:
 error: from previous declaration 'void operator delete(void*) throw ()'
[  664s] mm.cc:402:34: error: declaration of 'void operator delete [](void*)' 
has a different exception specifier
[  664s] In file included from mm.cc:29:0:
[  664s] 
/home/abuild/rpmbuild/BUILD/grass-6.4.2/dist.i686-pc-linux-gnu/include/grass/iostream/mm.h:116:15:
 error: from previous declaration 'void operator delete [](void*) throw ()'
[  664s] make[3]: *** [OBJ.i686-pc-linux-gnu/mm.o] Error 1
[  664s] make[3]: *** Waiting for unfinished jobs....
[  664s] make[3]: Leaving directory 
`/home/abuild/rpmbuild/BUILD/grass-6.4.2/lib/iostream'
[  664s] make[2]: Leaving directory 
`/home/abuild/rpmbuild/BUILD/grass-6.4.2/lib'
[  664s] make[1]: Leaving directory 
`/home/abuild/rpmbuild/BUILD/grass-6.4.2/lib'
[  664s] make[1]: Entering directory 
`/home/abuild/rpmbuild/BUILD/grass-6.4.2/db'

Would someone like to provide a patch for this error?
Perhaps needs to be fixed upstream too?

Thanks,
Angelos

--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to