[postgis-devel] [PostGIS] #494: [wktraster] ST_DumpAsPolygons crashes under MingW compiled wktraster (gdal)
PostGIS
trac at osgeo.org
Fri Apr 16 13:42:17 PDT 2010
#494: [wktraster] ST_DumpAsPolygons crashes under MingW compiled wktraster (gdal)
------------------------+---------------------------------------------------
Reporter: robe | Owner: pracine
Type: defect | Status: new
Priority: medium | Milestone: WKTRaster 0.1.6
Component: wktraster | Version: trunk
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by pracine):
On my side I tried to compile with GDAL. In the first attempt I try to
compile GDAL following Regina advice:
./configure --without-libtool --with-libtiff=internal --with-
libz=/c/gtk/include --prefix=/c/projects/GDAL/rel-1.7.1
When the makefile tries to make libgdal.a, I get:
rm -f libgdal.a ar r /c/thesrc/gdal/gdal-1.7.1/libgdal.a
/c/thesrc/gdal/gdal-1.7.1/frmts/o/*.o / c/thesrc/gdal/gdal-1.7.1/gcore/*.o
/c/thesrc/gdal/gdal-1.7.1/port/*.o /c/thesrc/ gdal/gdal-1.7.1/alg/*.o
/c/thesrc/gdal/gdal-1.7.1/ogr/ogrsf_frmts/o/*.o ./ogr/og
rgeometryfactory.o ./ogr/ogrpoint.o ./ogr/ogrcurve.o ./ogr/ogrlinestring.o
./ogr /ogrlinearring.o ./ogr/ogrpolygon.o ./ogr/ogrutils.o
./ogr/ogrgeometry.o ./ogr/o grgeometrycollection.o ./ogr/ogrmultipolygon.o
./ogr/ogrsurface.o ./ogr/ogrmulti point.o ./ogr/ogrmultilinestring.o
./ogr/ogr_api.o ./ogr/ogrfeature.o ./ogr/ogrf eaturedefn.o
./ogr/ogrfeaturequery.o ./ogr/ogrfeaturestyle.o ./ogr/ogrfielddefn. o
./ogr/ogrspatialreference.o ./ogr/ogr_srsnode.o ./ogr/ogr_srs_proj4.o
./ogr/og r_fromepsg.o ./ogr/ogrct.o ./ogr/ogr_opt.o ./ogr/ogr_srs_esri.o
./ogr/ogr_srs_pc i.o ./ogr/ogr_srs_usgs.o ./ogr/ogr_srs_dict.o
./ogr/ogr_srs_panorama.o ./ogr/ogr _srs_ozi.o ./ogr/ogr_srs_erm.o
./ogr/swq.o ./ogr/ogr_srs_validate.o ./ogr/ogr_sr s_xml.o
./ogr/ograssemblepolygon.o ./ogr/ogr2gmlgeometry.o ./ogr/gml2ogrgeometry
.o ./ogr/ogr_expat.o /bin/sh: /mingw/bin/ar: Bad file number make[1]: ***
/c/thesrc/gdal/gdal-1.7.1/libgdal.a Error 126 make[1]: Leaving directory
`/c/thesrc/gdal/gdal-1.7.1' make: *** [check-lib] Error 2
Apparently meaning that the "ar" command contains too many characters...
If I leave the --without-libtool parameter, GDAL compile fine (I get
libgdal.a, libgdal.la and libgdal.lai in /c/thesrc/gdal/gdal-1.7.1\.libs)
but when WKT Raster link I get a very long serie of things looking like
this:
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:217: r+®f+®rence ind+®finie vers -½ gnu_cxx::exchange_and_add(int
vo latile*, int) -+
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:218: r+®f+®rence ind+®finie vers -½
std::string::_Rep::_M_destroy(std::a llocator<char> const&) -+
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:217: r+®f+®rence ind+®finie vers -½ gnu_cxx::exchange_and_add(int
vo latile*, int) -+
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:218: r+®f+®rence ind+®finie vers -½
std::string::_Rep::_M_destroy(std::a llocator<char> const&) -+
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:217: r+®f+®rence ind+®finie vers -½ gnu_cxx::exchange_and_add(int
vo latile*, int) -+
c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_s
tring.h:218: r+®f+®rence ind+®finie vers -½
std::string::_Rep::_M_destroy(std::a llocator<char> const&) -+ collect2:
ld returned 1 exit status c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc a
terminÚ avec le statut 1 make[1]: *** [rtpostgis.dll] Error 1 make[1]:
Leaving directory `/c/thesrc/wktraster/wktraster-svn/rt_pg' make: ***
[pglib] Error 2
Any idea?
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/494#comment:2>
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-devel
mailing list