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:[email protected]] On Behalf Of Sandro Santilli Sent: Sunday, November 26, 2017 3:44 PM To: PostGIS Users Discussion <[email protected]> Cc: 'PostGIS Development Discussion' <[email protected]> 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 [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/postgis-users
