[GRASS-dev] compilation of grass on AIX 7.1

Ivan Barka ivan.barka at gmail.com
Thu Mar 28 01:33:42 PDT 2013


> Markus Metz wrote:
>
> > >>> After renaming the variable "nearest" to "nearesta" in
> lib/gis/plot.c it
> > >>> worked.
> > >
> > > I did the same on AIX 5.3 but we need a solution in SVN...
> >
> > Fixed in r55563.
>

With r55565 I nave another error in lib/gis:
gcc  -lstdc++
 -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
 -D_FILE_OFFSET_BITS=64 -DGRASS_VERSION_DATE=\"'2013'\"
-DPACKAGE=\""grasslibs"\"
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include -o
OBJ.powerpc-ibm-aix7.1.0.0/plot.o -c plot.c
plot.c:34:1: error: expected identifier or '(' before '<<' token
plot.c:36:1: error: expected identifier or '(' before '==' token
plot.c:38:1: error: expected identifier or '(' before '>>' token
plot.c:351:1: error: expected identifier or '(' before '<<' token
plot.c: In function 'G_plot_polygon':
plot.c:419:1: error: expected expression before '<<' token
plot.c:421:1: error: expected expression before '==' token
plot.c:423:1: error: expected expression before '>>' token
plot.c: In function 'G_plot_area':
plot.c:554:1: error: expected expression before '<<' token
plot.c:556:1: error: expected expression before '==' token
plot.c:558:1: error: expected expression before '>>' token
plot.c: At top level:
plot.c:636:12: error: static declaration of 'edge' follows non-static
declaration
plot.c:415:15: note: previous implicit declaration of 'edge' was here
gmake: *** [OBJ.powerpc-ibm-aix7.1.0.0/plot.o] Error 1


I tried also gcc -ansi, but then:

in tools/timer:
gcc -ansi  -lstdc++
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
 -DPACKAGE=\""grassmods"\"
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include -o
OBJ.powerpc-ibm-aix7.1.0.0/main.o -c main.c
main.c: In function 'main':
main.c:22:20: error: storage size of 't' isn't known
gmake: *** [OBJ.powerpc-ibm-aix7.1.0.0/main.o] Error 1


in lib/gis:
gcc -ansi  -lstdc++
 -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-DGRASS_VERSION_DATE=\"'2013'\" -DPACKAGE=\""grasslibs"\"
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
-I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include -o
OBJ.powerpc-ibm-aix7.1.0.0/parser_interface.o -c parser_interface.c
parser_interface.c: In function 'print_escaped_for_xml':
parser_interface.c:54:5: error: unknown type name 'iconv_t'
parser_interface.c:57:18: error: 'iconv_t' undeclared (first use in this
function)
parser_interface.c:57:18: note: each undeclared identifier is reported only
once for each function it appears in
parser_interface.c: In function 'G__usage_xml':
parser_interface.c:118:28: error: 'CODESET' undeclared (first use in this
function)
gmake: *** [OBJ.powerpc-ibm-aix7.1.0.0/parser_interface.o] Error 1

I am not C programmer, thanks for any ideas.

Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130328/04b0c69e/attachment-0001.html>


More information about the grass-dev mailing list