[GRASS5] [patch] minor stuff.

I checked out grass by anonymous CVS this morning (UTC), head branch.

To get it to compile on FreeBSD-CURRENT (i.e., the head branch of
FreeBSD, to become FreeBSD-5.0 in November) I had to make the following
modifications:

Index: src/libes/gis/error.c

RCS file: /home/grass/grassrepository/grass/src/libes/gis/error.c,v
retrieving revision 1.8
diff -r1.8 error.c
64c64
< static int write_error(char *, int,char *,long,char *);
---

static int write_error(char *, int, char *, time_t, char *);

Index: src/libes/gis/gisinit.c

RCS file: /home/grass/grassrepository/grass/src/libes/gis/gisinit.c,v
retrieving revision 1.2
diff -r1.2 gisinit.c
15c15
< #include "version.h"
---

/* #include "version.h" */

With this, 'make' ran to completion. I'm looking into a few nonfatal
errors as well; more about that later.

Magnus
--
Magnus Bäckström <b@etek.chalmers.se> | Electrical & Computer Engineering
Developer | Chalmers University of Technology
Phone +46 31 772 1541 | 412 96 Goteborg
Fax +46 31 772 1561 | SWEDEN

Magnus B{ckstr|m wrote:

To get it to compile on FreeBSD-CURRENT (i.e., the head branch of
FreeBSD, to become FreeBSD-5.0 in November) I had to make the following
modifications:

Index: src/libes/gis/error.c

RCS file: /home/grass/grassrepository/grass/src/libes/gis/error.c,v
retrieving revision 1.8
diff -r1.8 error.c
64c64
< static int write_error(char *, int,char *,long,char *);
---
> static int write_error(char *, int, char *, time_t, char *);

OK, this makes sense.

Index: src/libes/gis/gisinit.c

RCS file: /home/grass/grassrepository/grass/src/libes/gis/gisinit.c,v
retrieving revision 1.2
diff -r1.2 gisinit.c
15c15
< #include "version.h"
---
> /* #include "version.h" */

What's the problem with version.h?

--
Glynn Clements <glynn.clements@virgin.net>

On Mon, 29 Apr 2002, Glynn Clements wrote:

Magnus B{ckstr|m wrote:

[...]

> < #include "version.h"
> ---
> > /* #include "version.h" */

What's the problem with version.h?

Sorry about that; nothing at all is wrong with it now that I've
recompiled completely (i. e. make distclean; configure; make).

Apparently I did something to cause version.h to disappear after
the first build (after I fixed the time_t argument). I got:

] gcc -I/usr/u/b/grass/grass/src/include -g -O2 -I/usr/local/include -c gisinit.c -o OBJ.i386-unknown-freebsd5.0/gisinit.o
] gisinit.c:15: version.h: No such file or directory
] *** Error code 1
]
] Stop in /usr/u/b/grass/grass/src/libes/gis.

Nevermind. :slight_smile:

Magnus