[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Sun Mar 31 12:26:44 PDT 2013


On Fri, Mar 29, 2013 at 7:18 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
...
> For the first one, start by trying:
>
>         make distclean
>         CFLAGS='-ansi -D_POSIX_C_SOURCE=200809L -Dinline=' ./configure ...


sh conf_AIX.sh
checking host system type... powerpc-ibm-aix5.3.0.0
checking for gcc... gcc
checking whether the C compiler (gcc -ansi -D_POSIX_C_SOURCE=200809L
-Dinline= ) works... yes
checking whether the C compiler (gcc -ansi -D_POSIX_C_SOURCE=200809L
-Dinline= ) is a cross-compiler... no
checking whether we are using GNU C... yes
...

Note that I use grass-7.0.svn_src_snapshot_2013_03_22 without the recent
lib/gis/plot.c modification.

Compilation issues:

main.c: In function 'main':
main.c:22: error: storage size of 't' isn't known
make[3]: *** [OBJ.powerpc-ibm-aix5.3.0.0/main.o] Error 1
make[3]: Leaving directory
`/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/tools/timer'


And:

gcc  -ansi -D_POSIX_C_SOURCE=200809L -Dinline=
-I/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include
  -DGRASS_VERSION_DATE=\"'2013'\" -DPACKAGE=\""grasslibs"\"
-I/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include
-I/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include
-o OBJ.powerpc-ibm-aix5.3.0.0/adj_cellhd.o -c adj_cellhd.c
In file included from
/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include/grass/gis.h:576,
                 from adj_cellhd.c:14:
/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include/grass/defs/gis.h:578:
error: expected '=', ',', ';', 'asm' or '__attribute__' before
'G_ftell'
/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/dist.powerpc-ibm-aix5.3.0.0/include/grass/defs/gis.h:579:
error: expected declaration specifiers or '...' before 'off_t'
make[3]: *** [OBJ.powerpc-ibm-aix5.3.0.0/adj_cellhd.o] Error 1
make[3]: Leaving directory
`/afs/mycluster/user/private/software/grass-7.0.svn_src_snapshot_2013_03_22/lib/gis'

...
Subsequently also the other libs are not compiled.

Markus


More information about the grass-dev mailing list