[postgis-users] PostGIS under CYGWIN

Stefan Wiegand s.wiegand at kdvz.de
Wed Nov 5 08:18:22 PST 2003


Hello,

I am trying to build a mapsolution with mapserver and postgresql / 
postgis. First I install cygwin an windows 2000 with no problems. 
Postgresql 7.3.4-2 was included as binaries. Then I read the instructions 
for postgis and also install the sources for postgresql. Postgresql at all 
is now running (it was not built from source). After this, I put postgis 
into /contrib and followed the instructions:

cd /usr/src/postgresql-7.3.4-2/
./configure --enable-multibyte --with-CXX --prefix=/usr --sysconfdir=/etc 
--docdir=/usr/doc/postgresql-7.3.4
make
cd /usr/src/postgresql-7.3.4-2/contrib/postgis-0.7.5/
make
make install

The known problem appeared and I read about the problems with cost.h and 
the postgis makefile. So I changed cost.h

//extern double cpu_index_tuple_cost;
extern DLLIMPORT double cpu_index_tuple_cost;

and makefile

SHLIB_LINK=$(filter -L%, $(LDFLAGS))
ifeq ($(USE_PROJ),1)
 SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L$(PROJ_DIR)/lib 
-lproj
else
 SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L../../src/backend 
-lpostgres
endif

then I try make and nothing changed:

dlltool --export-all --output-def postgis.def postgis_debug.o 
postgis_ops.o post
gis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o 
postg
is_gist_72.o postgis_estimate.o
dllwrap -o postgis.dll --dllname postgis.dll --def postgis.def 
postgis_debug.o p
ostgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o 
postgis_
transform.o postgis_gist_72.o postgis_estimate.o ../../src/utils/dllinit.o 
-L/us
r/local/lib -L/usr/local/lib -L../../src/backend -lpostgres 
-L../../src/backend
-lpostgres
fu000001.o(.idata$3+0xc): undefined reference to `_libpostgres_a_iname'
nmth000000.o(.idata$4+0x0): undefined reference to 
`__nm__cpu_index_tuple_cost'
Info: resolving _cpu_index_tuple_cost by linking to 
__imp__cpu_index_tuple_cost
(auto-import)
collect2: ld returned 1 exit status
dllwrap: gcc exited with status 1
make: *** [libpostgis.a] Error 1

Can anybody give me a hint to solve the problem?

Thanks

Stefan Wiegand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20031105/96da126f/attachment.html>


More information about the postgis-users mailing list