[postgis-tickets] [PostGIS] #3936: Setting up bessie iconv errors FreeBSD
PostGIS
trac at osgeo.org
Tue Nov 28 12:15:43 PST 2017
#3936: Setting up bessie iconv errors FreeBSD
------------------------+---------------------------
Reporter: robe | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: buildbots | Version: 2.4.x
Resolution: | Keywords:
------------------------+---------------------------
Changes (by robe):
* milestone: Management 2.0 => PostGIS 2.5.0
Comment:
I setup a bessie32 same config except this time I didn't do
{{{
pkg iconv
}}}
I have the same issue with her, and doing the hack of below after
./configure
{{{
rm loader/Makefile.bak
sed -i .bak 's/ICONV_LDFLAGS= -lc/ICONV_LDFLAGS=-liconv/'
"loader/Makefile"
}}}
works on her as well.
For completeness from mailing list
http://lists.osgeo.org/pipermail/postgis-users/2017-November/042494.html
strk noted this
{{{
The code setting ICONV_LDFLAGS, in configure.ac, is as follows:
dnl libconv defines iconv_open to libiconv_open, so we'll check that
directly
AC_CHECK_LIB([iconv], [libiconv_open], [ICONV_LDFLAGS="$ICONV_LDFLAGS
-liconv" HAVE_ICONV=1], [])
if test "x$HAVE_ICONV" = "x"; then
dnl Check for iconv included as part of libc, using iconv_open
AC_CHECK_LIB([c], [iconv_open], [ICONV_LDFLAGS="$ICONV_LDFLAGS -lc"
HAVE_ICONV=1], [])
if test "x$HAVE_ICONV" = "x"; then
dnl But it's possible this implementation of libiconv doesn't have a
libiconv_* define
AC_CHECK_LIB([iconv], [iconv_open], [ICONV_LDFLAGS="$ICONV_LDFLAGS
-liconv" HAVE_ICONV=1], [])
if test "x$HAVE_ICONV" = "x"; then
dnl No iconv library was found; issue a warning to the console
AC_MSG_ERROR([Could not find libiconv. Please install libiconv and
libiconv-devel.])
fi
fi
fi
In order to get just '-lc' you should have found NO `libiconv_open` in
libiconv,
while you would have found `iconv_open` in libc.
But your error message complains about:
undefined reference to `libiconv_open'
which you report as being found when you set ICONV_LDFLAGS to -liconv
...
}}}
So unclear to me why first test fails yet libiconv does have libiconv_open
evidentally.
Doing this:
{{{
pkg info | grep libiconv
}}}
I get:
{{{
libiconv-1.14_11 Character set conversion library
}}}
Seems to be a common freebsd issue though of all solutions just overriding
CFLAGS or libs
https://github.com/pdewacht/brlaser/issues/10
https://forums.freebsd.org/threads/50274/
All seem like workarounds and not solving the fundamental configure
failure
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3936#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list