[GRASS-dev] compilation of grass on AIX 7.1

Glynn Clements glynn at gclements.plus.com
Tue Jun 25 16:13:03 PDT 2013


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

But you'd need to figure out which file(s) require it, maybe with:

	nm -A OBJ.*/*.o | c++filt | fgrep open64

[This would work on Linux, but I don't know about AIX.]

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


More information about the grass-dev mailing list