<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif">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:</font>
<br>
<br><font size=2 face="sans-serif">cd /usr/src/postgresql-7.3.4-2/</font>
<br><font size=2 face="sans-serif">./configure --enable-multibyte --with-CXX --prefix=/usr --sysconfdir=/etc --docdir=/usr/doc/postgresql-7.3.4</font>
<br><font size=2 face="sans-serif">make</font>
<br><font size=2 face="sans-serif">cd /usr/src/postgresql-7.3.4-2/contrib/postgis-0.7.5/</font>
<br><font size=2 face="sans-serif">make</font>
<br><font size=2 face="sans-serif">make install</font>
<br>
<br><font size=2 face="sans-serif">The known problem appeared and I read about the problems with cost.h and the postgis makefile. So I changed cost.h</font>
<br>
<br><font size=2 face="sans-serif">//extern double cpu_index_tuple_cost;</font>
<br><font size=2 face="sans-serif">extern DLLIMPORT double cpu_index_tuple_cost;</font>
<br>
<br><font size=2 face="sans-serif">and makefile</font>
<br>
<br><font size=2 face="sans-serif">SHLIB_LINK=$(filter -L%, $(LDFLAGS))</font>
<br><font size=2 face="sans-serif">ifeq ($(USE_PROJ),1)</font>
<br><font size=2 face="sans-serif"> SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L$(PROJ_DIR)/lib -lproj</font>
<br><font size=2 face="sans-serif">else</font>
<br><font size=2 face="sans-serif"> SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS) -L../../src/backend -lpostgres</font>
<br><font size=2 face="sans-serif">endif</font>
<br>
<br><font size=2 face="sans-serif">then I try make and nothing changed:</font>
<br>
<br><font size=2 face="sans-serif">dlltool --export-all --output-def postgis.def postgis_debug.o postgis_ops.o post</font>
<br><font size=2 face="sans-serif">gis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_transform.o postg</font>
<br><font size=2 face="sans-serif">is_gist_72.o postgis_estimate.o</font>
<br><font size=2 face="sans-serif">dllwrap -o postgis.dll --dllname postgis.dll --def postgis.def postgis_debug.o p</font>
<br><font size=2 face="sans-serif">ostgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o postgis_</font>
<br><font size=2 face="sans-serif">transform.o postgis_gist_72.o postgis_estimate.o ../../src/utils/dllinit.o -L/us</font>
<br><font size=2 face="sans-serif">r/local/lib -L/usr/local/lib -L../../src/backend -lpostgres -L../../src/backend</font>
<br><font size=2 face="sans-serif">-lpostgres</font>
<br><font size=2 face="sans-serif">fu000001.o(.idata$3+0xc): undefined reference to `_libpostgres_a_iname'</font>
<br><font size=2 face="sans-serif">nmth000000.o(.idata$4+0x0): undefined reference to `__nm__cpu_index_tuple_cost'</font>
<br><font size=2 face="sans-serif">Info: resolving _cpu_index_tuple_cost by linking to __imp__cpu_index_tuple_cost</font>
<br><font size=2 face="sans-serif">(auto-import)</font>
<br><font size=2 face="sans-serif">collect2: ld returned 1 exit status</font>
<br><font size=2 face="sans-serif">dllwrap: gcc exited with status 1</font>
<br><font size=2 face="sans-serif">make: *** [libpostgis.a] Error 1</font>
<br>
<br><font size=2 face="sans-serif">Can anybody give me a hint to solve the problem?</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">Stefan Wiegand</font>
<br>