[GRASS-dev] g.extension not working on debian - grass 6.4.3svn

Hi All,

I’m having issues in using g.extension and before filing a bug report I should like to know whether am I not seeing anything obviously wrong from my side.

GRASS 6.4.3svn (nc_spm_08):~ > g.extension extension=r.stream.extract operation=add
Fetching <r.stream.extract> from GRASS-Addons SVN (be patient)…
A r.stream.extract/flag.h
A r.stream.extract/streams.c
A r.stream.extract/load.c
A r.stream.extract/del_streams.c
A r.stream.extract/local_proto.h
A r.stream.extract/thin.c
A r.stream.extract/rbtree.c
A r.stream.extract/main.c
A r.stream.extract/close.c
A r.stream.extract/description.html
A r.stream.extract/rbtree.h
A r.stream.extract/flag.c
A r.stream.extract/Makefile
A r.stream.extract/do_astar.c
U r.stream.extract
Checked out revision 54224.
Compiling <r.stream.extract>…
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin' /usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin’
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding commands for target install' /usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old commands for target install’
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include/grass
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/etc
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/driver
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/driver/db
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/fonts
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/close.o -c close.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/del_streams.o -c del_streams.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/do_astar.o -c do_astar.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/flag.o -c flag.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/load.o -c load.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/rbtree.o -c rbtree.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/streams.o -c streams.c
gcc ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -g -Wall -I/usr/local/include -I/usr/local/include -DPACKAGE="“grassmods”" ‘-I/usr/local/grass-6.4.3svn/include’ ‘-I/home/madi/.grass6/addons/include’ ‘-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include’ -o OBJ.x86_64-unknown-linux-gnu/thin.o -c thin.c
gcc ‘-L/usr/local/grass-6.4.3svn/lib’ ‘-L/home/madi/.grass6/addons/lib’ ‘-L/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/lib’ -Wl,–export-dynamic -Wl,-rpath-link,/usr/local/grass-6.4.3svn/lib -L/usr/include/postgresql/libpq/ -o /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract OBJ.x86_64-unknown-linux-gnu/close.o OBJ.x86_64-unknown-linux-gnu/del_streams.o OBJ.x86_64-unknown-linux-gnu/do_astar.o OBJ.x86_64-unknown-linux-gnu/flag.o OBJ.x86_64-unknown-linux-gnu/load.o OBJ.x86_64-unknown-linux-gnu/main.o OBJ.x86_64-unknown-linux-gnu/rbtree.o OBJ.x86_64-unknown-linux-gnu/streams.o OBJ.x86_64-unknown-linux-gnu/thin.o -lgrass_vect.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_rtree.6.4.3svn -lgrass_dgl.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_linkm.6.4.3svn -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -lgeos_c -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lm -lz
make htmlcmd
make[1]: Entering directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract' /usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin’
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin' /usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding commands for target install’
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old commands for target install' make /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html HTMLSRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract make[2]: Entering directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin' /usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin’
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding commands for target install' /usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old commands for target install’
if [ “/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract” != “” ] ; then GISRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/demolocation/.grassrc64 GISBASE=/usr/local/grass-6.4.3svn PATH=“/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin:$PATH” LD_LIBRARY_PATH=“/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin:/usr/local/grass-6.4.3svn/lib:/usr/local/grass-6.4.3svn/lib” LC_ALL=C /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract --html-description < /dev/null | grep -v ‘|’ > r.stream.extract.tmp.html ; true ; fi
/usr/local/grass-6.4.3svn/tools/mkhtml.sh r.stream.extract ; mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html ; /usr/bin/install -c -m 644 r.stream.extract.tmp.html /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html ; for file in *.png *.jpg ; do head -n 1 $file | grep ‘^#!’ > /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html ; fi done 2> /dev/null ; true
make[2]: Leaving directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract' make[1]: Leaving directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
make mancmd
make[1]: Entering directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract' /usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin’
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin' /usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding commands for target install’
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old commands for target install' make /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1 MANSRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html make[2]: Entering directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin' /usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old commands for target /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin’
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding commands for target install' /usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old commands for target install’
mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.3svn sh /usr/local/grass-6.4.3svn/tools/g.html2man /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1 1
make[2]: *** [/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1] Error 127
make[2]: Leaving directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract' make[1]: *** [mancmd] Error 2 make[1]: Leaving directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.

Thanks in advance for any hint…

cheers
madi


Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

On Thu, Dec 6, 2012 at 7:20 PM, Margherita Di Leo
<dileomargherita@gmail.com> wrote:

Hi All,

I'm having issues in using g.extension and before filing a bug report I
should like to know whether am I not seeing anything obviously wrong from my
side.

GRASS 6.4.3svn (nc_spm_08):~ > g.extension extension=r.stream.extract
operation=add

...

/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.3svn sh
/usr/local/grass-6.4.3svn/tools/g.html2man
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1
1
make[2]: ***
[/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1]
Error 127
make[2]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make[1]: *** [mancmd] Error 2
make[1]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.

On Fedora no problem to install it. Only on Ubuntu it fails, always
here

g.html2man ...

Someone with Ubuntu will need to analyze the (already known) problem....

Markus

2012/12/6 Margherita Di Leo <dileomargherita@gmail.com>:

Hi All,

I'm having issues in using g.extension and before filing a bug report I
should like to know whether am I not seeing anything obviously wrong from my
side.

are you sure? it seems that you are trying to install in /usr/local .....
please RTFM.

GRASS 6.4.3svn (nc_spm_08):~ > g.extension extension=r.stream.extract
operation=add
Fetching <r.stream.extract> from GRASS-Addons SVN (be patient)...
A r.stream.extract/flag.h
A r.stream.extract/streams.c
A r.stream.extract/load.c
A r.stream.extract/del_streams.c
A r.stream.extract/local_proto.h
A r.stream.extract/thin.c
A r.stream.extract/rbtree.c
A r.stream.extract/main.c
A r.stream.extract/close.c
A r.stream.extract/description.html
A r.stream.extract/rbtree.h
A r.stream.extract/flag.c
A r.stream.extract/Makefile
A r.stream.extract/do_astar.c
U r.stream.extract
Checked out revision 54224.
Compiling <r.stream.extract>...
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding
commands for target `install'
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include/grass
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/etc
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/driver
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/driver/db
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/fonts
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p
OBJ.x86_64-unknown-linux-gnu
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/close.o -c close.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/del_streams.o -c del_streams.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/do_astar.o -c do_astar.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/flag.o -c flag.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/load.o -c load.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/rbtree.o -c rbtree.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/streams.o -c streams.c
gcc '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-g -Wall -I/usr/local/include -I/usr/local/include
-DPACKAGE=\""grassmods"\" '-I/usr/local/grass-6.4.3svn/include'
'-I/home/madi/.grass6/addons/include'
'-I/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/include'
-o OBJ.x86_64-unknown-linux-gnu/thin.o -c thin.c
gcc '-L/usr/local/grass-6.4.3svn/lib' '-L/home/madi/.grass6/addons/lib'
'-L/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/lib'
-Wl,--export-dynamic -Wl,-rpath-link,/usr/local/grass-6.4.3svn/lib
-L/usr/include/postgresql/libpq/ -o
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract
OBJ.x86_64-unknown-linux-gnu/close.o
OBJ.x86_64-unknown-linux-gnu/del_streams.o
OBJ.x86_64-unknown-linux-gnu/do_astar.o OBJ.x86_64-unknown-linux-gnu/flag.o
OBJ.x86_64-unknown-linux-gnu/load.o OBJ.x86_64-unknown-linux-gnu/main.o
OBJ.x86_64-unknown-linux-gnu/rbtree.o OBJ.x86_64-unknown-linux-gnu/streams.o
OBJ.x86_64-unknown-linux-gnu/thin.o -lgrass_vect.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dgl.6.4.3svn
-lgrass_dig2.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_linkm.6.4.3svn -lgrass_rtree.6.4.3svn -lgrass_dig2.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_rtree.6.4.3svn -lgrass_dgl.6.4.3svn -lgrass_rtree.6.4.3svn
-lgrass_linkm.6.4.3svn -lgrass_dbmiclient.6.4.3svn -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lgrass_gis.6.4.3svn
-lgrass_datetime.6.4.3svn -lz -lgrass_dbmibase.6.4.3svn
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -L/usr/local/lib
-lgdal -L/usr/local/lib -lgeos -lgeos_c -lgrass_dbmiclient.6.4.3svn
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_dbmibase.6.4.3svn -lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz
-lgrass_gis.6.4.3svn -lgrass_datetime.6.4.3svn -lz -lm -lz
make htmlcmd
make[1]: Entering directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding
commands for target `install'
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
make
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html
HTMLSRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract
make[2]: Entering directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding
commands for target `install'
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
if [
"/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract"
!= "" ] ; then
GISRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/demolocation/.grassrc64
GISBASE=/usr/local/grass-6.4.3svn
PATH="/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin:$PATH"
LD_LIBRARY_PATH="/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin:/usr/local/grass-6.4.3svn/lib:/usr/local/grass-6.4.3svn/lib"
LC_ALL=C
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin/r.stream.extract
--html-description < /dev/null | grep -v '</body>\|</html>' >
r.stream.extract.tmp.html ; true ; fi
/usr/local/grass-6.4.3svn/tools/mkhtml.sh r.stream.extract ; mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html
; /usr/bin/install -c -m 644 r.stream.extract.tmp.html
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html
; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' > /dev/null ;
if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html
; fi done 2> /dev/null ; true
make[2]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make[1]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make mancmd
make[1]: Entering directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding
commands for target `install'
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
make
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1
MANSRC=/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html
make[2]: Entering directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:423: warning: overriding
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Grass.make:414: warning: ignoring old
commands for target
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/bin'
/usr/local/grass-6.4.3svn/include/Make/Module.make:25: warning: overriding
commands for target `install'
/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target `install'
mkdir -p
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1
GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.3svn sh
/usr/local/grass-6.4.3svn/tools/g.html2man
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html
/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1
1
make[2]: ***
[/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1]
Error 127
make[2]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make[1]: *** [mancmd] Error 2
make[1]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract'
make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.

Thanks in advance for any hint..

cheers
madi

--
Margherita DI LEO
Postdoctoral Researcher
European Commission - DG JRC
Forest Resources and Climate
I-21020 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

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

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org

It’s still me, and I didn’t solve it yet. I have some update about my trials though.
First of all, I thought to check the permission of the .svn folder, because I am on a Red Hat and I don’t have root permission. .svn folder was owned in fact by root. This behavior looked strange to me, not being I a subversion guru, but I’ve found some possible explanation here [1]. Particularly, "when Subversion is accessing the repository directly off the file system, it uses your file system permissions to access the repository. ". Well, at least i realized that when i checkout, i should svn co --username madi
Then I recompiled, making sure to address the binaries under the /home/somethingelse/bin folder and not under /usr/local, which i don’t own.
OK, last step,

GRASS 6.4.3svn (Europe):~ > g.extension r.stream.extract

Fetching <r.stream.extract> from GRASS-Addons SVN (be patient)…
svn: Can’t change perms of file ‘r.stream.extract/.svn/entries’: Permission denied
ERROR: GRASS Add-on r.stream.extract not found in repository or no network
connection or another problem

what I think is that the problem of g.extension in my case could be that i cannot add --username madi to the automatic svn co done by g.extension, hence i download r.stream.extract as root and of course i can’t write it (compile) as madi afterwards.

Does my speculation make any sense to you?

Thanks,

madi

[1] http://stackoverflow.com/questions/405690/in-subversion-can-i-be-a-user-other-than-my-login-name

On Thu, Dec 6, 2012 at 7:20 PM, Margherita Di Leo <dileomargherita@gmail.com> wrote:

Hi All,

I’m having issues in using g.extension and before filing a bug report I should like to know whether am I not seeing anything obviously wrong from my side.

make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.

Hi,

After having tested g.extension (svn-releasebranch64) with fresh installation both on Debian and on Red Hat, both with default installation and on local installation (bindir and prefix in /home/somewhere), FWIW, the result is that the only way to make it work is to compile grass without installing (make without make install).

madi

On Fri, Dec 7, 2012 at 1:31 PM, Markus Neteler <neteler@osgeo.org> wrote:

On Thu, Dec 6, 2012 at 7:20 PM, Margherita Di Leo
<dileomargherita@gmail.com> wrote:

Hi All,

I’m having issues in using g.extension and before filing a bug report I
should like to know whether am I not seeing anything obviously wrong from my
side.

GRASS 6.4.3svn (nc_spm_08):~ > g.extension extension=r.stream.extract
operation=add

/usr/local/grass-6.4.3svn/include/Make/Rules.make:99: warning: ignoring old
commands for target install' mkdir -p /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1 GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.3svn sh /usr/local/grass-6.4.3svn/tools/g.html2man /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/docs/html/r.stream.extract.html /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1 1 make[2]: *** [/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/dist.x86_64/man/man1/r.stream.extract.1] Error 127 make[2]: Leaving directory /home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
make[1]: *** [mancmd] Error 2
make[1]: Leaving directory
`/home/madi/grassdata/nc_spm_08/testing/.tmp/amylee/3538.0/r.stream.extract’
make: *** [cmd] Error 2
ERROR: Compilation failed, sorry. Please check above error messages.

On Fedora no problem to install it. Only on Ubuntu it fails, always
here

g.html2man …

Someone with Ubuntu will need to analyze the (already known) problem…

Markus

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.

On Sat, Jan 26, 2013 at 2:11 PM, Margherita Di Leo
<dileomargherita@gmail.com> wrote:

Hi,

After having tested g.extension (svn-releasebranch64) with fresh
installation both on Debian and on Red Hat, both with default installation
and on local installation (bindir and prefix in /home/somewhere), FWIW, the
result is that the only way to make it work is to compile grass without
installing (make without make install).

Or debug the problem :slight_smile:

Since g.extension is a script in GRASS 6, you can add " -x" to the
first line and see what it does step by step:

http://grasswiki.osgeo.org/wiki/GRASS_Debugging#Shell_script_debugging

Then you probably see where is goes wrong.

Markus

[hi all, popping my head in for a few minutes but still mostly
offline for another few weeks]

Margherita wrote:

> After having tested g.extension (svn-releasebranch64)
> with fresh installation both on Debian and on Red Hat, both
> with default installation and on local installation (bindir
> and prefix in /home/somewhere), FWIW, the result is that the
> only way to make it work is to compile grass without
> installing (make without make install).

Markus N wrote:
[...]

Then you probably see where is goes wrong.

I'm pretty sure I know what's wrong with the Debian/Ubuntu side,
and will try to explain it.

From the error message posted, it is failing in the g.html2man

step, first check that the svn checkout was done from a totally
clean dir, and that you totally remove any previous install in
the same /usr/local/ install dir.

It's all supposed to work auto-magically now, but it has trouble
if there's left over files from a previous install. The fun is
because we like to make grass work from both the source build
dir and "properly" installed.

Specifically, in the source code, g.html2man script is in a
tools/g.html2man/ subdir, while once "properly" installed to
/usr/local/ (or /usr/ if coming from an official package) the
script just lives in tools/. The magic part of it is the Makefile
install script (or packaging rules as in the case of official
Debian packages) which adjusts the build script to look for the
right file in the right place. If it tries to install the script
but there is already a directory there by the same name, it fails.
And/or if the adjustment to the Make.* file fails it can try to
run g.html2man from the wrong place.

I had hoped that the stale-file problem would just go away with
time as the change was made a long time ago, but it seems to
persist or still have a bug in it. So I think the next step is
to add some gratuitous checks and double-checks to try and
forcibly remove dirs before installing the script, and test if
the script is a script before trying to run it, and adjust the
executable name on the fly. I hadn't done this already as that
stuff needs to happen in the Makefile, and I'd prefer to keep
those as clean as possible. Bourne shell can be ugly enough
without the extra single-line constraints of a Makefile.

note the make install step (or packaging scripts) must also
adjust the location of the include dir. that may work unupdated
as long as the source tree still exists on the drive, but only
by accident and only as long as the source tree is there and in
a similar state.

regards,
Hamish

oh yeah, and if working from the debian/ubuntu packages, make
sure that the grass-dev package is installed if you want to use
g.extension. The packaging rules add a little hint error message
to g.extension telling you to do that if it's not detected, but
it is probably worth many reminders.

Hamish

Hamish,

thank you for your reply. On this installation of debian as far as I remember I never installed the package, I only compiled from source.

Thanks,
madi

On Sun, Jan 27, 2013 at 5:51 AM, Hamish <hamish_b@yahoo.com> wrote:

oh yeah, and if working from the debian/ubuntu packages, make
sure that the grass-dev package is installed if you want to use
g.extension. The packaging rules add a little hint error message
to g.extension telling you to do that if it’s not detected, but
it is probably worth many reminders.

Hamish

Margherita DI LEO
Postdoctoral Researcher

European Commission - DG JRC
Institute for Environment and Sustainability (IES). Unit H03 – FRC
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261

Tel. +39 0332 78 3600
margherita.di-leo@jrc.ec.europa.eu

Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.