[GRASS-user] GRASS Extensions Manager -- compiling difficulties

Hi,

I need the add-on package "r.dn2ref.ast" to convert DN to radiance. I am
using the grass64 binary version, to get the package I need the Grass
Extensions Manager. So I downloaded the file 'gem-1.0.3.tar.gz' from
http://www.uni-kiel.de/ufg/ufg_BerDucke.htm
http://www.uni-kiel.de/ufg/ufg_BerDucke.htm unpacked it with tar -xzvf
gem-1.0.3.tar.gz and then used the make command to compile. I got the
following messages:
gcc -c at_exit_funcs.c -g -Wall -pedantic
-Werror-implicit-function-declaration -fno-common
gcc -c error.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
gcc -c tools.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
tools.c: In Funktion »basename«:
tools.c:54: Warnung: Vergleich mit Zeichenkettenliteral führt zu
unspezifiziertem Verhalten
tools.c: In Funktion »nc_fgets_html«:
tools.c:362: Warnung: berechneter Wert ist unbenutzt
tools.c:374: Warnung: berechneter Wert ist unbenutzt
tools.c:380: Warnung: berechneter Wert ist unbenutzt
tools.c:386: Warnung: berechneter Wert ist unbenutzt
tools.c:389: Warnung: berechneter Wert ist unbenutzt
tools.c:394: Warnung: berechneter Wert ist unbenutzt
tools.c:397: Warnung: berechneter Wert ist unbenutzt
tools.c: In Funktion »dump_plain«:
tools.c:559: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
tools.c: In Funktion »dump_html«:
tools.c:598: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
gcc -c reg_deps.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
reg_deps.c: In Funktion »register_extension«:
reg_deps.c:168: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
reg_deps.c: In Funktion »deregister_extension«:
reg_deps.c:285: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
gcc -c reg_entries.c -g -Wall -pedantic
-Werror-implicit-function-declaration -fno-common
reg_entries.c: In Funktion »register_entries_gisman«:
reg_entries.c:355: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
reg_entries.c: In Funktion »deregister_entries_gisman«:
reg_entries.c:579: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
reg_entries.c: In Funktion »restore_entries_gisman«:
reg_entries.c:808: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
gcc -c reg_html.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
reg_html.c: In Funktion »register_html«:
reg_html.c:232: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
reg_html.c: In Funktion »deregister_html«:
reg_html.c:325: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
reg_html.c: In Funktion »restore_html«:
reg_html.c:496: Warnung: Format ist kein Zeichenkettenliteral, und keine
Formatargumente
gcc -c actions.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
gcc -c main.c -g -Wall -pedantic -Werror-implicit-function-declaration
-fno-common
gcc at_exit_funcs.o error.o tools.o reg_deps.o reg_entries.o reg_html.o
actions.o main.o -o gem6 -g -Wall -pedantic
-Werror-implicit-function-declaration -fno-common
tools.o: In function `dump_plain':
/home/stefan/Desktop/gem-1.03/tools.c:546: warning: the use of `mktemp' is
dangerous, better use `mkstemp' or `mkdtemp'

Trying to use the gem6 command, which has now emerged in the /gem-1.03
folder, gives me the answer: bash: gem6: command not found

I have no idea how to cope with that, as I do not know anything about
compiling. I am rather a user than a developer. So it would be great to get
some help on that. Thanks in advance!
--
View this message in context: http://n2.nabble.com/GRASS-Extensions-Manager----compiling-difficulties-tp3034620p3034620.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Sat, Jun 6, 2009 at 9:55 AM, sela<stefansylla@gmx.de> wrote:

Hi,

I need the add-on package "r.dn2ref.ast" to convert DN to radiance. I am
using the grass64 binary version, to get the package I need the Grass
Extensions Manager.

I think that we have simplified the procedure, no more need to
use GEM (maybe I am wrong).
Please try - adapt path to your binary installation:

cd r.dn2ref.ast/
make MODULE_TOPDIR=/usr/local/grass-6.4.0svn
make MODULE_TOPDIR=/usr/local/grass-6.4.0svn install

This should suffice.
Please try and report.

Markus

PS: Note to developers: Doing so, I get this error:
/bin/sh: /usr/local/grass-6.4.0svn/tools/mkhtml.sh: No such file or directory

The script needs to be added to Makefile to be installed?