[GRASS-dev] compilation of grass on AIX 7.1

Markus Neteler neteler at osgeo.org
Mon Jun 10 08:35:58 PDT 2013


On Mon, Jun 10, 2013 at 3:41 PM, Glynn Clements
<glynn at gclements.plus.com> wrote:
...
> I suspect that GDALLIBS should include -lstdc++. That's arguably a bug
> in the gdal-config script. In practice it will only matter if GDAL is
> a static library; shared libraries record their dependencies.


checking for gdal-config... /gpfs/home/neteler/bin//bin/gdal-config
configure: error: *** Unable to locate GDAL library.

config.log:
configure:6079: checking for gdal-config
configure:6141: gcc -o conftest -g -O2
-I/gpfs/home/neteler/bin/include    conftest.c  -lc
-L/gpfs/home/neteler/bin/lib -lgdal 1>&5
configure: In function 'main':
configure:6137:9: warning: ignoring return value of 'GDALOpen',
declared with attribute warn_unused_result [-Wunused-result]
ld: 0711-224 WARNING: Duplicate symbol: .strndup
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: vtable for
__cxxabiv1::__si_class_type_info
ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info
ld: 0711-317 ERROR: Undefined symbol: __gxx_personality_v0
ld: 0711-317 ERROR: Undefined symbol: __cxa_pure_virtual
ld: 0711-317 ERROR: Undefined symbol: .operator delete(void*)
ld: 0711-317 ERROR: Undefined symbol: std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_M_destroy(std::allocator<char> const&)
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::_M_leak_hard()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::basic_string(char
const*, std::allocator<char>
...

I configured GDAL like this:
export LIBICONV=/opt/freeware
export CC="gcc"
export CXX="g++"
PREFIX=$HOME/bin
CFLAGS='-DHAVE_INTTYPES_H=0' ./configure \
 --prefix=$PREFIX --with-libz=internal --with-threads=no
--with-geotiff=internal --with-libtiff=internal

ls ~/bin/lib/
gdalplugins    libgdal.a      libgdal.la     libproj.a      libproj.la
    libsqlite3.a   libsqlite3.la  pkgconfig

So it is all static on AIX.

No idea how to get -lstdc++ in here/GRASS.

Markus


More information about the grass-dev mailing list