[GRASS5] rst updates
Bob Covill
bcovill at tekmap.ns.ca
Tue Dec 14 15:28:14 EST 2004
Markus / Jaro,
I also had a build problem (RedHat 7.3) with the latest version from CVS.
To get around the problem I moved the structures, etc listed below from
interpf.h into main.c in v.surf.rst/ .
This solved the problem for me and the program seems to run fine. This
is probably not an ideal solution, but hopefully it helps figure out
what is going on.
--
Bob
Markus Neteler wrote:
> On Tue, Dec 14, 2004 at 08:08:44PM +0100, Jaro Hofierka wrote:
>
>>>to make it compile, I have applied the following change in CVS:
>>>
>>>RCS file: /grassrepository/grass51/lib/rst/interp_float/interpf.h,v
>>>retrieving revision 1.5
>>>diff -u -r1.5 interpf.h
>>>--- interpf.h 14 Dec 2004 04:06:07 -0000 1.5
>>>+++ interpf.h 14 Dec 2004 08:54:17 -0000
>>>@@ -16,13 +16,13 @@
>>> double smooth;
>>>};
>>>
>>>- struct line_pnts *Pnts;
>>>- struct line_cats *Cats2;
>>>- dbDriver *driver2;
>>>- dbString sql2;
>>>- struct Map_info Map2;
>>>- struct field_info *ff;
>>>- int count;
>>>+extern struct line_pnts *Pnts;
>>>+extern struct line_cats *Cats2;
>>>+extern dbDriver *driver2;
>>>+extern dbString sql2;
>>>+extern struct Map_info Map2;
>>>+extern struct field_info *ff;
>>>+extern int count;
>>>
>>>
>>>Not sure if it's right but now it compiles.
>>
>>Markus,
>>
>>this is not working on my machine and I'm getting a compile error.
>>Maybe I missed something else, I'll try to fix it.
>
>
> Jaro,
>
> probably the
> #define MAIN
> etc games have to be played? Mhhh.
>
> However, the current CVS compiles on RHEL 3 and Mandrake 10.0 for me.
>
>
>>>My suggestion is to use the following CFLAGS to catch such
>>>problems:
>>>
>>>export CFLAGS='-g -Wall -Werror-implicit-function-declaration -fno-common'
>>
>
> In general these flags are useful to find errors.
> Side effect: It seems to somewhat behave like MacOSX then and uncovers
> potential errors (sort of test emulation).
>
> Maybe my fix was oversimplified, but some modification is needed.
>
>
>>>configure ...
>>>make
>>
>
> Markus
>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
>
>
More information about the grass-dev
mailing list