[GRASS-dev] compilation of grass on AIX 7.1

Glynn Clements glynn at gclements.plus.com
Sun Apr 7 01:33:23 PDT 2013


Markus Neteler wrote:

> >> 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?
> 
> Ah sorry: tools/timer/main.c

"struct timeval", used by gettimeofday().

tools/timer isn't actually used by GRASS or the build system, so I
don't consider this one to be particularly critical.

> > 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).
> 
> I found this:
> 
> /usr/include> grep TIOCGWINSZ */*
> sys/ioctl.h: * TIOCSWINSZ and TIOCGWINSZ -- in fact they are defined to be the
> sys/ioctl.h:#define     TIOCGSIZE       TIOCGWINSZ
> sys/ioctl.h:#define     TIOCGWINSZ   _IOR('t', 104, struct winsize)
> /* get window size */

A grep for "winsize" would be more useful. TIOCGWINSZ is being found,
otherwise the code which uses "struct winsize" wouldn't be compiled
and wouldn't generate an error.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list