[postgis-devel] RE: PostGIS compilation with Cygwin

Norman Vine nhv at cape.com
Fri Oct 5 10:17:38 PDT 2007


Rimma V. Nehme writes:
> 
> Postgres was built locally with cygwin. (I am doing development with
> PostgreSQL and
> do a source build using cygwin with Eclipse as my IDE).


Hmm I am confused are you building this with Cygwin or MingW

Your earlier post seems to indicate that you are using MingW

"""
c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1
"""

Norman



> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 5 Oct 2007 12:32:55 -0400
> From: "Norman Vine" <nhv at cape.com>
> Subject: RE: [postgis-devel] RE: PostGIS compilation with Cygwin
> To: "'PostGIS Development Discussion'"
> 	<postgis-devel at postgis.refractions.net>
> Message-ID: <20071005144159.BAA8027FE3 at mrelay1.cape.com>
> Content-Type: text/plain;	charset="us-ascii"
> 
> Obe, Regina writes:
> > Rimma, 
> >  
> > I'm not sure if building on Cygwin is still being tested with 
> > postgis so its kind of hard to tell what kind of strange 
> > errors you would be getting.
> >  
> > Have you tried compiling with MinGW.  I think that's what 
> > most Windows developers are using to compile Postgis.  That's 
> > what I usually use but its been a while since I've done that 
> > myself.  I haven't tried Ming on my windows vista laptop, so 
> > I'm not sure if there are any issues with running that on Vista.
> >  
> 
> I think one needs to either build Postgres locally or have 
> the postgres-dev distribution as well as the source distribution
> installed
> 
> HTH
> 
> Norman
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 5 Oct 2007 12:52:27 -0400
> From: "Rimma V. Nehme" <rnehme at purdue.edu>
> Subject: [postgis-devel] RE: PostGIS compilation with Cygwin
> To: <postgis-devel at postgis.refractions.net>
> Message-ID: <001601c80770$1d331e00$57995a00$@edu>
> Content-Type: text/plain; charset="us-ascii"
> 
>  
> 
> Regina,
> 
>  
> 
> I get an ld with postgres issue, probably because it was 
> built with cygwin?
> 
>  
> 
> ld: cannot find -lpostgres
> 
>  
> 
>  
> 
> More detailed compilation error is below.
> 
>  
> 
>  
> 
> $ make
> 
> make -C lwgeom 
> 
> make[1]: Entering directory
> `/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/
> lwgeom'
> 
> /mingw/bin/dlltool --export-all  --output-def lwgeom.def 
> measures.o box2d.o
> ptar
> ray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o lwpoly.o 
> lwmpoint.o lwmline.o
> lwm
> poly.o lwcollection.o   wktunparse.o lwgparse.o 
> wktparse.tab.o lex.yy.o
> vsprintf
> .o liblwgeom.o lwgeom_pg.o lwgeom_debug.o lwgeom_spheroid.o 
> lwgeom_ogc.o
> lwgeom_
> functions_analytic.o lwgeom_nojts.o lwgeom_inout.o lwgeom_estimate.o
> lwgeom_func
> tions_basic.o lwgeom_gist.o lwgeom_btree.o lwgeom_transform.o 
> stringBuffer.o
> lwg
> eom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o lwgeom_chip.o 
> lwgeom_svg.o
> lwgeom_
> gml.o lwgeom_kml.o lwgeom_triggers.o lwgeom_dump.o 
> lwgeom_functions_lrs.o
> long_x
> act.o lwcurve.o lwcompound.o lwcurvepoly.o lwmcurve.o lwmsurface.o
> lwgeom_sqlmm.
> o lwgeom_rtree.o
> 
> /mingw/bin/dllwrap  -o liblwgeom.dll --dllname liblwgeom.dll  --def
> lwgeom.def m
> easures.o box2d.o ptarray.o lwgeom_api.o lwgeom.o lwpoint.o lwline.o
> lwpoly.o lw
> mpoint.o lwmline.o lwmpoly.o lwcollection.o   wktunparse.o lwgparse.o
> wktparse.t
> ab.o lex.yy.o vsprintf.o liblwgeom.o lwgeom_pg.o lwgeom_debug.o
> lwgeom_spheroid.
> o lwgeom_ogc.o lwgeom_functions_analytic.o lwgeom_nojts.o 
> lwgeom_inout.o
> lwgeom_
> estimate.o lwgeom_functions_basic.o lwgeom_gist.o lwgeom_btree.o
> lwgeom_transfor
> m.o stringBuffer.o lwgeom_box.o lwgeom_box3d.o lwgeom_box2dfloat4.o
> lwgeom_chip.
> o lwgeom_svg.o lwgeom_gml.o lwgeom_kml.o lwgeom_triggers.o 
> lwgeom_dump.o
> lwgeom_
> functions_lrs.o long_xact.o lwcurve.o lwcompound.o 
> lwcurvepoly.o lwmcurve.o
> lwms
> urface.o lwgeom_sqlmm.o lwgeom_rtree.o  
> -L/cygdrive/c/postgres/pgsql/lib
> -lpostg
> res 
> 
> ld: cannot find -lpostgres
> 
> c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1
> 
> make[1]: *** [liblwgeom.dll] Error 1
> 
> make[1]: Leaving directory
> `/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/l
> wgeom'
> 
> make: *** [liblwgeom] Error 2
> 
>  
> 
>  
> 
> ________________________________
> 
>  
> 
>  
> 
> Message: 4
> 
> Date: Fri, 5 Oct 2007 12:02:32 -0400
> 
> From: "Obe, Regina" <robe.dnd at cityofboston.gov>
> 
> Subject: RE: [postgis-devel] RE: PostGIS compilation with Cygwin
> 
> To: "PostGIS Development Discussion"
> 
>       <postgis-devel at postgis.refractions.net>
> 
> Message-ID:
> 
>       <53F9CF533E1AA14EA1F8C5C08ABC08D20293D3C0 at ZDND.DND.boston.cob>
> 
> Content-Type: text/plain; charset="us-ascii"
> 
>  
> 
> Rimma, 
> 
>  
> 
> I'm not sure if building on Cygwin is still being tested with 
> postgis so its
> kind of hard to tell what kind of strange errors you would be getting.
> 
>  
> 
> Have you tried compiling with MinGW.  I think that's what most Windows
> developers are using to compile Postgis.  That's what I 
> usually use but its
> been a while since I've done that myself.  I haven't tried Ming on my
> windows vista laptop, so I'm not sure if there are any issues 
> with running
> that on Vista.
> 
>  
> 
> Sorry I'm not of much help.
> 
>  
> 
> Regina
> 
>  
> 
> ________________________________
> 
>  
> 
>  
> 
> From: Rimma V. Nehme [mailto:rnehme at purdue.edu] 
> Sent: Friday, October 05, 2007 10:40 AM
> To: 'postgis-devel at postgis.refractions.net'
> Subject: RE: PostGIS compilation with Cygwin
> 
>  
> 
> Hi Regina,
> 
>  
> 
> No on the opposite, I am running PostgreSQL on Windows Vista.
> 
> The reason I use cygwin is because that's how my PostgreSQL was
> 
> setup (to be built with cygwin).
> 
>  
> 
>  
> 
>  
> 
> When I issue a 'make' for PostGIS, I get a lot of undefined statements
> 
> (something has to do with loader not seeing libpostgres.a).
> 
>  
> 
> ..
> 
>  
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:172: undefined reference to `_elog_start'
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:172: undefined reference to `_elog_finish'
> 
> lwgeom_nojts.o: In function `isring':
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:180: undefined reference to `_elog_start'
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:180: undefined reference to `_elog_finish'
> 
> lwgeom_nojts.o: In function `pointonsurface':
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:188: undefined reference to `_elog_start'
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:188: undefined reference to `_elog_finish'
> 
> lwgeom_nojts.o: In function `unite_garray':
> 
> /cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lw
> geom/lwgeom_no
> jts.
> 
> c:196: undefined reference to `_elog_start'
> 
>  
> 
> .
> 
>  
> 
> I have seen posts suggesting modifying the Makefile. I've 
> tried all of them,
> but
> 
> I keep getting undefines, so I wanted to ask for help.
> 
>  
> 
> If you have any suggestions, please let me know.
> 
>  
> 
> Thank you,
> 
> Rimma
> 
>  
> 
> --------------------------------------------------------------
> --------------
> ----------------------------------------
> 
>  
> 
> Rimma,
> 
>  
> 
> Just wondering why you want to use Cygwin? Are you using very old
> 
> hardware like windows 95 or NT or something.
> 
>  
> 
> I haven't heard of any people trying to run PostGIS on Cygwin since
> 
> PostgreSQL introduced native windows support in (PostgreSQL 8.0
> 
> version).
> 
>  
> 
> >From what I remember of compiling postgis on Cygwin - it pretty much
> 
> followed the unix instructions.
> 
>  
> 
> http://postgis.refractions.net/docs/ch02.html
> 
>  
> 
> Hope that helps,
> 
> Regina
> 
>  
> 
>  
> 
> From: Rimma V. Nehme [mailto:rnehme at purdue.edu] 
> Sent: Thursday, October 04, 2007 7:12 PM
> To: 'postgis-devel at postgis.refractions.net'
> Subject: PostGIS compilation with Cygwin
> 
>  
> 
> Hi,
> 
>  
> 
> Can anyone refer me to the PostGIS compilation guide with Cygwin.
> 
>  
> 
> Thank you,
> 
> Rimma
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.refractions.net/pipermail/postgis-devel/attachmen
> ts/20071005/89
> 7689b5/attachment.html
> 
> ------------------------------
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
> 
> 
> End of postgis-devel Digest, Vol 49, Issue 3
> ********************************************
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel




More information about the postgis-devel mailing list