[GRASS-user] Desperate help needed 2: can' t install add-ons in other versions of GRASS.

Sorry for this another desperate message, but I am really having all kinds of
troubles in the worst moment ever!

In order to bypass the problem in my previous post, I installed both GRASS
7.0 from svn checkout https://svn.osgeo.org/grass/grass/trunk grass_trunk
and GRASS 6.4.1 from Synaptic in another computer.

Then I can' t install any add-ons! Since I get all kinds of errors, I will
concentrate in the r.fuzzy.system module since it is the really essential
one.
In GRASS 7.0:
> g.extension extension=r.fuzzy.system
svnurl=http://svn.osgeo.org/grass/grass-addons/

result:
*Fetching 'r.fuzzy.system' from GRASS-Addons SVN (be patient)...
A r.fuzzy.system/flood.map
A r.fuzzy.system/helpers.c
A r.fuzzy.system/local_proto.h
A r.fuzzy.system/flood.rul
A r.fuzzy.system/rule_parser.c
A r.fuzzy.system/main.c
A r.fuzzy.system/system.c
A r.fuzzy.system/description.html
A r.fuzzy.system/f_result.png
A r.fuzzy.system/fuzzylogic.c
A r.fuzzy.system/io.c
A r.fuzzy.system/map_parser.c
A r.fuzzy.system/Makefile
U r.fuzzy.system
Checked out revision 48345.
Compiling 'r.fuzzy.system'...
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
OBJ.x86_64-unknown-linux-gnu
gcc -mtune=nocona -minline-all-stringops -O2 -Wall -D_FILE_OFFSET_BITS=64
-I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include
-D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\"
-I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include -o
OBJ.x86_64-unknown-linux-gnu/fuzzylogic.o -c fuzzylogic.c
In file included from fuzzylogic.c:1:0:
local_proto.h:106:5: error: expected specifier-qualifier-list before
‘RASTER_MAP_TYPE’
make: *** [OBJ.x86_64-unknown-linux-gnu/fuzzylogic.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.*

I have no idea what " local_proto.h:106:5: error: expected
specifier-qualifier-list before ‘RASTER_MAP_TYPE’" means!

I have found the following thread:
http://permalink.gmane.org/gmane.comp.gis.grass.user/40781
but no real answers.

Then I downloaded it using:
svn checkout https://svn.osgeo.org/grass/grass-addons/raster/r.fuzzy.system/
then cd to the r.fuzzy.system folder and, following GRASS wiki
(http://grass.osgeo.org/wiki/Compile_and_Install#Addons):
make MODULE_TOPDIR=/usr/local/grass-7.0.svn

But I get:
*gcc -mtune=nocona -minline-all-stringops -O2 -Wall -D_FILE_OFFSET_BITS=64
-I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include
-D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\"
-I/usr/local/grass-7.0.svn/include -I/usr/local/grass-7.0.svn/include -o
OBJ.x86_64-unknown-linux-gnu/fuzzylogic.o -c fuzzylogic.c
In file included from fuzzylogic.c:1:0:
local_proto.h:106:5: error: expected specifier-qualifier-list before
‘RASTER_MAP_TYPE’
make: *** [OBJ.x86_64-unknown-linux-gnu/fuzzylogic.o] Error 1
*
I won't comment on my tries with GRASS 6.4.1 so that this email does not get
excessively long, but no need to say that I had no success.

I am in a serious need to get any GRASS installation up and running with
add-ons, so I would really appreciate if anyone could help me on this one
(and also my previous post please).

Best regards,
Marcello.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Desperate-help-needed-2-can-t-install-add-ons-in-other-versions-of-GRASS-tp6806040p6806040.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Marcello Gorini wrote:

gcc ... -I/usr/local/grass-7.0.svn/include

local_proto.h:106:5: error: expected specifier-qualifier-list before
‘RASTER_MAP_TYPE’

It looks like you're trying to build a 6.x add-on against 7.0.
Probably because of:

  svnurl=http://svn.osgeo.org/grass/grass-addons/

For 7, hits should be

  svnurl=https://svn.osgeo.org/grass/grass-addons/grass7

Then I downloaded it using:
svn checkout https://svn.osgeo.org/grass/grass-addons/raster/r.fuzzy.system/

Again, this is the 6.x version. 7.0 doesn't have r.fuzzy.system as a
separate add-on; it has a single add-on named r.fuzzy which provides
the modules r.fuzzy.set, r.fuzzy.logic and r.fuzzy.system.

You can have 6.x and 7.0 installed on the same system, but they're
distinct packages. Add-ons written for one won't work with the other.

--
Glynn Clements <glynn@gclements.plus.com>

Glynn Clements wrote:

It looks like you're trying to build a 6.x add-on against 7.0.
Probably because of:

  >>svnurl=http://svn.osgeo.org/grass/grass-addons/

For 7, hits should be

svnurl=https://svn.osgeo.org/grass/grass-addons/grass7

That' s exactly what I am doing, thanks. I tried the correct way and
downloaded r.fuzzy.

Again, this is the 6.x version. 7.0 doesn't have r.fuzzy.system as a
separate add-on; it has a single add-on named r.fuzzy which provides
the modules r.fuzzy.set, r.fuzzy.logic and r.fuzzy.system.

You can have 6.x and 7.0 installed on the same system, but they're
distinct packages. Add-ons written for one won't work with the other.

Thanks for the info. I see that now. I wasn' t able to install it anyway
though, it says " make: *** No rule to make target `install'. Stop" , but
that' s something for another day.

I was advised not to go into grass 7.0 if I wanted a fast result and that's
what I am going to do. Since I eventually managed to get my old 6.4.0svn
version up and running again, I am sticking with it for the time being.

Thank you very much for your help.

Best regards,
Marcello.

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Desperate-help-needed-2-can-t-install-add-ons-in-other-versions-of-GRASS-tp6806040p6809145.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Mon, Sep 19, 2011 at 6:43 PM, Marcello Gorini <gorini@gmail.com> wrote:
...

I was advised not to go into grass 7.0 if I wanted a fast result

... are you sure about this?

and that's
what I am going to do. Since I eventually managed to get my old 6.4.0svn
version up and running again, I am sticking with it for the time being.

6.4.0 is rather old, consider to use 6.4.2svn.

Markus

On Mon, Sep 19, 2011 at 6:43 PM, Marcello Gorini <gorini@gmail.com> wrote:

I was advised not to go into grass 7.0 if I wanted a fast result

On Mon, Sep 19, 2011 at 7:24 PM, Markus Neteler <neteler@osgeo.org> wrote:

… are you sure about this?

Sorry, I must explain better.

I am in a hurry to deliver some work, so the advice was in the sense that it would be easier (and worthier) to try to fix my older installation than trying to get around grass 7. No doubt once I get used to grass 7, things will get faster and better, but I would probably loose some precious time with respect to my work at this moment.

And since my problem with my usual grass was simply due to my own clumsiness, itś already fixed and I can get straight to work.

and that’s
what I am going to do. Since I eventually managed to get my old 6.4.0svn
version up and running again, I am sticking with it for the time being.

6.4.0 is rather old, consider to use 6.4.2svn.

Markus

I sure will. Thanks for the advice and comments.

Cheers,
Marcello.