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

PostGIS trac at osgeo.org
Sat Aug 13 07:24:15 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):

 strk,

 cd libpgcommon && make

 fails.  Log looks like this:


 {{{
 gcc -g -O2 -I/c/projects/proj/rel-4.6.1/include
 -Ic:/projects/pg/pg84/include/POSTGR~1/server -I../liblwgeom  -DDLL_EXPORT
 -DPIC  -Wall -Wmissing-prototypes  -c -o lwgeom_transform.o
 lwgeom_transform.c
 In file included from c:/projects/pg/pg84/include/POSTGR~1/server/c.h:854,
                  from
 c:/projects/pg/pg84/include/POSTGR~1/server/postgres.h:47,
                  from lwgeom_transform.c:13:
 c:/projects/pg/pg84/include/POSTGR~1/server/port.h:17:19: netdb.h: No such
 file or directory
 c:/projects/pg/pg84/include/POSTGR~1/server/port.h:18:17: pwd.h: No such
 file or directory
 c:/projects/pg/pg84/include/POSTGR~1/server/port.h:372:24: netinet/in.h:
 No such file or directory
 c:/projects/pg/pg84/include/POSTGR~1/server/port.h:373:23: arpa/inet.h: No
 such file or directory
 In file included from
 c:/projects/pg/pg84/include/POSTGR~1/server/postgres.h:48,
                  from lwgeom_transform.c:13:
 c:/projects/pg/pg84/include/POSTGR~1/server/utils/elog.h:41:1: warning:
 "ERROR" redefined
 In file included from
 C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:52,
                  from
 c:/projects/pg/pg84/include/POSTGR~1/server/pg_config_os.h:21,
                  from c:/projects/pg/pg84/include/POSTGR~1/server/c.h:87,
                  from
 c:/projects/pg/pg84/include/POSTGR~1/server/postgres.h:47,
                  from lwgeom_transform.c:13:
 C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/wingdi.h:313:1:
 warning: this is the location of the previous definition
 make: *** [lwgeom_transform.o] Error 1

 }}}

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