<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=490391017-05112003><FONT face=Arial color=#0000ff
size=2>Try</FONT></SPAN></DIV>
<DIV><SPAN class=490391017-05112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=490391017-05112003><FONT face=Arial color=#0000ff size=2>make
clean </FONT></SPAN></DIV>
<DIV><SPAN class=490391017-05112003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=490391017-05112003><FONT face=Arial color=#0000ff size=2>And
then your make again.</FONT></SPAN></DIV>
<BLOCKQUOTE>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Stefan Wiegand
[mailto:s.wiegand@kdvz.de]<BR><B>Sent:</B> Wednesday, November 05, 2003 11:18
AM<BR><B>To:</B> postgis-users@postgis.refractions.net<BR><B>Subject:</B>
[postgis-users] PostGIS under CYGWIN<BR><BR></FONT></DIV><BR><FONT
face=sans-serif size=2>Hello,</FONT> <BR><BR><FONT face=sans-serif size=2>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 face=sans-serif size=2>cd
/usr/src/postgresql-7.3.4-2/</FONT> <BR><FONT face=sans-serif
size=2>./configure --enable-multibyte --with-CXX --prefix=/usr
--sysconfdir=/etc --docdir=/usr/doc/postgresql-7.3.4</FONT> <BR><FONT
face=sans-serif size=2>make</FONT> <BR><FONT face=sans-serif size=2>cd
/usr/src/postgresql-7.3.4-2/contrib/postgis-0.7.5/</FONT> <BR><FONT
face=sans-serif size=2>make</FONT> <BR><FONT face=sans-serif size=2>make
install</FONT> <BR><BR><FONT face=sans-serif size=2>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 face=sans-serif size=2>//extern double
cpu_index_tuple_cost;</FONT> <BR><FONT face=sans-serif size=2>extern DLLIMPORT
double cpu_index_tuple_cost;</FONT> <BR><BR><FONT face=sans-serif size=2>and
makefile</FONT> <BR><BR><FONT face=sans-serif size=2>SHLIB_LINK=$(filter -L%,
$(LDFLAGS))</FONT> <BR><FONT face=sans-serif size=2>ifeq
($(USE_PROJ),1)</FONT> <BR><FONT face=sans-serif
size=2> SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS)
-L$(PROJ_DIR)/lib -lproj</FONT> <BR><FONT face=sans-serif size=2>else</FONT>
<BR><FONT face=sans-serif size=2> SHLIB_LINK=$(filter -L%, $(LDFLAGS))
$(BE_DLLLIBS) -L../../src/backend -lpostgres</FONT> <BR><FONT face=sans-serif
size=2>endif</FONT> <BR><BR><FONT face=sans-serif size=2>then I try make and
nothing changed:</FONT> <BR><BR><FONT face=sans-serif size=2>dlltool
--export-all --output-def postgis.def postgis_debug.o postgis_ops.o
post</FONT> <BR><FONT face=sans-serif size=2>gis_fn.o postgis_inout.o
postgis_proj.o postgis_chip.o postgis_transform.o postg</FONT> <BR><FONT
face=sans-serif size=2>is_gist_72.o postgis_estimate.o</FONT> <BR><FONT
face=sans-serif size=2>dllwrap -o postgis.dll --dllname postgis.dll --def
postgis.def postgis_debug.o p</FONT> <BR><FONT face=sans-serif
size=2>ostgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o postgis_chip.o
postgis_</FONT> <BR><FONT face=sans-serif size=2>transform.o postgis_gist_72.o
postgis_estimate.o ../../src/utils/dllinit.o -L/us</FONT> <BR><FONT
face=sans-serif size=2>r/local/lib -L/usr/local/lib -L../../src/backend
-lpostgres -L../../src/backend</FONT> <BR><FONT face=sans-serif
size=2>-lpostgres</FONT> <BR><FONT face=sans-serif
size=2>fu000001.o(.idata$3+0xc): undefined reference to
`_libpostgres_a_iname'</FONT> <BR><FONT face=sans-serif
size=2>nmth000000.o(.idata$4+0x0): undefined reference to
`__nm__cpu_index_tuple_cost'</FONT> <BR><FONT face=sans-serif size=2>Info:
resolving _cpu_index_tuple_cost by linking to
__imp__cpu_index_tuple_cost</FONT> <BR><FONT face=sans-serif
size=2>(auto-import)</FONT> <BR><FONT face=sans-serif size=2>collect2: ld
returned 1 exit status</FONT> <BR><FONT face=sans-serif size=2>dllwrap: gcc
exited with status 1</FONT> <BR><FONT face=sans-serif size=2>make: ***
[libpostgis.a] Error 1</FONT> <BR><BR><FONT face=sans-serif size=2>Can anybody
give me a hint to solve the problem?</FONT> <BR><BR><FONT face=sans-serif
size=2>Thanks</FONT> <BR><BR><FONT face=sans-serif size=2>Stefan
Wiegand</FONT> <BR></BLOCKQUOTE></BODY></HTML>