[GRASS-dev] [GRASS GIS] #2940: Compiling Grass-7.0.3 under FreeBSD: tplot directory (with log)
GRASS GIS
trac at osgeo.org
Sun Feb 28 07:47:22 PST 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 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'
/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_open'
/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_close'
}}}
As written in the Porter's Handbook ([https://www.freebsd.org/doc/en/books
/porters-handbook/index.html]), there are two versions of libiconv in
FreeBSD: "FreeBSD 10-CURRENT and newer versions have a native iconv in
the operating system (in libc). On earlier versions, converters/libiconv
was used as a dependency". So we have a System iconv and Libiconv iconv
(/usr/local/include/iconv.h).
One way to overcome this is to deinstall and remove
/usr/local/include/iconv.h. But some really important softwares depend on
it: "Despite the default implementation of iconv enabled by default in
libc, a few ports (like [http://www.freshports.org/devel/glib20/)] depend
on converters/libiconv again due to missing functionality in the base
iconv implementation" (written in the /usr/ports/UPDATING file).
Another solution is suggested in this post (http://osdir.com/ml/grass-
development-gis/2014-12/msg00435.html). I did add "ICONVLIB = -liconv" in
include/Make/Platform.make but it doesn't compile for me.
What all this evoke to you?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2940#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list