Help Wanted: compile grass4.1.5 on linux
Wang Zhong Min
zhwang at vub.ac.be
Sat Oct 28 08:00:00 EDT 1995
Hi all,
I tried to compile grass on linux system. But fail to complete all
compilation.
Would somebody out of there share the successful experience with me?
Thanks in advance.
Wang
Laboratory of hydrology, VUB
Brussels.
Here is my config file in 'head' directory:
CC = gcc -traditional -traditional-cpp -m486
ARCH = linux
GISBASE = /u2/usr/local/grass4.1
UNIX_BIN = /u2/usr/local/grass4.1/bin
DEFAULT_DATABASE = /u2/usr/local/grass4.1/grass.data
DEFAULT_LOCATION = spearfish
COMPILE_FLAGS = -O2
LDFLAGS = -s
XCFLAGS = -D_NO_PROTO
XLDFLAGS =
XINCPATH =
XMINCPATH =
XLIBPATH = -L/usr/X11/lib
XTLIBPATH = -L/usr/lib
XMLIBPATH = -L/usr/lib
XLIB = -lX11
XTLIB = -lXt
XMLIB = -lXm
XEXTRALIBS = -lXmu
TERMLIB =
CURSES = -lcurses $(TERMLIB)
MATHLIB =
# LIBRULE = ar ruv $@ $?
# LIBRULE = ar ruv $@ $?; ranlib $@
# LIBRULE = ar ruv $@ $?; ar ts $@
# LIBRULE = ar rc $@ `lorder $(OBJ) | tsort`
LIBRULE = ar ruv $@ $?; ranlib $@
USE_TERMIO = -DUSE_TERMIO
USE_MTIO = -DUSE_MTIO
USE_FTIME = -DUSE_FTIME
DIGITFLAGS = -DUSE_SETREUID -DUSE_SETPRIORITY
VECTLIBFLAGS =
GETHOSTNAME = -DGETHOSTNAME_OK
--------------------------end of linux head----------------------------
The compilation error is
GISBASE=/u2/usr/local/grass4.1
SRC=/u2/usr/local/grass4.1/grass4.1.src/src
CMD=/u2/usr/local/grass4.1/grass4.1.src/src/CMD
HEADER=linux
ARCH=linux
####################################################################
GISGEN Sat Oct 28 10:27:21 GMT+0100 1995
GISBASE = /u2/usr/local/grass4.1
SRC = /u2/usr/local/grass4.1/grass4.1.src/src
CMD = /u2/usr/local/grass4.1/grass4.1.src/src/CMD
HEADER = linux
ARCH = linux
/u2/usr/local/grass4.1/man/help created
first step: src/libes/vask
GISGEN: src/libes/vask - Sat Oct 28 10:27:28 GMT+0100 1995
#################################################################
/u2/usr/local/grass4.1/grass4.1.src/src/libes/vask
mkdir OBJ.linux
make -f OBJ.linux/make.rules
rm -f OBJ.linux/V_call.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_call.c
mv V_call.o OBJ.linux/V_call.o
rm -f OBJ.linux/V_clear.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_clear.c
mv V_clear.o OBJ.linux/V_clear.o
rm -f OBJ.linux/V_const.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_const.c
mv V_const.o OBJ.linux/V_const.o
rm -f OBJ.linux/V_exit.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_exit.c
mv V_exit.o OBJ.linux/V_exit.o
rm -f OBJ.linux/V_init.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_init.c
mv V_init.o OBJ.linux/V_init.o
rm -f OBJ.linux/V_line.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_line.c
mv V_line.o OBJ.linux/V_line.o
rm -f OBJ.linux/V_ques.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_ques.c
mv V_ques.o OBJ.linux/V_ques.o
rm -f OBJ.linux/V_error.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_error.c
mv V_error.o OBJ.linux/V_error.o
rm -f OBJ.linux/V_support.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_support.c
V_support.c: In function `V__dump_window':
V_support.c:10: warning: type mismatch with previous external decl
V_support.c:10: warning: extern declaration of `getpwuid' doesn't match global
one
mv V_support.o OBJ.linux/V_support.o
rm -f OBJ.linux/V_acc.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_acc.c
mv V_acc.o OBJ.linux/V_acc.o
rm -f OBJ.linux/V_trim_dec.o
gcc -traditional -traditional-cpp -m486 -O2 -I/u2/usr/local/grass4.1/grass4.1.
src/src/include -DUSE_TERMIO -c V_trim_dec.c
mv V_trim_dec.o OBJ.linux/V_trim_dec.o
/u2/usr/local/grass4.1/bin/gmake4.1 -makeparentdir /u2/usr/local/grass4.1/grass
4.1.src/src/libes/LIB.linux/libvask.a; ar ruv /u2/usr/local/grass4.1/grass4.1.s
rc/src/libes/LIB.linux/libvask.a OBJ.linux/V_call.o OBJ.linux/V_clear.o OBJ.lin
ux/V_const.o OBJ.l
inux/V_exit.o OBJ.linux/V_init.o OBJ.linux/V_line.o OBJ.linux/V_ques.o OBJ.linu
x/V_error.o OBJ.linux/V_support.o OBJ.linux/V_acc.o OBJ.linux/V_trim_dec.o
ar: creating /u2/usr/local/grass4.1/grass4.1.src/src/libes/LIB.linux/libvask.a
c - OBJ.linux/V_call.o
c - OBJ.linux/V_clear.o
c - OBJ.linux/V_const.o
c - OBJ.linux/V_exit.o
c - OBJ.linux/V_init.o
c - OBJ.linux/V_line.o
c - OBJ.linux/V_ques.o
c - OBJ.linux/V_error.o
c - OBJ.linux/V_support.o
c - OBJ.linux/V_acc.o
c - OBJ.linux/V_trim_dec.o
c - OBJ.linux/get_def.o
...........................................................................~
GISGEN: src/libes/gis - Sat Oct 28 10:34:23 GMT+0100 1995
#################################################################
/u2/usr/local/grass4.1/grass4.1.src/src/libes/gis
mkdir OBJ.linux
make -f OBJ.linux/make.rules
rm -f OBJ.linux/adj_cellhd.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c adj_cellhd.c
mv adj_cellhd.o OBJ.linux/adj_cellhd.o
rm -f OBJ.linux/align_window.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c align_window.c
mv align_window.o OBJ.linux/align_window.o
rm -f OBJ.linux/alloc.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c alloc.c
mv alloc.o OBJ.linux/alloc.o
rm -f OBJ.linux/alloc_cell.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c alloc_cell.c
mv alloc_cell.o OBJ.linux/alloc_cell.o
rm -f OBJ.linux/area.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c area.c
mv area.o OBJ.linux/area.o
rm -f OBJ.linux/area_ellipse.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c area_ellipse.c
mv area_ellipse.o OBJ.linux/area_ellipse.o
rm -f OBJ.linux/area_sphere.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c area_sphere.c
mv area_sphere.o OBJ.linux/area_sphere.o
rm -f OBJ.linux/area_poly1.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c area_poly1.c
mv area_poly1.o OBJ.linux/area_poly1.o
rm -f OBJ.linux/area_poly2.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c area_poly2.c
mv area_poly2.o OBJ.linux/area_poly2.o
rm -f OBJ.linux/ascii_chk.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c ascii_chk.c
mv ascii_chk.o OBJ.linux/ascii_chk.o
rm -f OBJ.linux/ask.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c ask.c
ask.c:209: warning: static declaration for `ask' follows non-static
mv ask.o OBJ.linux/ask.o
rm -f OBJ.linux/ask_cell.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c ask_cell.c
ask_cell.c:81: warning: static declaration for `lister' follows non-static
mv ask_cell.o OBJ.linux/ask_cell.o
rm -f OBJ.linux/ask_vctrs.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c ask_vctrs.c
mv ask_vctrs.o OBJ.linux/ask_vctrs.o
rm -f OBJ.linux/auto_mask.o
gcc -traditional -traditional-cpp -m486 -O2 -DGETHOSTNAME_OK -I/u2/usr/local/gr
ass4.1/grass4.1.src/src/include -DUSE_TERMIO -c auto_mask.c
In file included from /usr/include/rpc/types.h:55,
from G.h:3,
from auto_mask.c:16:
/usr/include/stdlib.h:154: conflicting types for `initstate'
/usr/include/stdlib.h:143: previous declaration of `initstate'
/usr/include/stdlib.h:156: conflicting types for `setstate'
/usr/include/stdlib.h:144: previous declaration of `setstate'
/usr/include/stdlib.h:196: conflicting types for `cfree'
/usr/include/stdlib.h:191: previous declaration of `cfree'
make: *** [OBJ.linux/auto_mask.o] Error 1
GISGEN failure at STEP: src/libes/gis
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Wang Zhong Min
Laborarory of Hydrology
Free University Brussels
Pleinlaan 2, 1050 Brussels
Belgium
zhwang at vub.ac.be
More information about the grass-dev
mailing list