[postgis-users] [Building PostGIS2.0] undefined reference to `libintl_printf'

Paul Ramsey pramsey at opengeo.org
Thu Feb 16 10:24:42 PST 2012


I feel like in the link step the mingw is happier when you put static
libraries at the end of the link line. Just a feeling though.
P.

On Thu, Feb 16, 2012 at 10:19 AM, GeoFox <Edison.Tam at ngc.com> wrote:
> Hi everyone,
>
> I got the following error while building (making) PostGIS 2.0:
>
> ***********************************
>
> ---- Making all in loader
> make[1]: Entering directory
> `/c/projects/postgis/postgis-2.0.0alpha5SVN/loader'
> /bin/sh ..//libtool --mode=link gcc -g -O2  -DDLL_EXPORT -DPIC
> -I/c/projects/pg/pg91/include   -mwindows shpopen.o dbfopen.o
> shp2pgsql-core.o shpcommon.o shp2pgsql-gui.o getopt.o safileio.o
> pgsql2shp-core.o ../liblwgeom/liblwgeom.la shp2pgsql-gui.res -o
> shp2pgsql-gui.exe -Lc:/gtkbundle/lib -lgtk-win32-2.0 -lgdk-win32-2.0
> -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32 -lpangocairo-1.0
> -lgdk_pixbuf-2.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
> -lgthread-2.0 -lglib-2.0 -lintl    -liconv -Lc:/projects/pg/pg91/lib -lpq
> -lintl
> gcc -g -O2 -DDLL_EXPORT -DPIC -I/c/projects/pg/pg91/include -mwindows
> shpopen.o dbfopen.o shp2pgsql-core.o shpcommon.o shp2pgsql-gui.o getopt.o
> safileio.o pgsql2shp-core.o shp2pgsql-gui.res -o shp2pgsql-gui.exe
> ../liblwgeom/.libs/liblwgeom.a -L/c/projects/geos/rel-3.3.2/lib
> /c/projects/geos/rel-3.3.2/lib/libgeos_c.dll.a
> /c/projects/geos/rel-3.3.2/lib/libgeos.dll.a -L/c/projects/pg/pg91/lib
> /c/projects/pg/pg91/lib/libproj.a -Lc:/gtkbundle/lib -lgtk-win32-2.0
> -lgdk-win32-2.0 -latk-1.0 -lgio-2.0 -lpangowin32-1.0 -lgdi32
> -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lpango-1.0 -lcairo -lgobject-2.0
> -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -Lc:/projects/pg/pg91/lib -lpq
> /mingw/lib/libintl.dll.a /c/mingw/lib/libiconv.dll.a
> -L/c/projects/geos/rel-3.3.2/lib -L/c/mingw/lib -L/mingw/lib
> -L/c/projects/geos/rel-3.3.2/lib -L/c/mingw/lib -L/mingw/lib
> shp2pgsql-gui.o: In function `usage':
> c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3435:
> undefined reference to `libintl_printf'
> c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3436:
> undefined reference to `libintl_printf'
> c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3437:
> undefined reference to `libintl_printf'
> c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3438:
> undefined reference to `libintl_printf'
> c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3439:
> undefined reference to `libintl_printf'
> shp2pgsql-gui.o:c:\projects\postgis\postgis-2.0.0alpha5SVN\loader/shp2pgsql-gui.c:3440:
> more undefined references to `libintl_printf' follow
> collect2: ld returned 1 exit status
> make[1]: *** [shp2pgsql-gui.exe] Error 1
> make[1]: Leaving directory
> `/c/projects/postgis/postgis-2.0.0alpha5SVN/loader'
> make: *** [all] Error 1
>
> ***********************************
>
> Does anyone have any idea how to fix it? Thank you so much!
>
>
> -----
> Edison Tam
> NGC SWE
> US
> --
> View this message in context: http://postgis.17.n6.nabble.com/Building-PostGIS2-0-undefined-reference-to-libintl-printf-tp4477049p4477049.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users



More information about the postgis-users mailing list