[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Wed Apr 3 15:40:40 PDT 2013


On Wed, Apr 3, 2013 at 7:57 PM, Glynn Clements <glynn at gclements.plus.com> wrote:
>
> Markus Neteler wrote:
>
>> > This doesn't fit with the off_t-related errors you were getting in
>> > defs/gis.h.
>>
>> Now I got it... gcc picks stuff up from /opt/freeware/bla. Sorry for
>> the confusion.
>
> 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
...
#ifndef _H_STANDARDS
#include <standards.h>
#endif
#include <strict_stdtypes.h>
#ifndef _H_INTTYPES_TYPE_TS
#include <sys/inttypes.h>
#endif
/*
 *
 *      The ANSI and POSIX standards require that certain values be in types.h.
 *      It also requires that if _ANSI_C_SOURCE or _POSIX_SOURCE is defined
 *      then ONLY those values are present. This header includes all the ANSI
 *      and POSIX required entries.
 *
 *      Other entries are included in _ALL_SOURCE.
 *
 */
#ifdef   _ANSI_C_SOURCE
...
#ifdef _LARGE_FILES
typedef long long fpos_t;
#else
typedef long    fpos_t;
#endif /* _LARGE_FILES */
#ifdef _LARGE_FILE_API
typedef long long fpos64_t;
#endif /* _LARGE_FILE_API */
...
#endif   /* _ANSI_C_SOURCE */
#ifdef   _POSIX_SOURCE
...
typedef int soff_t;                     /* Unambiguous 32 bit file offset */

#ifndef _OFF_T
#define _OFF_T
#ifdef _LARGE_FILES
typedef long long       off_t;          /* 64 bit file offset */
#else
typedef long            off_t;          /* file offset (32/64) */
#endif /* _LARGE_FILES */
#endif /* _OFF_T */

#ifdef _LARGE_FILE_API
typedef long long       off64_t;
#endif
...

(I can send the file offlist if useful).

FWIW:
http://forums.fedoraforum.org/showthread.php?t=266114
-> the test program there delivered "success".

Markus


More information about the grass-dev mailing list