<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello All,<div><br></div><div>I have built PostgreSQL 9.0.3 on MinGW and then using the same I was building slony1-2.0.6.</div><div>The first error i got was </div><div>i) error: storage size of 'act' isn't known</div><div>I got this around by changing the ifdef on line 1065 in slon.c from "#ifndef CYGWIN to #ifndef WIN32".</div><div><br></div><div>ii) Now I am getting :</div><div><br></div><div><i>gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../.. -I../../sr</i><i>c/slon -o slon.exe slon.o runtime_config.o local_listen.o remote_listen.o remote</i><i>_worker.o sync_thread.o cleanup_thread.o scheduler.o dbutils.o conf-file.o confo</i><i>ptions.o misc.o ../parsestatements/scanner.o port/pipe.o port/win32service.o win</i><i>32ver.o -lpgport -L/c/pgsql-9.0.3/lib -L/c/pgsql-9.0.3/lib -lpq -lpthread -lws</i><i>ock32</i></div><div><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><i>c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../libmingwex.a(getopt.o):getopt.c:(</i><i>.text+0xb40): multiple definition of `getopt'</i></div><div><i>c:/pgsql-9.0.3/lib/libpgport.a(getopt.o):getopt.c:(.text+0x0): first defined her</i><i>e</i></div><div><i>remote_worker.o: In function `copy_set':</i></div><div><i>c:\slony1-2.0.6\src\slon/remote_worker.c:2553: undefined reference to `slon_term</i><i>inate_worker'</i></div><div><i>c:\slony1-2.0.6\src\slon/remote_worker.c:2542: undefined reference to `slon_term</i><i>inate_worker'</i></div><div><i>collect2: ld returned 1 exit status</i></div><div><i>make[2]: *** [slon.exe] Error 1</i></div><div><i>make[2]: Leaving directory `/c/slony1-2.0.6/src/slon'</i></div><div><i>make[1]: *** [all] Error 2</i></div><div><i>make[1]: Leaving directory `/c/slony1-2.0.6/src'</i></div><div><i>make: *** [all] Error 2</i></div><div><i><br></i></div><div><i><br></i></div><div>In PostgreSQL 9.0.3 they have included (which was not there in 9.0.2 and thus slony builds fine there.):</div><div><div>> #mingw has adopted a GNU-centric interpretation of optind/optreset,</div><div>> # so always use our version on Windows.</div><div>> if test "$PORTNAME" = "win32"; then</div><div>> case " $LIBOBJS " in</div><div>> *" getopt.$ac_objext "* ) ;;</div><div>> *) LIBOBJS="$LIBOBJS getopt.$ac_objext"</div><div>> ;;</div><div>> esac</div></div><div><br></div><div>Any help to make me go forward with this would be highly appreciated.</div><div><br></div><div>Thanks a lot.</div><div><br></div><div><br></div><div><i><br></i></div><div><i><br></i></div><div><i><br></i></div><div><i><br></i></div><div>--Regards,</div><div>Sachin Srivastava</div><div><a href="http://www.enterprisedb.com">EnterpriseDB</a>, the <a href="http://www.enterprisedb.com">Enterprise PostgreSQL</a> company.</div></div></div></span></div></span></div></span></div></span></div>
</div>
<br></div></body></html>