grass421_on_linux:compilation errors.

At 10:47 AM 12/15/98 +0100, you wrote:

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

You might not have a fortran compiler,it might not be in your path, or it
might be in your path but named something else (like f77). The standard
place for it would be /usr/bin or /usr/local/bin.
The distribution you are using might not install with fortran as a standard
option, e.g. in Slackware I have to choose the development tools as an
option in setup.
gcc and g77 are distinct compilers, though g77 musr be compiled into gcc
for compatibility. You might have to get a version of the g77 source code
appropriate to your gcc and then recompile according to the included
installation instructions.