[postgis-users] Patch for PostGIS CVS on Windows

strk at refractions.net strk at refractions.net
Fri Jul 1 05:54:13 PDT 2005


On Fri, Jul 01, 2005 at 01:35:46PM +0200, Jean David TECHER wrote:
> In postgis/Makefile.config.in
> 
> USE_ICONV=@USE_ICONV@
...
> checking iconv.h usability... yes
> checking iconv.h presence... yes
> checking for iconv.h... yes
...
> shp2pgsql.c:1631: warning: passing arg 2 of `libiconv' from incompatible pointer type
> gcc -g -Wall -I.. -DUSE_ICONV -DUSE_VERSION=80 shpopen.o dbfopen.o getopt.o shp2pgsql.o  -o shp2pgsql.exe 
> shp2pgsql.o(.text+0x2d7f): In function `utf8':
> C:/msys/1.0/home/david/sources/PostGIS/cvs/postgis/loader/shp2pgsql.c:1613: undefined reference to `libiconv_open'
> shp2pgsql.o(.text+0x2e29):C:/msys/1.0/home/david/sources/PostGIS/cvs/postgis/loader/shp2pgsql.c:1628: undefined reference to `bzero'
> shp2pgsql.o(.text+0x2e56):C:/msys/1.0/home/david/sources/PostGIS/cvs/postgis/loader/shp2pgsql.c:1631: undefined reference to `libiconv'
> shp2pgsql.o(.text+0x2e9a):C:/msys/1.0/home/david/sources/PostGIS/cvs/postgis/loader/shp2pgsql.c:1637: undefined reference to `libiconv_close'

Does adding -liconv to CFLAGS in loader/Makefile fix this ?

--strk;



More information about the postgis-users mailing list