GRASS on SGI

Hi,

I am *trying* to build GRASS4.2.1.v18b on our SGI IRIX64 6.4 machine.
But unfortunatly I get stuck. Since I do not have the time (and the
knowledge) to make it, I would like to ask the comunity, if someone who
has dome this can make his/her "release" accessable like Markus Neteler
has done it with the Solaris and Linux version. He told me, that he has
some place on his server to state it. He also provides infornation about
how to make a "grass4.2.1_SGI_bin.tar....".
Or is someone willing to give me (maybe extensive) assistance how to do
that job. (Maybe a "Changes.SGI.html" will result in it, or does exist?)

Regards,

  Stephan

--
------------------------------------------------------------------------

Stephan Eickschen Tel. : +49 (0)251 83-34704
Westfaelische Wilhelms-Universitaet Fax. : +49 (0)251 83-36100
Institute for Geophysics
Research Unit of Physical Glaciology email: eicksch@uni-muenster.de
Corrensstrasse 24
48149 Muenster
Germany

------------------------------------------------------------------------

Hi Stephan

I have compiled the old Grass 4.1 code on an SGI IRIX 5.3 machine, and I have
compiled the old floating point code (the base code for Grass 5.0) on an SGI
IRIX64 6.2 machine in both 32 bit and 64 bit modes. Unfortunately, we do not
have an IRIX 6.4 machine and I have never compiled the Grass 4.2.1 code on an
SGI. However, I saved all the warnings and error messages that I encountered in
the two compiles above, as well as the changes I made to fix them (even the
warnings - I'm picky about clean compiles). Perhaps between the two of us, we
can get your version compiled. I'm willing to look at any errors you get to see
if they correspond to those that I had, and we can also compare header files,
etc if you want.

I suggest we switch this thread to private e-mail unless there are others
trying to compile Grass on an SGI that could benefit by our discussions.

Let me know what you think.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

Justin Hickey wrote:

Hi Stephan

I have compiled the old Grass 4.1 code on an SGI IRIX 5.3 machine, and I have

--------snip-----------

I suggest we switch this thread to private e-mail unless there are others
trying to compile Grass on an SGI that could benefit by our discussions.

Let me know what you think.

Keep it public please.
We are using GRASS 4.2 on an SGI (IRIX 6.2) and may be able to help if we have the
time (difficult at the moment!) never the less we will want to migrate to the
latest release of 4.2 Soon, and any tricks and traps you encounter may be of use to
us.

Cheers,
--
Terry Duell, Senior Mobility Engineer
Army Technology & Engineering Agency
Maribyrnong, Victoria, Australia
ph:61-3-93195837 fax:61-3-93195830

Hi,

Since it seems to be of "public interest" - here we go! Everybody who
would like to follow things going on can look at

  http://earth.uni-muenster.de/~eicksch/GRASS.Changes

This is a file where all ERRORS (no warnings) and ther solutions / work
arounds are placed.

Currently I get stuck at the linking of r.nntool:

ld32: ERROR 33: Unresolved text symbol "ftime" -- 1st referenced by OBJ.sgi/sysdep.o.

Maybe we can "go" a third way between making in private or in public:
What do you think about a small "list" for those who are interested
(because I think, that there might be much "traffic" about it). The
final file GRASS.Changes will be placed on my GRASS page.

Regards,

  Stephan

------------------------------------------------------------------------

Stephan Eickschen Tel. : +49 (0)251 83-34704
Westfaelische Wilhelms-Universitaet Fax. : +49 (0)251 83-36100
Institute for Geophysics
Research Unit of Physical Glaciology email: eicksch@uni-muenster.de
Corrensstrasse 24
48149 Muenster
Germany

------------------------------------------------------------------------

Hi,

I have a compiled version of grass4.2.18 on our Octane running Irix 6.4.
It has only been running for a few weeks and I haven't had time to test
it extensively, but I could package up a binary release for you when I
get back from fieldwork (end of August).

Drop me a line if you are interested, and let me know what you want in
the archive (libraries? source tree?)

Incidentally, it compiled fairly cleanly for me using the SGI compiler
and the -cckr option ... the main problems were with lex (get flex) and
yacc (get bison and use bison -y). I didn't change any source code at
all.

David Wheatley
Department of Archaeology
University of Southampton

PS - My Irix 6.4 lacks the old libgl.a etc (open GL libraries) so that
     SG3D and the iris monitor won't compile any more. Any ideas?

Stephan Eickschen wrote:

Hi,

I am *trying* to build GRASS4.2.1.v18b on our SGI IRIX64 6.4 machine.
But unfortunatly I get stuck. Since I do not have the time (and the
knowledge) to make it, I would like to ask the comunity, if someone
who has dome this can make his/her "release" accessable like Markus
Neteler has done it with the Solaris and Linux version. He told me,
that he has some place on his server to state it. He also provides
infornation about how to make a "grass4.2.1_SGI_bin.tar....".

Hi David,

Incidentally, it compiled fairly cleanly for me using the SGI compiler
and the -cckr option ... the main problems were with lex (get flex) and
yacc (get bison and use bison -y). I didn't change any source code at
all.

I tried it, but I got stuck much earlier with flex and yacc. Or have I
to delete all object files and compile the whole stuff new? I received
linker errors...

I attach the head file, but I think it is o.k....

Regards,

  Stephan

P.S.: I hope to get it all solved. But if not, I really would like to
  ask you for the binaries. You will see the "progress" on one
  of the web pages...

--
------------------------------------------------------------------------

Stephan Eickschen Tel. : +49 (0)251 83-34704
Westfaelische Wilhelms-Universitaet Fax. : +49 (0)251 83-36100
Institute for Geophysics
Research Unit of Physical Glaciology email: eicksch@uni-muenster.de
Corrensstrasse 24
48149 Muenster
Germany

------------------------------------------------------------------------

(attachments)

sgi (1.42 KB)

Stephan,

Your header looks good, but as I said in my post you should get flex and
bison for your system to replace lex and yacc - they are gnu freeware,
and resolve some of the compilation problems. Both compiled without a
warning on my octane with 'make configure;make;make install'

David

PS I use the -w flag to turn off all the warnings!

Header follows:

CC = cc
YACC = bison -y
LEX = flex
#LEXLIB = -lfl
ARCH = sgi

GISBASE = /usr/local/grass42
UNIX_BIN = /usr/local/bin

DEFAULT_DATABASE =
DEFAULT_LOCATION =

COMPILE_FLAGS = -O -cckr -w
LDFLAGS = -s
XCFLAGS = -D_NO_PROTO -DXM_1_1_ BC -Umips
XLDFLAGS = -lPW -ll
XINCPATH =
XMINCPATH =
XLIBPATH =
XTLIBPATH = -L/usr/lib -L/usr/local/lib
XMLIBPATH = -L/usr/lib -L/usr/local/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS = -lPW -ll

TERMLIB = -ltermlib
CURSES = -lcurses $(TERMLIB)
MATHLIB = -lm

# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ)
LIBRULE = ar ruv $@ $?
USE_TERMIO = -DUSE_TERMIO
USE_MTIO = -DUSE_MTIO
USE_FTIME =
DIGITFLAGS = -DUSE_SETREUID -DUSE_SETEUID -DUSE_SETPRIORITY
VECTLIBFLAGS =
GETHOSTNAME = -DGETHOSTNAME_OK
XDRLIB = -lsun

Stephan Eickschen wrote:

Hi David,

> Incidentally, it compiled fairly cleanly for me using the SGI
> compiler and the -cckr option ... the main problems were with lex
> (get flex) and yacc (get bison and use bison -y). I didn't change
> any source code at all.

I tried it, but I got stuck much earlier with flex and yacc. Or have I
to delete all object files and compile the whole stuff new? I received
linker errors...

I attach the head file, but I think it is o.k....

Regards,

        Stephan

P.S.: I hope to get it all solved. But if not, I really would like to
        ask you for the binaries. You will see the "progress" on one
        of the web pages...

--
------------------------------------------------------------------------

Stephan Eickschen Tel. : +49 (0)251 83-34704
Westfaelische Wilhelms-Universitaet Fax. : +49 (0)251 83-36100
Institute for Geophysics
Research Unit of Physical Glaciology email: eicksch@uni-muenster.de
Corrensstrasse 24
48149 Muenster
Germany

------------------------------------------------------------------------

  ------------------------------------------------------------------------
# read documents/instructions/platforms/sgi.html !

CC = cc
FC = f77
LEX = lex
YACC = yacc
#LEX = flex
#YACC = bison -y
ARCH = sgi

#GISBASE = /usr/local/grass
#UNIX_BIN = /usr/local/bin
GISBASE = /exports/sgi/GRASS/grass4.1.2
UNIX_BIN = /exports/sgi/GRASS/grass4.1.2/bin

DEFAULT_DATABASE =
DEFAULT_LOCATION =

COMPILE_FLAGS = -O -cckr
LDFLAGS = -s
XCFLAGS = -D_NO_PROTO -DXM_1_1_ BC -Umips
XLDFLAGS = -lPW
XINCPATH =
XMINCPATH =
XLIBPATH =
XTLIBPATH = -L/usr/lib
XMLIBPATH = -L/usr/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS = -lPW

TERMLIB = -ltermlib
CURSES = -lcurses $(TERMLIB)
MATHLIB = -lm

# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ)
LIBRULE = ar ruv $@ $?
USE_TERMIO = -DUSE_TERMIO
USE_MTIO = -DUSE_MTIO
USE_FTIME =
DIGITFLAGS = -DUSE_SETREUID -DUSE_SETEUID -DUSE_SETPRIORITY
VECTLIBFLAGS =
GETHOSTNAME = -DGETHOSTNAME_OK
XDRLIB = -lsun

Hi David, hi all,

I tried your suggestion using flex and bison. I have removed all the
objects (obj-killer.sh*) and existing binaries (rm -fr $UNIX_BIN) and
started GISGEN.my . Now I get stuck in src/raster/r.binfer (see
attachment).
Does anybody know a solution (either for this problem or the one I
reported yesterday)?

Regards,

  Stephan

(attachments)

GISGEN.error (2.45 KB)

Hi,

I have compiled, on SGI IRIX 6.2 (I could do the same thing
under IRIX 5.3 or 6.4), all the modules of grass_src421v18b
distributed by Markus Neteler.

I had to correct a few things in the source files, and these
corrections could be incorporated in the future source
distribution of GRASS by Markus Neteler.
The correction listing is attached.

The result can be downloaded from:

ftp://ftp.onera.fr/incoming/xtmp/grass42_bin18b_sgi62.tar.gz

If someone wants to distribute it, he is welcome as it will be
removed in 7 days.

Bye

Jacques Bouchard

In src/imagery/i.points:
diff mark.c.orig mark.c
71c71
< int screen();
---

    int Screen();

78c78
< OTHER (screen, &use),
---

      OTHER (Screen, &use),

160c160
< screen (x,y,button)
---

Screen (x,y,button)

In src.alpha/misc/m.in.stf1.db3:
diff m.in.stf1.db.c.orig m.in.stf1.db.c
12a13

#include <string.h>

In src.alpha/misc/m.in.pl94.db3:
diff m.in.pl94.db.c.orig m.in.pl94.db.c
11a12

#include <string.h>

In src.alpha/imagery/i.ortho.photo/photo.2target:
diff mark.c.orig mark.c
93c93
< int screen();
---

    int Screen();

100c100
< OTHER (screen, &use),
---

      OTHER (Screen, &use),

211c211
< screen (x,y,button)
---

Screen (x,y,button)

In src.alpha/imagery/i.vpoints:
diff mark.c.orig mark.c
73c73
< int screen();
---

    int Screen();

80c80
< OTHER (screen, &use),
---

      OTHER (Screen, &use),

162c162
< screen (x,y,button)
---

Screen (x,y,button)

In src.alpha/raster/r.affinity/inter:
diff classify.c.orig classify.c
216c216
< //fprintf(stderr,"xx: %f",xx);
---

/*fprintf(stderr,"xx: %f",xx);*/

221c221
< //fprintf(stderr,"PP: %lf",PP);
---

/*fprintf(stderr,"PP: %lf",PP);*/

('//' is not a standard comment)

In src.alpha/raster/r.nntool:
diff nntool.c.orig nntool.c
192,193d191
< short *seed48();
< long lrand();

In src.contrib/SDTS/mapdev/v.sdts.dq.cp/cmd:
diff main.c.orig main.c
27a28

#include <string.h>

In src.garden/answers/raster/r.fill.dir/cmd:
diff mp.h.orig mp.h
95d94
< void pow ();

In src.garden/grass.rim/v.db.rim/cmd:
diff Gmakefile.orig Gmakefile
3c3
< LDFLAGS = -Bstatic
---

#LDFLAGS = -Bstatic

In src.garden/grass.rim/v.db.rim/inter:
diff Gmakefile.orig Gmakefile
8c8
< LDFLAGS = -Bstatic
---

#LDFLAGS = -Bstatic

In src/CMD/lists:
diff GRASS.orig GRASS
313,314c313,314
< src.alpha/raster/r.tiff
< ##src.alpha/raster/r.tiff.old - r.tiff.old uses local libtiff
---

##src.alpha/raster/r.tiff
src.alpha/raster/r.tiff.old

In src.alpha/raster/r.nntool:
mistral 32# diff common.h.orig common.h
50,51c50,51
< #define UNIX_ATT 0
< #define UNIX_BER 1
---

#define UNIX_ATT 1
#define UNIX_BER 0

I used the GNU make and not the SGI make because at least one
makefile wouldn't work (unfortunately I can't remember which).

And in src/CMD/head, I didn't used the original "sgi" file,
but one that is not very different from "linux":

CC = cc
FC = f77
LEX = lex
YACC = yacc
ARCH = sgi

GISBASE = /usr/local/grass42
UNIX_BIN = /usr/local/bin

DEFAULT_DATABASE =
DEFAULT_LOCATION =

COMPILE_FLAGS = -O2 -cckr
LDFLAGS = -Wl,-s

XCFLAGS = -D_NO_PROTO
XLDFLAGS =
XINCPATH = -I/usr/X11R6/include
XMINCPATH = -I/usr/X11R6/include
XLIBPATH = -L/usr/X11R6/lib
XTLIBPATH = -L/usr/lib
XMLIBPATH = -L/usr/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS =

TERMLIB =
CURSES = -lcurses $(TERMLIB)
MATHLIB = -lm
LIB_MALLOC = -lmalloc

# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ) | tsort`
LIBRULE = ar ruv $@ $?

USE_TERMIO = -DUSE_TERMIO
USE_MTIO = -DUSE_MTIO
USE_FTIME =
DIGITFLAGS = -DUSE_SETREUID -DUSE_SETPRIORITY
VECTLIBFLAGS =
GETHOSTNAME = -DGETHOSTNAME_OK

Hi Jacques,

I downloaded your package - thank you very much! Installation was quiet
easy. I will distribute it from my web page; currently it is
accessible from

  http://earth.uni-muenster.de/~eicksch/ftp/GRASS/releases/

Thank you once again,

  Stephan

--
------------------------------------------------------------------------

Stephan Eickschen Tel. : +49 (0)251 83-34704
Westfaelische Wilhelms-Universitaet Fax. : +49 (0)251 83-36100
Institute for Geophysics
Research Unit of Physical Glaciology email: eicksch@uni-muenster.de
Corrensstrasse 24
48149 Muenster
Germany

------------------------------------------------------------------------