[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Thu Apr 4 23:39:19 PDT 2013


On Thu, Apr 4, 2013 at 12:09 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
...
>> cat /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/sys/types.h
>
> Can you visually compare this file to the preprocessor output from
...

(file sent offlist for inspection)

> However: adding -D_POSIX_SOURCE=1 may help (glibc's features.h defines
> _POSIX_SOURCE if _POSIX_C_SOURCE is set; AIX's might not).

I tried:

gcc  -ansi -D_POSIX_SOURCE=1 -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
   -DPACKAGE=\""grassmods"\"
-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/main.o -c main.c
main.c: In function 'main':
main.c:22: error: storage size of 't' isn't known
make: *** [OBJ.powerpc-ibm-aix5.3.0.0/main.o] Error 1

gcc  -ansi -D_POSIX_SOURCE=1 -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/ls.o -c ls.c
ls.c: In function 'G_ls_format':
ls.c:177: error: storage size of 'size' isn't known
ls.c:179: error: invalid application of 'sizeof' to incomplete type
'struct winsize'
make[3]: *** [OBJ.powerpc-ibm-aix5.3.0.0/ls.o] Error 1

Markus


More information about the grass-dev mailing list