[postgis-users] PostGIS under CYGWIN

Tyler Mitchell TMitchell at lignum.com
Wed Nov 5 09:27:45 PST 2003






I feel your pain.
The "make clean", then "make" should help.  And I think I had to do a make
clean for postgresql not just postgis, but can't remember.  Hmm...I don't
know if that makes sense...


postgis-users-bounces at postgis.refractions.net wrote on 11/05/2003 08:18:22
AM:

>
> 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




More information about the postgis-users mailing list