[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Wed Jun 26 10:40:19 PDT 2013

On Wed, Jun 26, 2013 at 1:13 AM, Glynn Clements
<glynn at gclements.plus.com> wrote:
> Markus Neteler wrote:
>> -bash-3.2$ cd /gpfs/home/neteler/software/grass-7.0.svn/raster/r.terraflow
>> ld: 0711-317 ERROR: Undefined symbol: .std::basic_filebuf<char,
>> std::char_traits<char> >::open64(char const*, std::_Ios_Openmode)
> This appears to be a problem with g++ on AIX, caused by AIX having
> "#define open open64" in one of its headers:
>         http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01957.html
> It might be possible to work around this with e.g.:
>         #include <fcntl.h>
>         #undef open

Markus Metz figured it out, fixed locally (see attachment).
Submit or not?

GRASS' LFS support on AIX7 also fixed also in

Now trying to get shared libraries enabled (almost there).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: r.terraflow_AIX_gcc_fix.diff
Type: application/octet-stream
Size: 567 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130626/d08bc789/attachment.obj>

More information about the grass-dev mailing list