[GRASS-dev] compilation of grass on AIX 7.1
Glynn Clements
glynn at gclements.plus.com
Sat Apr 6 01:13:40 PDT 2013
Markus Neteler wrote:
> 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
In which directory? main.c could be anything?
> 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
Okay; "struct winsize" isn't actually specified by POSIX, but it
should exist somewhere if TIOCGWINSZ is defined. Not necessarily in
the same header as the TIOCGWINSZ definition. Again, it may be guarded
by a #if/#ifdef.
On Linux, it's defined in both asm-generic/termios.h (kernel header)
and bits/ioctl-types.h (glibc header).
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list