[postgis-devel] RE: PostGIS compilation with Cygwin
Rimma V. Nehme
rnehme at purdue.edu
Fri Oct 5 09:52:27 PDT 2007
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/lwgeom/lwgeom_no
jts.
c:172: undefined reference to `_elog_start'
/cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lwgeom/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/lwgeom/lwgeom_no
jts.
c:180: undefined reference to `_elog_start'
/cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lwgeom/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/lwgeom/lwgeom_no
jts.
c:188: undefined reference to `_elog_start'
/cygdrive/c/postgres/postgresql-8.2.5/contrib/postgis-1.3.1/lwgeom/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/lwgeom/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.osgeo.org/pipermail/postgis-devel/attachments/20071005/897689b5/attachment.html>
More information about the postgis-devel
mailing list