[postgis-devel] [postgis-users] Compiling PostGIS under FreeBSD 11
Regina Obe
lr at pcorp.us
Tue Nov 28 12:43:35 PST 2017
strk already knows this, but for others.
As noted in https://trac.osgeo.org/postgis/ticket/3936
I found a cleaner work around which works on both bessie and bessie32 (both FreeBSD 11.1s)
sh autogen.sh
./configure --with-projdir=/usr/local --with-libiconv=/usr/local
Soon I'll be able to put them in our chain of testing once we figure out this 32-bit freebsd brin mystery
https://trac.osgeo.org/postgis/ticket/3937
-----Original Message-----
From: postgis-users [mailto:postgis-users-bounces at lists.osgeo.org] On Behalf Of Sandro Santilli
Sent: Sunday, November 26, 2017 3:44 PM
To: PostGIS Users Discussion <postgis-users at lists.osgeo.org>
Cc: 'PostGIS Development Discussion' <postgis-devel at lists.osgeo.org>
Subject: Re: [postgis-users] [postgis-devel] Compiling PostGIS under FreeBSD 11
On Sun, Nov 26, 2017 at 03:11:01PM -0500, Regina Obe wrote:
> Confirmed just changing
>
> From:
>
> ICONV_LDFLAGS=-lc
>
> to
>
> ICONV_LDFLAGS= -liconv
>
> Fixed the issue, unfortunately I can't figure out a non-hacky way of fixing 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 my question is: do you have multiple libiconv.so files on the system ?
--strk;
_______________________________________________
postgis-users mailing list
postgis-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/postgis-users
More information about the postgis-devel
mailing list