[GRASS-user] Geomorphons and extension manager

To whom it may concern,

I am trying to use extension manager in grass to install geomrphons. However, I am having trouble with the extension manager(error below). I emailed the geomorphon developer Jarek Jasiewicz(See Below) and he suggest I contact the GRASS-Users forum.

Please advise,

-Robert Brown

From: JASIEWICZ Jarosław <jarekj@amu.edu.pl>

Subject: Re: Geomorphons

Date: February 26, 2013 11:56:20 AM EST

To: brown782@purdue.edu

On 02/26/2013 05:21 PM, brown782@purdue.edu wrote:

Dear Sir,

I use grass on my Mac OS X 10.8.2. I have been trying to compile grass to install the add-on Geomorphons. However, it is overwhelming to compile grass from source code as I have very little experience compiling programs. When I saw that your Geomorphons algorithm was part of the grass 7.0 add-ons I was pleased and tried to use the extension manager to add it to my grass add-on repository, however, I get an several errors which I have posted below. Any Suggestions?
#####################

g.extension extension=r.geomorphon/ operation=add
Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)…
Compiling…
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:56: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:66: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:74: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:139: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:140: error: expected ‘)’ before ‘’ token
geom.c: In function ‘exposition’:
geom.c:146: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:206: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:232: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:236: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:237: warning: incompatible implicit declaration of
built-in function ‘cos’
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:56: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:66: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:74: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:139: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:140: error: expected ‘)’ before '
’ token
geom.c: In function ‘exposition’:
geom.c:146: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:206: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:232: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:236: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:237: warning: incompatible implicit declaration of
built-in function ‘cos’
lipo: can’t figure out the architecture type of: /var/folder
s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out
make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
(Tue Feb 26 09:40:18 2013) Command finished (3 sec)
#############################

Your help is much appreciated!

Sincerely,

Robert Brown

All messages comes from compiler informing you haven’t installed standard librarires. This is however the issue of g.extension, which do not work well with Apple systems. Please contact grass dev team how to resolve this issue

regards
Jarek

When I tried to compile r.geomorphon, I got the errors you see below. I just tried g.extensions with similar results.

···
$ make MODULE_TOPDIR=/home/bob/dev/gis/grass70
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu
gcc  -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused   -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/geom.o -c geom.c
geom.c: In function ‘ternary_rotate’:
geom.c:21:5: warning: unused variable ‘res’ [-Wunused-variable]
geom.c: In function ‘radial2cartesian’:
geom.c:188:21: warning: ordered comparison of pointer with integer zero [-Wextra]
geom.c: In function ‘extends’:
geom.c:198:37: warning: unused parameter ‘pattern_size’ [-Wunused-parameter]
geom.c: At top level:
geom.c:2:15: warning: ‘dirs’ defined but not used [-Wunused-variable]
gcc  -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused   -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include  -D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"   -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c
main.c: In function ‘main’:
main.c:177:2: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:198:2: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:207:2: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:213:2: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:220:3: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:234:3: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:310:8: warning: format not a string literal and no format arguments [-Wformat-security]
main.c:366:5: error: implicit declaration of function ‘radial2cartesian’ [-Werror=implicit-function-declaration]
main.c:401:2: error: implicit declaration of function ‘write_contrast_colors’ [-Werror=implicit-function-declaration]
main.c:268:20: warning: unused variable ‘formC’ [-Wunused-variable]
main.c:268:13: warning: unused variable ‘formB’ [-Wunused-variable]
main.c:268:6: warning: unused variable ‘formA’ [-Wunused-variable]
main.c:76:22: warning: unused variable ‘radius’ [-Wunused-variable]
main.c:74:11: warning: unused variable ‘n’ [-Wunused-variable]
main.c:74:8: warning: unused variable ‘j’ [-Wunused-variable]
main.c:463:1: warning: control reaches end of non-void function [-Wreturn-type]
cc1: some warnings being treated as errors
make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1

From: grass-user-bounces@lists.osgeo.org [mailto:grass-user-bounces@lists.osgeo.org] On Behalf Of Robert Andrew Brown
Sent: Tuesday, February 26, 2013 9:21 AM
To: grass-user@lists.osgeo.org
Cc: Phillip Owens
Subject: [GRASS-user] Geomorphons and extension manager

To whom it may concern,

I am trying to use extension manager in grass to install geomrphons. However, I am having trouble with the extension manager(error below). I emailed the geomorphon developer Jarek Jasiewicz(See Below) and he suggest I contact the GRASS-Users forum.

Please advise,

-Robert Brown

From: JASIEWICZ Jarosław <jarekj@amu.edu.pl>

Subject: Re: Geomorphons

Date: February 26, 2013 11:56:20 AM EST

To: brown782@purdue.edu

On 02/26/2013 05:21 PM, brown782@purdue.edu wrote:

Dear Sir,

I use grass on my Mac OS X 10.8.2. I have been trying to compile grass to install the add-on Geomorphons. However, it is overwhelming to compile grass from source code as I have very little experience compiling programs. When I saw that your Geomorphons algorithm was part of the grass 7.0 add-ons I was pleased and tried to use the extension manager to add it to my grass add-on repository, however, I get an several errors which I have posted below. Any Suggestions?
#####################

g.extension extension=r.geomorphon/ operation=add
Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)…
Compiling…
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:56: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:66: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:74: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:139: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:140: error: expected ‘)’ before ‘’ token
geom.c: In function ‘exposition’:
geom.c:146: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:206: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:232: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:236: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:237: warning: incompatible implicit declaration of
built-in function ‘cos’
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:56: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:66: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:74: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:139: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:140: error: expected ‘)’ before '
’ token
geom.c: In function ‘exposition’:
geom.c:146: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:206: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:232: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:236: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:237: warning: incompatible implicit declaration of
built-in function ‘cos’
lipo: can’t figure out the architecture type of: /var/folder
s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out
make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
(Tue Feb 26 09:40:18 2013) Command finished (3 sec)
#############################

Your help is much appreciated!

Sincerely,

Robert Brown

All messages comes from compiler informing you haven’t installed standard librarires. This is however the issue of g.extension, which do not work well with Apple systems. Please contact grass dev team how to resolve this issue

regards
Jarek

| Hi,

missing function definitions added in svn with r55235 & now it builds. I’ll leave the other compiler warnings for the authors to look at …


Hamish


— On Tue, 2/26/13, Moskovitz, Bob@DOC Bob.Moskovitz@conservation.ca.gov wrote:


> From: Moskovitz, Bob@DOC Bob.Moskovitz@conservation.ca.gov
> Subject: Re: [GRASS-user] Geomorphons and extension manager
> To: “Robert Andrew Brown” brown782@purdue.edu, “grass-user@lists.osgeo.orggrass-user@lists.osgeo.org
> Cc: “Phillip Owens” prowens@purdue.edu, “jarekj@amu.edu.pl” jarekj@amu.edu.pl
> Date: Tuesday, February 26, 2013, 3:38 PM
>
> When I tried to compile r.geomorphon, I got the errors you see below. I just tried g.extensions with similar results.
>
> <br>> $ make MODULE_TOPDIR=/home/bob/dev/gis/grass70<br>>
>
> <br>> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu<br>>
>
> <br>> gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/geom.o -c geom.c<br>>
>
> <br>> geom.c: In function ‘ternary_rotate’:<br>>
>
> <br>> geom.c:21:5: warning: unused variable ‘res’ [-Wunused-variable]<br>>
>
> <br>> geom.c: In function ‘radial2cartesian’:<br>>
>
> <br>> geom.c:188:21: warning: ordered comparison of pointer with integer zero [-Wextra]<br>>
>
> <br>> geom.c: In function ‘extends’:<br>>
>
> <br>> geom.c:198:37: warning: unused parameter ‘pattern_size’ [-Wunused-parameter]<br>>
>
> <br>> geom.c: At top level:<br>>
>
> <br>> geom.c:2:15: warning: ‘dirs’ defined but not used [-Wunused-variable]<br>>
>
> <br>> gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c<br>>
>
> <br>> main.c: In function ‘main’:<br>>
>
> <br>> main.c:177:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:198:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:207:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:213:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:220:3: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:234:3: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:310:8: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:366:5: error: implicit declaration of function ‘radial2cartesian’ [-Werror=implicit-function-declaration]<br>>
>
> <br>> main.c:401:2: error: implicit declaration of function ‘write_contrast_colors’ [-Werror=implicit-function-declaration]<br>>
>
> <br>> main.c:268:20: warning: unused variable ‘formC’ [-Wunused-variable]<br>>
>
> <br>> main.c:268:13: warning: unused variable ‘formB’ [-Wunused-variable]<br>>
>
> <br>> main.c:268:6: warning: unused variable ‘formA’ [-Wunused-variable]<br>>
>
> <br>> main.c:76:22: warning: unused variable ‘radius’ [-Wunused-variable]<br>>
>
> <br>> main.c:74:11: warning: unused variable ‘n’ [-Wunused-variable]<br>>
>
> <br>> main.c:74:8: warning: unused variable ‘j’ [-Wunused-variable]<br>>
>
> <br>> main.c:463:1: warning: control reaches end of non-void function [-Wreturn-type]<br>>
>
> <br>> cc1: some warnings being treated as errors<br>>
>
> <br>> make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1<br>>
>
> From: grass-user-bounces@lists.osgeo.org [mailto:grass-user-bounces@lists.osgeo.org] On Behalf Of Robert Andrew Brown
> Sent: Tuesday, February 26, 2013 9:21 AM
> To: grass-user@lists.osgeo.org
> Cc: Phillip Owens
> Subject: [GRASS-user] Geomorphons and extension manager
>
> To whom it may concern,
>
> I am trying to use extension manager in grass to install geomrphons. However, I am having trouble with the extension manager(error below). I emailed the geomorphon developer Jarek Jasiewicz(See Below) and he suggest I contact the GRASS-Users forum.
>
> Please advise,
>
> -Robert Brown
>
> From: JASIEWICZ Jarosław jarekj@amu.edu.pl
>
> Subject: Re: Geomorphons
>
> Date: February 26, 2013 11:56:20 AM EST
>
> To: brown782@purdue.edu
>
> On 02/26/2013 05:21 PM, brown782@purdue.edu wrote:
>
> Dear Sir,
>
> I use grass on my Mac OS X 10.8.2. I have been trying to compile grass to install the add-on Geomorphons. However, it is overwhelming to compile grass from source code as I have very little experience compiling programs. When I saw that your Geomorphons algorithm was part of the grass 7.0 add-ons I was pleased and tried to use the extension manager to add it to my grass add-on repository, however, I get an several errors which I have posted below. Any Suggestions?
> #####################
>
> > > g.extension extension=r.geomorphon/ operation=add
> > > Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)…
> > > Compiling…
> > > In file included from geom.c:1:
> > > local_proto.h:1:20: error: stdlib.h: No such file or
> > > directory
> > > local_proto.h:2:20: error: string.h: No such file or
> > > directory
> > > local_proto.h:3:18: error: math.h: No such file or directory
> > > local_proto.h:4:27: error: grass/glocale.h: No such file or
> > > directory
> > > local_proto.h:5:23: error: grass/gis.h: No such file or
> > > directory
> > > local_proto.h:6:26: error: grass/raster.h: No such file or
> > > directory
> > > In file included from geom.c:1:
> > > local_proto.h:56: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:66: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:74: error: expected specifier-qualifier-list
> > > before ‘CELL’
> > > local_proto.h:139: error: expected declaration specifiers or
> > > ‘…’ before ‘RASTER_MAP_TYPE’
> > > local_proto.h:140: error: expected ‘)’ before ‘’ token
> > > geom.c: In function ‘exposition’:
> > > geom.c:146: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘extends’:
> > > geom.c:206: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘shape’:
> > > geom.c:232: warning: incompatible implicit declaration of
> > > built-in function ‘atan’
> > > geom.c:236: warning: incompatible implicit declaration of
> > > built-in function ‘sin’
> > > geom.c:237: warning: incompatible implicit declaration of
> > > built-in function ‘cos’
> > > In file included from geom.c:1:
> > > local_proto.h:1:20: error: stdlib.h: No such file or
> > > directory
> > > local_proto.h:2:20: error: string.h: No such file or
> > > directory
> > > local_proto.h:3:18: error: math.h: No such file or directory
> > > local_proto.h:4:27: error: grass/glocale.h: No such file or
> > > directory
> > > local_proto.h:5:23: error: grass/gis.h: No such file or
> > > directory
> > > local_proto.h:6:26: error: grass/raster.h: No such file or
> > > directory
> > > In file included from geom.c:1:
> > > local_proto.h:56: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:66: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:74: error: expected specifier-qualifier-list
> > > before ‘CELL’
> > > local_proto.h:139: error: expected declaration specifiers or
> > > ‘…’ before ‘RASTER_MAP_TYPE’
> > > local_proto.h:140: error: expected ‘)’ before '
’ token
> > > geom.c: In function ‘exposition’:
> > > geom.c:146: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘extends’:
> > > geom.c:206: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘shape’:
> > > geom.c:232: warning: incompatible implicit declaration of
> > > built-in function ‘atan’
> > > geom.c:236: warning: incompatible implicit declaration of
> > > built-in function ‘sin’
> > > geom.c:237: warning: incompatible implicit declaration of
> > > built-in function ‘cos’
> > > lipo: can’t figure out the architecture type of: /var/folder
> > > s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out
> > > make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1
> > > ERROR: Compilation failed, sorry. Please check above error messages.
> > > (Tue Feb 26 09:40:18 2013) Command finished (3 sec)
> > > #############################
> > >
> > > Your help is much appreciated!
> > >
> > > Sincerely,
> > >
> > > Robert Brown
>
> All messages comes from compiler informing you haven’t installed standard librarires. This is however the issue of g.extension, which do not work well with Apple systems. Please contact grass dev team how to resolve this issue
>
> regards
> Jarek
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

|
| - |

Hello,

I appreciate the fast action on the dealing with the geomorphon issue. However I again tried to use extension manager to install the add-on and got the following warning.

#####################

(Wed Feb 27 09:20:40 2013)
g.extension extension=r.geomorphon operation=add
Fetching <r.geomorphon> from GRASS-Addons SVN (be patient)…
Compiling…
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:57: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:68: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:77: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:146: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:147: error: expected ‘)’ before ‘’ token
geom.c: In function ‘exposition’:
geom.c:149: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:213: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:240: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:244: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:245: warning: incompatible implicit declaration of
built-in function ‘cos’
In file included from geom.c:1:
local_proto.h:1:20: error: stdlib.h: No such file or
directory
local_proto.h:2:20: error: string.h: No such file or
directory
local_proto.h:3:18: error: math.h: No such file or directory
local_proto.h:4:27: error: grass/glocale.h: No such file or
directory
local_proto.h:5:23: error: grass/gis.h: No such file or
directory
local_proto.h:6:26: error: grass/raster.h: No such file or
directory
In file included from geom.c:1:
local_proto.h:57: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:68: error: expected specifier-qualifier-list
before ‘RASTER_MAP_TYPE’
local_proto.h:77: error: expected specifier-qualifier-list
before ‘CELL’
local_proto.h:146: error: expected declaration specifiers or
‘…’ before ‘RASTER_MAP_TYPE’
local_proto.h:147: error: expected ‘)’ before '
’ token
geom.c: In function ‘exposition’:
geom.c:149: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘extends’:
geom.c:213: warning: incompatible implicit declaration of
built-in function ‘fabs’
geom.c: In function ‘shape’:
geom.c:240: warning: incompatible implicit declaration of
built-in function ‘atan’
geom.c:244: warning: incompatible implicit declaration of
built-in function ‘sin’
geom.c:245: warning: incompatible implicit declaration of
built-in function ‘cos’
lipo: can’t figure out the architecture type of: /var/folder
s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccJFVReJ.out
make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
(Wed Feb 27 09:20:45 2013) Command finished (5 sec)

##############################

Any help would be much appreciated!

Sincerely,

-robert brown

On Feb 27, 2013, at 12:48 AM, Hamish <hamish_b@yahoo.com> wrote:

| Hi,

missing function definitions added in svn with r55235 & now it builds. I’ll leave the other compiler warnings for the authors to look at …


Hamish


— On Tue, 2/26/13, Moskovitz, Bob@DOC <Bob.Moskovitz@conservation.ca.gov> wrote:


> From: Moskovitz, Bob@DOC <Bob.Moskovitz@conservation.ca.gov>
> Subject: Re: [GRASS-user] Geomorphons and extension manager
> To: “Robert Andrew Brown” <brown782@purdue.edu>, “grass-user@lists.osgeo.org” <grass-user@lists.osgeo.org>
> Cc: “Phillip Owens” <prowens@purdue.edu>, “jarekj@amu.edu.pl” <jarekj@amu.edu.pl>
> Date: Tuesday, February 26, 2013, 3:38 PM
>
> When I tried to compile r.geomorphon, I got the errors you see below. I just tried g.extensions with similar results.
>
> <br>> $ make MODULE_TOPDIR=/home/bob/dev/gis/grass70<br>>
>
> <br>> test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu<br>>
>
> <br>> gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/geom.o -c geom.c<br>>
>
> <br>> geom.c: In function ‘ternary_rotate’:<br>>
>
> <br>> geom.c:21:5: warning: unused variable ‘res’ [-Wunused-variable]<br>>
>
> <br>> geom.c: In function ‘radial2cartesian’:<br>>
>
> <br>> geom.c:188:21: warning: ordered comparison of pointer with integer zero [-Wextra]<br>>
>
> <br>> geom.c: In function ‘extends’:<br>>
>
> <br>> geom.c:198:37: warning: unused parameter ‘pattern_size’ [-Wunused-parameter]<br>>
>
> <br>> geom.c: At top level:<br>>
>
> <br>> geom.c:2:15: warning: ‘dirs’ defined but not used [-Wunused-variable]<br>>
>
> <br>> gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c<br>>
>
> <br>> main.c: In function ‘main’:<br>>
>
> <br>> main.c:177:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:198:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:207:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:213:2: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:220:3: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:234:3: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:310:8: warning: format not a string literal and no format arguments [-Wformat-security]<br>>
>
> <br>> main.c:366:5: error: implicit declaration of function ‘radial2cartesian’ [-Werror=implicit-function-declaration]<br>>
>
> <br>> main.c:401:2: error: implicit declaration of function ‘write_contrast_colors’ [-Werror=implicit-function-declaration]<br>>
>
> <br>> main.c:268:20: warning: unused variable ‘formC’ [-Wunused-variable]<br>>
>
> <br>> main.c:268:13: warning: unused variable ‘formB’ [-Wunused-variable]<br>>
>
> <br>> main.c:268:6: warning: unused variable ‘formA’ [-Wunused-variable]<br>>
>
> <br>> main.c:76:22: warning: unused variable ‘radius’ [-Wunused-variable]<br>>
>
> <br>> main.c:74:11: warning: unused variable ‘n’ [-Wunused-variable]<br>>
>
> <br>> main.c:74:8: warning: unused variable ‘j’ [-Wunused-variable]<br>>
>
> <br>> main.c:463:1: warning: control reaches end of non-void function [-Wreturn-type]<br>>
>
> <br>> cc1: some warnings being treated as errors<br>>
>
> <br>> make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1<br>>
>
> From: grass-user-bounces@lists.osgeo.org [mailto:grass-user-bounces@lists.osgeo.org] On Behalf Of Robert Andrew Brown
> Sent: Tuesday, February 26, 2013 9:21 AM
> To: grass-user@lists.osgeo.org
> Cc: Phillip Owens
> Subject: [GRASS-user] Geomorphons and extension manager
>
> To whom it may concern,
>
> I am trying to use extension manager in grass to install geomrphons. However, I am having trouble with the extension manager(error below). I emailed the geomorphon developer Jarek Jasiewicz(See Below) and he suggest I contact the GRASS-Users forum.
>
> Please advise,
>
> -Robert Brown
>
> From: JASIEWICZ Jarosław jarekj@amu.edu.pl
>
> Subject: Re: Geomorphons
>
> Date: February 26, 2013 11:56:20 AM EST
>
> To: brown782@purdue.edu
>
> On 02/26/2013 05:21 PM, brown782@purdue.edu wrote:
>
> Dear Sir,
>
> I use grass on my Mac OS X 10.8.2. I have been trying to compile grass to install the add-on Geomorphons. However, it is overwhelming to compile grass from source code as I have very little experience compiling programs. When I saw that your Geomorphons algorithm was part of the grass 7.0 add-ons I was pleased and tried to use the extension manager to add it to my grass add-on repository, however, I get an several errors which I have posted below. Any Suggestions?
> #####################
>
> > > g.extension extension=r.geomorphon/ operation=add
> > > Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)…
> > > Compiling…
> > > In file included from geom.c:1:
> > > local_proto.h:1:20: error: stdlib.h: No such file or
> > > directory
> > > local_proto.h:2:20: error: string.h: No such file or
> > > directory
> > > local_proto.h:3:18: error: math.h: No such file or directory
> > > local_proto.h:4:27: error: grass/glocale.h: No such file or
> > > directory
> > > local_proto.h:5:23: error: grass/gis.h: No such file or
> > > directory
> > > local_proto.h:6:26: error: grass/raster.h: No such file or
> > > directory
> > > In file included from geom.c:1:
> > > local_proto.h:56: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:66: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:74: error: expected specifier-qualifier-list
> > > before ‘CELL’
> > > local_proto.h:139: error: expected declaration specifiers or
> > > ‘…’ before ‘RASTER_MAP_TYPE’
> > > local_proto.h:140: error: expected ‘)’ before ‘’ token
> > > geom.c: In function ‘exposition’:
> > > geom.c:146: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘extends’:
> > > geom.c:206: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘shape’:
> > > geom.c:232: warning: incompatible implicit declaration of
> > > built-in function ‘atan’
> > > geom.c:236: warning: incompatible implicit declaration of
> > > built-in function ‘sin’
> > > geom.c:237: warning: incompatible implicit declaration of
> > > built-in function ‘cos’
> > > In file included from geom.c:1:
> > > local_proto.h:1:20: error: stdlib.h: No such file or
> > > directory
> > > local_proto.h:2:20: error: string.h: No such file or
> > > directory
> > > local_proto.h:3:18: error: math.h: No such file or directory
> > > local_proto.h:4:27: error: grass/glocale.h: No such file or
> > > directory
> > > local_proto.h:5:23: error: grass/gis.h: No such file or
> > > directory
> > > local_proto.h:6:26: error: grass/raster.h: No such file or
> > > directory
> > > In file included from geom.c:1:
> > > local_proto.h:56: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:66: error: expected specifier-qualifier-list
> > > before ‘RASTER_MAP_TYPE’
> > > local_proto.h:74: error: expected specifier-qualifier-list
> > > before ‘CELL’
> > > local_proto.h:139: error: expected declaration specifiers or
> > > ‘…’ before ‘RASTER_MAP_TYPE’
> > > local_proto.h:140: error: expected ‘)’ before '
’ token
> > > geom.c: In function ‘exposition’:
> > > geom.c:146: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘extends’:
> > > geom.c:206: warning: incompatible implicit declaration of
> > > built-in function ‘fabs’
> > > geom.c: In function ‘shape’:
> > > geom.c:232: warning: incompatible implicit declaration of
> > > built-in function ‘atan’
> > > geom.c:236: warning: incompatible implicit declaration of
> > > built-in function ‘sin’
> > > geom.c:237: warning: incompatible implicit declaration of
> > > built-in function ‘cos’
> > > lipo: can’t figure out the architecture type of: /var/folder
> > > s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out
> > > make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1
> > > ERROR: Compilation failed, sorry. Please check above error messages.
> > > (Tue Feb 26 09:40:18 2013) Command finished (3 sec)
> > > #############################
> > >
> > > Your help is much appreciated!
> > >
> > > Sincerely,
> > >
> > > Robert Brown
>
> All messages comes from compiler informing you haven’t installed standard librarires. This is however the issue of g.extension, which do not work well with Apple systems. Please contact grass dev team how to resolve this issue
>
> regards
> Jarek
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

|
| - |

Hi,

some compilation errors should be fixed in r55243.

local_proto.h:1:20: error: stdlib.h: No such file or

directo

seems like standard header are missing on your computer. Try to install them, eg. on Debian/Ubuntu

sudo apt-get install libc6-dev

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Sorry to be a pain,

So I have deleted the binary and tried to compile grass from source code. I am getting an error which is the same error that I have been getting after several hundred hours of tying to compile grass which is why I stopped trying to compile it. I installed Cairo through the GRASS http://www.kyngchaos.com/software:frameworks. The error is…

###################

Unable to locate cairo_create

###################

The ./configure script I am using is…

–with-cairo --with-cairo-includes=“/Library/Frameworks/cairo.framework/unix/include/cairo /Library/Frameworks/cairo.framework/unix/include” --with-cairo-libs=/Library/Frameworks/cairo.framework/unix/lib --with-cairo-ldflags=“-lcairo”

I have seen this error issue as far back as 2011.

Does anyone have any suggestions to a fix around?

Thanks,

-robert brown

On Feb 27, 2013, at 10:02 AM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

some compilation errors should be fixed in r55243.

local_proto.h:1:20: error: stdlib.h: No such file or

directo

seems like standard header are missing on your computer. Try to install them, eg. on Debian/Ubuntu

sudo apt-get install libc6-dev

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa