Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558226 - sci-geosciences/grass-6.4.2 - error: redeclaration of ‘AMI_STREAM<T>::AMI_STREAM(const char*, AMI_stream_type)’ may not have default arguments
Summary: sci-geosciences/grass-6.4.2 - error: redeclaration of ‘AMI_STREAM<T>::AMI_STR...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam Jorna (wraeth)
Depends on:
Reported: 2015-08-20 08:18 UTC by Martin von Gagern
Modified: 2015-10-19 11:24 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2015-08-20 08:18:18 UTC
Recompiling grass with gcc 4.9.3, I see this error message:

c++ -I/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include  -march=amdfam10 -O2 -ggdb -pipe   -D_FILE_OFFSET_BITS=64   -DPACKAGE=\""grasslibs"\"  -I/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include -o OBJ.x86_64-pc-linux-gnu/mm.o -c
In file included from
/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/ami_stream.h:252:48: error: redeclaration of ‘AMI_STREAM<T>::AMI_STREAM(const char*, AMI_stream_type)’ may not have default arguments [-fpermissive]
      AMI_stream_type st = AMI_READ_WRITE_STREAM) {
/var/tmp/portage/sci-geosciences/grass-6.4.2/work/grass-6.4.2/dist.x86_64-pc-linux-gnu/include/grass/iostream/ami_stream.h:549:71: error: redeclaration of ‘AMI_err AMI_STREAM<T>::read_array(T*, off_t, off_t*)’ may not have default arguments [-fpermissive]
 AMI_err AMI_STREAM<T>::read_array(T *data, off_t len, off_t *lenp=NULL) {

This looks like an issue which has already been addressed upstream. See and I suggest we include that fix in the grass patchset, or bump grass to a version which includes that fix. The latest 6.x is 6.4.5, while the current stable is 7.0.0.
Comment 1 Martin von Gagern 2015-08-20 09:08:48 UTC
There is a second, similar issue:

ux-gnu/include/grass/iostream/embuffer.h:1123:61: error: redeclaration of ‘long 
int em_buffer<T, Key>::insert(AMI_STREAM<T>*, long int)’ may not have default ar
guments [-fpermissive]
 long em_buffer<T,Key>::insert(AMI_STREAM<T>* str, long bos=0) {
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-08-22 19:23:12 UTC
Please attach emerge --info and the full build log.
Comment 3 Sam Jorna (wraeth) gentoo-dev 2015-10-19 11:24:08 UTC
Closing as OBSOLETE - sci-geosciences/grass-7.0.1 has been added to the tree as per bug 514514 and subsequently revbumped. Note that sci-geosciences/grass:6 has been masked and will be removed from the tree in the coming weeks.