On Fri, Jun 28, 2013 at 7:13 AM, Markus Neteler <nete...@osgeo.org> wrote: > On Wed, Jun 26, 2013 at 7:40 PM, Markus Neteler <nete...@osgeo.org> wrote: > ... >> Now trying to get shared libraries enabled (almost there). > > Also enabled in SVN (thanks to Markus Metz). > > Interestingly, when *starting* GRASS 7, I get on that AIX machine: > > Cleaning up temporary files... > Starting GRASS GIS... > Could not load program g.gisenv: > Could not load module > /gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.7.0.svn.so. > Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be > loaded. > Member libiconv.so.2 is not found in archive > Could not load module g.gisenv. > Dependent module > /gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.7.0.svn.so > could not be loaded. > Could not load module . > Could not load program g.gisenv: > Could not load module > /gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.7.0.svn.so. > Dependent module /usr/lib/libiconv.a(libiconv.so.2) could not be > loaded. > Member libiconv.so.2 is not found in archive > Could not load module g.gisenv. > Dependent module > /gpfs/home/neteler/software/grass-7.0.svn/dist.powerpc-ibm-aix7.1.0.0/lib/libgrass_gis.7.0.svn.so > could not be loaded. > Could not load module . > > Indeed, the libconv stuff is in /opt/freeware/ but searched in the common > /usr/ directories. Existing: > > /usr/include/iconv.h > .... > /* @(#)09 1.20 src/bos/usr/include/iconv.h, libiconv, bos610 > 8/28/03 11:09:44 */ > /* IBM_PROLOG_END_TAG */ > ... > > but no corresponding libiconv. > > How to tell GRASS 7 in configure to pick up the /opt/freeware/ include file > and > library?
In general, you can use some influential environment variables: CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> If some components are in non-standard /opt/freeware/, you could try to set LDFLAGS="-bsvr4 -R/opt/freeware/lib" CPPFLAGS="-I/opt/freeware/include" Markus M _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev