grass421_on_linux:compilation errors.

Dr. Lobo,

Is there some reason you're not using the binaries available for GRASS? I
also use RH 5.1. I downloaded the binaries and was up and running in a
matter of minutes.

Skip Haak

Hi!

I've compiled most of the programs on a
Linux (RedHat 5.1) box, but got some problems with
1. g77 (see below)
Should not gcc take care of F77 ?
It seems that I do not have a g77 compiler, is it not
standard with the Linux distribution?

2. and then another one with run.setup
#################################################################
/usr/local/grass42/src421/src.related/rim
mkdir OBJ.linux
make -f OBJ.linux/make.rules

run.setup
make: run.setup: Command not found
make: *** [rim] Error 127
GISGEN failure at STEP: src.related/rim

Any help?

Thanks

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo@ija.csic.es
http://pangea.ija.csic.es/alobo

#################################################################
/usr/local/grass42/src421/src.contrib/CERL/misc/m.eigensystem
mkdir OBJ.linux
make -f OBJ.linux/make.rules

rm -f OBJ.linux/main.o
g77 -c main.f
make: g77: Command not found
make: *** [OBJ.linux/main.o] Error 127
GISGEN failure at STEP: src.contrib/CERL/misc/m.eigensystem
[root@localhost CMD]# pwd
/usr/local/grass42/src421/src/CMD
[root@localhost CMD]#

#################################################################
/usr/local/grass42/src421/src.garden/answers/src.answers/answers
mkdir OBJ.linux
make -f OBJ.linux/make.rules

make[1]: Entering directory
`/usr/local/grass42/src421/src.garden/answers/src.answers/answers'
rm -f OBJ.linux/answers.o
g77 -c answers.f
make[1]: g77: Command not found
make[1]: *** [OBJ.linux/answers.o] Error 127
make[1]: Leaving directory
`/usr/local/grass42/src421/src.garden/answers/src.answers/answers'
make: *** [all] Error 1
GISGEN failure at STEP: src.garden/answers/src.answers
[root@localhost CMD]#

#################################################################
/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd
mkdir OBJ.linux
make -f OBJ.linux/make.rules

make[1]: Entering directory
`/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd'
rm -f OBJ.linux/direct.o
gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
-DUSE_TERMIO -c direct.c
direct.c: In function `main':
direct.c:77: warning: passing arg 1 of `strcpy' from incompatible pointer
type
direct.c:78: warning: passing arg 1 of `strcpy' from incompatible pointer
type
mv direct.o OBJ.linux/direct.o
rm -f OBJ.linux/cell_open.o
gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
-DUSE_TERMIO -c cell_open.c
mv cell_open.o OBJ.linux/cell_open.o
rm -f OBJ.linux/cell_open_new.o
gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
-DUSE_TERMIO -c cell_open_new.c
mv cell_open_new.o OBJ.linux/cell_open_new.o
gcc -Wl,-s OBJ.linux/direct.o OBJ.linux/cell_open.o
OBJ.linux/cell_open_new.o
/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a -lm -o
/usr/local/grass42/etc/bin/alpha/cmd/r.direct
/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a(gets.o): In
function `G_gets':
gets.o(.text+0x60): the `gets' function is dangerous and should not be used.
rm -f OBJ.linux/direct_for.o
g77 -c direct_for.f
make[1]: g77: Command not found
make[1]: *** [OBJ.linux/direct_for.o] Error 127
make[1]: Leaving directory
`/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd'
make: *** [all] Error 1
GISGEN failure at STEP: src.garden/answers/raster/r.direct

#################################################################
/usr/local/grass42/src421/src.related/rim
mkdir OBJ.linux
make -f OBJ.linux/make.rules

run.setup
make: run.setup: Command not found
make: *** [rim] Error 127
GISGEN failure at STEP: src.related/rim

#################################################################
/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd
mkdir OBJ.linux
make -f OBJ.linux/make.rules

make[2]: Entering directory
`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd'
rm -f OBJ.linux/highlevel.o
gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
-DUSE_TERMIO -c highlevel.c
mv highlevel.o OBJ.linux/highlevel.o
cc -Wl,-s -o /usr/local/grass42/etc/bin/main/cmd/s.db.rim
OBJ.linux/highlevel.o /usr/local/grass42/src421/src/libes/LIB.linux/libgis.a
/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a(parser.o): In
function `interactive_option':
parser.o(.text+0x1331): the `gets' function is dangerous and should not
be used.
rm -f OBJ.linux/s.db.rim.o
g77 -c s.db.rim.f
make[2]: g77: Command not found
make[2]: *** [OBJ.linux/s.db.rim.o] Error 127
make[2]: Leaving directory
`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd'
make[1]: *** [all] Error 1
make[1]: Leaving directory
`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim'
make: *** [all] Error 1
GISGEN failure at STEP: src.garden/grass.rim

Skip,
I obviously can't answer for Dr. Lobo, but I can for myself and probably
many other long-time GRASS users. One of the great strengths of GRASS has
been the ability to utilize contributed programs, which are typically
distributed solely as source code. Although Markus et al have done a
fantastic job at gathering and compiling the latest contributed programs,
it is nice not to have to rely upon someone else's priorities and
schedule. Also, you don't have to be a C programming wizard to make minor
modifications and customizations to GRASS programs. In either case, it is
a fine thing to have the ability to compile. My $.02.
  -Malcolm

On Wed, 16 Dec 1998, Skip Haak wrote:

Dr. Lobo,

Is there some reason you're not using the binaries available for GRASS? I
also use RH 5.1. I downloaded the binaries and was up and running in a
matter of minutes.

Skip Haak

>
>Hi!
>
>I've compiled most of the programs on a
>Linux (RedHat 5.1) box, but got some problems with
>1. g77 (see below)
>Should not gcc take care of F77 ?
>It seems that I do not have a g77 compiler, is it not
>standard with the Linux distribution?
>
>2. and then another one with run.setup
>#################################################################
>/usr/local/grass42/src421/src.related/rim
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>run.setup
>make: run.setup: Command not found
>make: *** [rim] Error 127
>GISGEN failure at STEP: src.related/rim
>
>Any help?
>
>Thanks
>
>Dr. Agustin Lobo
>Instituto de Ciencias de la Tierra (CSIC)
>Lluis Sole Sabaris s/n
>08028 Barcelona SPAIN
>tel 34 93409 5410
>fax 34 93411 0012
>alobo@ija.csic.es
>http://pangea.ija.csic.es/alobo
>
>#################################################################
>/usr/local/grass42/src421/src.contrib/CERL/misc/m.eigensystem
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>rm -f OBJ.linux/main.o
>g77 -c main.f
>make: g77: Command not found
>make: *** [OBJ.linux/main.o] Error 127
>GISGEN failure at STEP: src.contrib/CERL/misc/m.eigensystem
>[root@localhost CMD]# pwd
>/usr/local/grass42/src421/src/CMD
>[root@localhost CMD]#
>
>
>
>#################################################################
>/usr/local/grass42/src421/src.garden/answers/src.answers/answers
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>make[1]: Entering directory
>`/usr/local/grass42/src421/src.garden/answers/src.answers/answers'
>rm -f OBJ.linux/answers.o
>g77 -c answers.f
>make[1]: g77: Command not found
>make[1]: *** [OBJ.linux/answers.o] Error 127
>make[1]: Leaving directory
>`/usr/local/grass42/src421/src.garden/answers/src.answers/answers'
>make: *** [all] Error 1
>GISGEN failure at STEP: src.garden/answers/src.answers
>[root@localhost CMD]#
>
>
>#################################################################
>/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>make[1]: Entering directory
>`/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd'
>rm -f OBJ.linux/direct.o
>gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
>-DUSE_TERMIO -c direct.c
>direct.c: In function `main':
>direct.c:77: warning: passing arg 1 of `strcpy' from incompatible pointer
>type
>direct.c:78: warning: passing arg 1 of `strcpy' from incompatible pointer
>type
>mv direct.o OBJ.linux/direct.o
>rm -f OBJ.linux/cell_open.o
>gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
>-DUSE_TERMIO -c cell_open.c
>mv cell_open.o OBJ.linux/cell_open.o
>rm -f OBJ.linux/cell_open_new.o
>gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
>-DUSE_TERMIO -c cell_open_new.c
>mv cell_open_new.o OBJ.linux/cell_open_new.o
>gcc -Wl,-s OBJ.linux/direct.o OBJ.linux/cell_open.o
>OBJ.linux/cell_open_new.o
>/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a -lm -o
>/usr/local/grass42/etc/bin/alpha/cmd/r.direct
>/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a(gets.o): In
>function `G_gets':
>gets.o(.text+0x60): the `gets' function is dangerous and should not be used.
>rm -f OBJ.linux/direct_for.o
>g77 -c direct_for.f
>make[1]: g77: Command not found
>make[1]: *** [OBJ.linux/direct_for.o] Error 127
>make[1]: Leaving directory
>`/usr/local/grass42/src421/src.garden/answers/raster/r.direct/cmd'
>make: *** [all] Error 1
>GISGEN failure at STEP: src.garden/answers/raster/r.direct
>
>#################################################################
>/usr/local/grass42/src421/src.related/rim
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>run.setup
>make: run.setup: Command not found
>make: *** [rim] Error 127
>GISGEN failure at STEP: src.related/rim
>
>
>
>#################################################################
>/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd
> mkdir OBJ.linux
> make -f OBJ.linux/make.rules
>
>make[2]: Entering directory
>`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd'
>rm -f OBJ.linux/highlevel.o
>gcc -O2 -m486 -DATT_386 -I/usr/local/grass42/src421/src/include
>-DUSE_TERMIO -c highlevel.c
>mv highlevel.o OBJ.linux/highlevel.o
>cc -Wl,-s -o /usr/local/grass42/etc/bin/main/cmd/s.db.rim
>OBJ.linux/highlevel.o /usr/local/grass42/src421/src/libes/LIB.linux/libgis.a
>/usr/local/grass42/src421/src/libes/LIB.linux/libgis.a(parser.o): In
>function `interactive_option':
>parser.o(.text+0x1331): the `gets' function is dangerous and should not
>be used.
>rm -f OBJ.linux/s.db.rim.o
>g77 -c s.db.rim.f
>make[2]: g77: Command not found
>make[2]: *** [OBJ.linux/s.db.rim.o] Error 127
>make[2]: Leaving directory
>`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim/cmd'
>make[1]: *** [all] Error 1
>make[1]: Leaving directory
>`/usr/local/grass42/src421/src.garden/grass.rim/s.db.rim'
>make: *** [all] Error 1
>GISGEN failure at STEP: src.garden/grass.rim
>
>
>
>
>
>
>
>
>

Well, this is another way to go, you are right. Maybe I'm just too used
to compile because the binary distribution used to take
much more space in the former unix (not Linux) versions.
Also, I'm not sure that you get all the contributions
included in the binary distribution.

I've been abroad few days and have not been able to
to try the solutions that people has suggested, I'll keep
you posted.

Thanks list!

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo@ija.csic.es
http://pangea.ija.csic.es/alobo

On Wed, 16 Dec 1998, Skip Haak wrote:

Dr. Lobo,

Is there some reason you're not using the binaries available for GRASS? I
also use RH 5.1. I downloaded the binaries and was up and running in a
matter of minutes.

Skip Haak