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

PostGIS trac at osgeo.org
Wed Aug 17 20:57:51 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 thought maybe it was none of the functions in libpgcommon were being
 picked up, but it seems its just the ones in lwgeom_transform.c.  The
 lwgeom_pg.c that have DATUMS e.g. lwgeom_pg.h seem to have installed fine
 since I can use ST_Force_4D etc. from PostgreSQL using this binary.

 I did get a notice about proj can't be dynamically linked or something so
 perhaps that is a signal.  I don't recall seeing that notice before this
 move to libpgcommon, but it is possible I just wasn't paying attention.

 {{{
 *** Warning: This system can not link to static lib archive
 /c/projects/proj/rel-4.6.1/lib/libproj.la.
 *** I have the capability to make that library automatically link in when
 *** you link to this library.  But I can only do this if you have a
 *** shared version of the library, which you do not appear to have.
 libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32
 shared libraries
 }}}

 I am puzzled though -- why does lwgeom_pg.h have the DATUMS for
 lwgeom_pg.c, but yet lwgeom_transform.c the DATUMS are just thrown in
 there instead of in the header file.  Is there a reason for what seems to
 me like an inconsistency?  I tried moving over the DATUMS to the
 lwgeom_transform.h and it compiled, but didn't seem to solve my problem.

 HINT HINT: Mark C., if you are paying attention -- now would be a really
 good time to express your words of wisdom since you know more about this
 mingw stuff than any of us.

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