GRASS on LINUX: Patch list update, XGRASS related info
Andreas Holz (CIP guests)
asholz at cip.informatik.uni-erlangen.de
Wed Jan 26 12:36:49 EST 1994
Dear GRASS users, Dear LINUX users,
I bought an 20" Sony Monitor to run LINUX and GRASS in December. All I
can say, LINUX is very stable and meanwhile the best (my opinion) choice for a
PC's unix. I'm able to say that (I think), because I have the the direct
comparision between LINUX, SCO and Interactive. My favourite in speed, support
and simplicity is LINUX!!
So I like to mail the up-to-date patch report for GRASS and XGRASS
on LINUX.
Used LINUX system:
Kernel 99pl14 without patch (stable!)
libc 4.4.4 (stable!)
gcc2.4.5
Motif 1.2.2
XFree86 2.0
Here the patch list:
Changed:
src/mapdev/r.binfer/main.c
yylineno not supported by FLEX
modify the code, so that yylineno is not used
src/raster/r.combine/gis_lxcl.l
yyinput() renamed to input()
:218 definition of yywrap deleted
src/raster/r.mapcalc/polish/pol.y
definition of malloc and realloc commented out
src/raster/r.weight/inter/gis_lxcl.l
added #undef yywrap
src.alpha/imagery/i.ortho.photo/photo.2image/zoom_box.c
as in gis.faq
src.alpha/imagery/i.ortho.photo/photo.2target/zoom_box.c
as in gis.faq
src/display/devices/XDRIVER/SWITCHER.c
setpgrp to be called with no argument
src/mapdev/v.digit/set_key.c
should be compiled without -DUSE_TERMIO
#include <sgtty.h> should be changed into <bsd/sgtty.h>
to link -lbsd should be added
(thanks to Andy Burnett at CERL)
src.contrib:
SCS/raster/r.gif/cmd/gifreade.c
gis.h missing, substituted with absolute path to gis.h in
$GISBASE/src/include/gis.h
xgrass:
/usr/local/grass4.1/src/xgrass/libes/Xgd/bwimage.c line 93
exit() without returnvalue
corrected into exit(0)
why are sun or sgi cc compilers accepting exit() and
linux gcc not (even with -traditional) ?
/usr/local/grass4.1/src/xgrass/libes/Xgi/Interact.c
add #include <Xm/PrimitiveP.h> directly after
#include <Xm/Xm.h>
/usr/local/grass4.1/src/xgrass/menu/xc.error.c and xc.modify.c
link error: zzlineno undefined
extern int zzlineno; substituted with
int zzlineno=0;
/usr/local/grass4.1/src/xgrass/menu/error.c
link error: yylineno undefined
extern int yylineno; substituted with
int yylineno=0;
(missing yylineno implementation in flex!)
/usr/local/grass4.1/src/xgrass/display/grammar.y
line 8:
erase 'extern double atof()', atof will not be
used in grammar.c
several other lines:
remove the third argument from all 'strod( ..)'
occurences
/usr/local/grass4.1/src/xgrass/display/gridgag.c
line 285:
erase 'extern double atof', atof is a standard
implementation in libc
/usr/local/grass4.1/src/xgrass/display/main.c
link error: yylineno undefined
extern int yylineno; substituted with
int yylineno=0;
(two occurences!)
/usr/local/grass4.1/src/xgrass/display/Gmakefile
'YYY= -ll ... ' must be removed, because there is no
libl.a on Linux.
libXpm.a will be searched after libX11.a, but there is a
symbol 'XAllocColor' accessed from create.o(libXpm.a), which
is defined in libX11, so -lX11 should be searched after libXpm
again!
/usr/local/grass4.1/src/xgrass/xdigit/map_ask.c
79,80:
too few arguments to function `strncmp'
'strncmp' substituted with 'strcmp'
Result of compilation:
XGRASS:
xgrass4.1 is not running
xdigit is not running
pixmap: the biteditor is translated to the right side
Installation of update_package1
/usr/local/grass4.1/src/general/gis
compilation hangs at
sh ./version.sed "4.1" "Spring 1993" gis_intro.tx > /usr/local/...
/usr/local/grass4.1/src/xgrass/display/Gmakefile
'YYY= -ll ... ' must be removed, because there is no
libl.a on Linux.
libXpm.a will be searched after libX11.a, but there is a
symbol 'XAllocColor' accessed from create.o(libXpm.a), which
is defined in libX11, so -lX11 should be searched after libXpm
again (ore only after)!
XGRASS:
xgrass4.1 is not running
xdigit is not running
pixmap: the biteditor is translated to the right side
Installation of update_package2:
well done, no changes in the problems with XGRASS
Installation of update_package3:
well done, no changes in the problems with XGRASS
ps.map works, fine!
To the problems of xdigit:
There was a little bit traffic in the GRASS-list about the problems
of compatibility of MOTIF 1.1 and MOTIF >= 1.2 the last few weeks.
I debugged XDIGIT into the module xcolor.c, which causes the main trouble. But
there is no understandable reason for me why xcolor.c does not work, but similar
call to the involved functions like in panel.c and make_custommenu.c are ok!?!? I'm
not sure, if this is really a problem of Motif, because the main bug lies on the call
of XtCreateManagedWidget, which is not a Motif function!
Other programs running in problems on LINUX:
I'm currently trying s.surf.tps, which seems to have some problems on LINUX. For crosstesting
I will run it on am INDIGO, wait for my results.
If You don't have roundabout 100Mb of free disk space to compile grass and xgrass, take it from topquark.cecer.army.mil!
I will manage this list of patches for GRASS on LINUX in the future, please send me Your reports!
------------------------------------------------------------------------
Dipl. Geol. Andreas Holz email: asholz at cip.informatik.uni-erlangen.de
Institut fuer Geologie und Mineralogie
Schlossgarten 5
91054 Erlangen
GERMANY
More information about the grass-user
mailing list