[GRASSLIST:4653] s.surf.krig

Greetings,

I have just started playing with some of the built-in geostats functions in
GRASS53 (CVS snapshot) and it seems that the s.surf.krig program was not
compiled:
----
GRASS:~/grass/pinn > s.surf.krig
bash: s.surf.krig: command not found
----

I see that it exists in the /src/sites/s.surf.krig/ directory in the grass
source tree...

is there anyway to compile this specific program, and install it? I have tried
gmake53 in the s.surf.krig folder, but it gives me a bunch of errors...

thanks in advance for any ideas..

--
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis

On Wed, 27 Oct 2004, Dylan Beaudette wrote:

is there anyway to compile this specific program, and install it? I have tried
gmake53 in the s.surf.krig folder, but it gives me a bunch of errors...

What are the errors?
Did you install blas and lapack before you compiled GRASS (and add those options to the configure script)? They are pre-requisites but I'm sure there are other problems with s.surf.krig.

Paul

On Thursday 28 October 2004 01:17 am, you wrote:

On Wed, 27 Oct 2004, Dylan Beaudette wrote:
> is there anyway to compile this specific program, and install it? I have
> tried gmake53 in the s.surf.krig folder, but it gives me a bunch of
> errors...

What are the errors?
Did you install blas and lapack before you compiled GRASS (and add those
options to the configure script)? They are pre-requisites but I'm sure
there are other problems with s.surf.krig.

Paul

Paul,
thank you for the response. I did not have lapack and blas support compiled
into GRASS. After installing their respective dev packages and recompiling
s.surf.krig is still not compiled.

In order to make a single command, would I use the gmake53 script to make the
file?

thanks,

--
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis

On Thursday 28 October 2004 01:17 am, you wrote:

On Wed, 27 Oct 2004, Dylan Beaudette wrote:
> is there anyway to compile this specific program, and install it? I have
> tried gmake53 in the s.surf.krig folder, but it gives me a bunch of
> errors...

What are the errors?
Did you install blas and lapack before you compiled GRASS (and add those
options to the configure script)? They are pre-requisites but I'm sure
there are other problems with s.surf.krig.

Paul

Paul,

After searching about a bit i found that gmake53 -i in the src directory is
the command to use. However it gives the following errors:

-------------------------------------------------
dylan@basho:~/src/grass53_exp_2004_10_23/src/sites/s.surf.krig$ gmake53 -i
  SRC = /home/dylan/src/grass53_exp_2004_10_23/src
  CMD = /home/dylan/src/grass53_exp_2004_10_23/src/CMD
  UNUSED = /home/dylan/src/grass53_exp_2004_10_23/unused
  HEADER = head.i686-pc-linux-gnu
  ARCH = i686-pc-linux-gnu
  GISBASE = /home/dylan/src/grass53_exp_2004_10_23/dist.i686-pc-linux-gnu
  VERSION = 5.3-cvs 2004
#################################################################
/home/dylan/src/grass53_exp_2004_10_23/src/sites/s.surf.krig
  make -f OBJ.i686-pc-linux-gnu/make.rules

gcc -I/home/dylan/src/grass53_exp_2004_10_23/src/include -g -O2 -c main.c
-o OBJ.i686-pc-linux-gnu/main.o
main.c: In function `main':
main.c:360: error: void value not ignored as it ought to be
main.c:366: error: void value not ignored as it ought to be
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
-------------------------------------------------

I cannot see anysyntax errors at the lines 360 or 366 in main.c ... but then
again i am not a C expert...

--
Dylan Beaudette
Soil Science Graduate Group
University of California at Davis

Dylan Beaudette wrote:

> > is there anyway to compile this specific program, and install it? I have
> > tried gmake53 in the s.surf.krig folder, but it gives me a bunch of
> > errors...
>
> What are the errors?
> Did you install blas and lapack before you compiled GRASS (and add those
> options to the configure script)? They are pre-requisites but I'm sure
> there are other problems with s.surf.krig.

After searching about a bit i found that gmake53 -i in the src directory is
the command to use. However it gives the following errors:

-------------------------------------------------
dylan@basho:~/src/grass53_exp_2004_10_23/src/sites/s.surf.krig$ gmake53 -i

main.c: In function `main':
main.c:360: error: void value not ignored as it ought to be
main.c:366: error: void value not ignored as it ought to be

I cannot see anysyntax errors at the lines 360 or 366 in main.c ... but then
again i am not a C expert...

G_set_null_value() doesn't return anything. I've fixed it in CVS, or
you can apply the attached patch.

However, the nature of the error suggests that s.surf.krig hasn't been
touched for some time, so there may well be other errors.

--
Glynn Clements <glynn@gclements.plus.com>

(attachments)

s.surf.krig.patch (924 Bytes)