[GRASS-dev] compilation of grass on AIX 7.1

Glynn Clements glynn at gclements.plus.com
Thu Apr 4 03:09:39 PDT 2013


Markus Neteler wrote:

> > In which case, you need to look at that version of sys/types.h to
> > figure out why off_t isn't getting seen.
> 
> I found the path with
> /opt/freeware/bin/gcc -print-search-dirs
> ...
> 
> Hence  ("randomly" citing):
> 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
your previous message, which indicates that very few types are
actually getting defined by sys/types.h (specifically: ptrdiff_t,
wchar_t, wctype_t, time_t, clock_t, and size64_t). That should provide
clues as to which macros are defined and which aren't.

Because of the elisions, it isn't clear which #ifdef directives are
guarding the off_t definition.

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).

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


More information about the grass-dev mailing list