<div dir="ltr"><div><div><div><div><div><div><div><div>Thank you for that answer. I am not sure if I am<br>able to understand the problem in all details resp. to solve the problem.<br></div>So does these changes in the keywords-list (in the main.c?) involve lots of<br>
</div>work or are just minor changes necessary?<br></div><div><br></div>I am just asking as I want to use the r.fuzzy tool in GRASS7<br></div>and need to adapt a single code line (in local_proto: #define STACKMAX
      50 (line 21))<br>which makes a the selfcompilation necessary.<br><br></div>So maybe it is possible to update the r.fuzzy tools to be successfully compiled<br></div>with GRASS7.<br><br></div>Thanks,<br><br></div>/Johannes<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 13, 2013 at 2:05 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
Johannes Radinger wrote:<br>
<br>
> I just tried to build GRASS7 on Ubuntu with the r.stream.* and r.fuzzy<br>
> add-ons in the scripts-folder (the subdirs have been added to the makefile<br>
> in the scripts folder).<br>
> When running make I face a compilation error in the /man subfolder:<br>
<br>
</div><div class="im">> VERSION_NUMBER=7.0.svn VERSION_DATE=2013 python ./build_keywords.py<br>
> /usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/docs/html<br>
> Traceback (most recent call last):<br>
>   File "./build_keywords.py", line 38, in <module><br>
>     key = "%s%s" % (key[0].upper(), key[1:])<br>
> IndexError: string index out of range<br>
<br>
</div><div class="im">> Any idea where to look for the problem?<br>
<br>
</div>It appears that one of the HTML file has a keyword list which begins<br>
or ends with a comma.<br>
<br>
The KEYWORDS section is in the portion of the HTML file is generated<br>
by running the module with the --html-description flag.<br>
<br>
AFAICT, the problem is due to r.fuzzy.* not having been updated in<br>
response to r38061, which changed the "keywords" field of struct<br>
GModule from a single string (char*) to a list of strings (char**).<br>
<br>
Since that change, assigning a string to module->keywords is an error<br>
(although it will only result in a warning during compilation).<br>
Keywords must be set with either G_add_keyword() or G_set_keywords().<br>
<br>
As a result, I'd expect those modules to crash when run with any of<br>
the options which output usage information (--help,<br>
--html-description, --interface-description, etc).<br>
<br>
This kind of "bit rot" is an inherent problem with having modules in a<br>
separate "add-ons" repository. FWIW, r38061 was made almost 4 years<br>
ago (2009-06-24).<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></span></blockquote></div><br></div>