[GRASS-dev] i.pca errors compiling GRASS 6.4 release branch

Michael Barton Michael.Barton at asu.edu
Thu May 15 13:50:24 PDT 2014


That seems to have fixed it. I’ve compiled and posted GRASS 6.4.4 now. I won’t get to 6.5 before I leave, but was thinking about stopping support for that version anyway.

Michael
______________________________
C. Michael Barton 
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 	480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
www: 	http://csdc.asu.edu, http://shesc.asu.edu
		http://www.public.asu.edu/~cmbarton

On May 15, 2014, at 10:09 AM, Markus Neteler <neteler at osgeo.org> wrote:

> On Wed, May 14, 2014 at 8:52 PM, Michael Barton <Michael.Barton at asu.edu> wrote:
>> Here is the error message. Any thoughts or does this need a ticket?
>> 
>> Errors in:
>> /Users/cmbarton/Dropbox/GRASS_dropbox/source/grass64_rb/imagery/i.pca
> ...
>> support.c:79:5: error: void function 'write_history' should not return a
>> value [-Wreturn-type]
>>    return G_write_history(outname, &hist);
>>    ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> 1 warning and 1 error generated.
>> make: *** [OBJ.x86_64-apple-darwin13.1.0/support.o] Error 1
> 
> The function is declared void
> 
>    22 static void write_history(int bands, char *outname, double
> **eigmat, double *eigval)
>    23 {
>    24    int i, j;
> ...
> 
> but returns:
>    58  return G_write_history(outname, &hist);
>    59 }
> 
> Attached a proposal for fix by simply deleting the "return" (I
> compared to grass70/imagery/i.pca/support.c).
> 
> Will that help?
> 
> Markus
> <i.pca.diff>



More information about the grass-dev mailing list