GRASS on SGI
David Wheatley
D.W.Wheatley at soton.ac.uk
Thu Jul 30 13:28:22 EDT 1998
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 at 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
More information about the grass-user
mailing list