[postgis-devel] [PostGIS] #1158: Can't compile under Windows mingw

PostGIS trac at osgeo.org
Sun Aug 14 21:15:32 PDT 2011


#1158: Can't compile under Windows mingw
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  strk         
     Type:  defect   |      Status:  new          
 Priority:  blocker  |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by robe):

 I think its better, but now I get different errors:

 {{{
 geometry_gist_selectivity.c:1507:28: warning: no newline at end of file
 dlltool --export-all  --output-def libpostgis-2.0dll.def lwgeom_debug.o
 lwgeom_accum.o lwgeom_spheroid.o lwgeom_ogc.o lwgeom_functions_analytic.o
 lwgeom_inout.o lwgeom_estimate.o lwgeom_functions_basic.o lwgeom_gist.o
 lwgeom_btree.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o
 lwgeom_geos.o lwgeom_geos_prepared.o lwgeom_geos_clean.o
 lwgeom_geos_relatematch.o lwgeom_export.o lwgeom_in_gml.o lwgeom_in_kml.o
 lwgeom_triggers.o lwgeom_dump.o lwgeom_functions_lrs.o long_xact.o
 lwgeom_sqlmm.o lwgeom_rtree.o geography_inout.o gserialized_gist.o
 gserialized_typmod.o gserialized_gist_2d.o gserialized_gist_nd.o
 geography_btree.o geography_estimate.o geography_measurement.o
 geometry_gist_selectivity.o
 dllwrap  -o postgis-2.0.dll --dllname postgis-2.0.dll  --def
 libpostgis-2.0dll.def lwgeom_debug.o lwgeom_accum.o lwgeom_spheroid.o
 lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_inout.o lwgeom_estimate.o
 lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_box.o
 lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_geos.o lwgeom_geos_prepared.o
 lwgeom_geos_clean.o lwgeom_geos_relatematch.o lwgeom_export.o
 lwgeom_in_gml.o lwgeom_in_kml.o lwgeom_triggers.o lwgeom_dump.o
 lwgeom_functions_lrs.o long_xact.o lwgeom_sqlmm.o lwgeom_rtree.o
 geography_inout.o gserialized_gist.o gserialized_typmod.o
 gserialized_gist_2d.o gserialized_gist_nd.o geography_btree.o
 geography_estimate.o geography_measurement.o geometry_gist_selectivity.o
 -Lc:/projects/pg/pg84/lib -lpostgres -L/c/projects/geos/rel-3.3.1SVN/lib
 -L/c/projects/proj/rel-4.6.1/lib
 -L/c/projects/libxml/libxml2-2.7.8release/lib -Lc:/projects/pg/pg84/lib
 ../libpgcommon/libpgcommon.a ../liblwgeom/.libs/liblwgeom.a -lgeos_c
 -lproj -lxml2 -liconv -lws2_32
 ../libpgcommon/libpgcommon.a(lwgeom_pg.o): In function `pg_alloc':
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_pg.c:128: undefined reference
 to `errmsg_internal'
 ../libpgcommon/libpgcommon.a(lwgeom_pg.o): In function `pg_error':
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_pg.c:161: undefined reference
 to `pg_vsnprintf'
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_pg.c:164: undefined reference
 to `errmsg_internal'
 ../libpgcommon/libpgcommon.a(lwgeom_pg.o): In function `pg_notice':
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_pg.c:181: undefined reference
 to `errmsg_internal'
 ../libpgcommon/libpgcommon.a(lwgeom_transform.o): In function
 `DeleteFromPROJ4SRSCache':
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_transform.c:580: undefined
 reference to `MemoryContextDelete'
 ../libpgcommon/libpgcommon.a(lwgeom_transform.o): In function
 `SetPROJ4LibPath':
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_transform.c:616: undefined
 reference to `_imp__my_exec_path'
 c:/projects/PostGIS/trunk/libpgcommon/lwgeom_transform.c:616: undefined
 reference to `get_share_path'
 collect2: ld returned 1 exit status
 C:\MinGW\bin\dllwrap.exe: C:\MinGW\bin\gcc exited with status 1
 make[1]: *** [postgis-2.0.dll] Error 1
 make[1]: Leaving directory `/c/projects/PostGIS/trunk/postgis'
 make: *** [all] Error 1
 }}}

 full log attached:

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1158#comment:17>
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