[GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
GRASS GIS
trac at osgeo.org
Wed May 11 00:26:21 PDT 2016
#2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
----------------------+-------------------------
Reporter: pieside | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.4
Component: Default | Version: 7.0.3
Resolution: | Keywords: FreeBSD
CPU: x86-64 | Platform: Other Unix
----------------------+-------------------------
Comment (by mmetz):
Replying to [comment:3 glynn]:
> Replying to [comment:2 pieside]:
> > The problems seems to be an old friend:
> >
> {{{
> /home/pierre/tmp/grass7/grass-7.0.3/dist.x86_64-unknown-
freebsd10.2/lib/libgrass_gis.7.0.3.so: undefined reference to `libiconv'
> }}}
>
> This usually means that it's including <iconv.h> from libiconv but
linking against the system iconv (which may be part of libc).
>
> One way to solve issues with multiple library versions is to create
"include" and "lib" directories, populate them with symlinks to the
desired versions of the headers and libraries, and use --with-includes=
and --with-libs= to put those directories at the front of the search path.
You can also configure GRASS, then manually edit
include/Make/Platform.make and set
{{{
ICONVLIB =
}}}
to
{{{
ICONVLIB = -liconv
}}}
Most of GRASS then compiles for me on FreeBSD 10.3 with both clang and
gcc, with the exception of wxnviz and the temporal modules (problem with
numpy + ctypes), but that is a different problem.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2940#comment:4>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list