Sachin Srivastava sachin.srivastava at enterprisedb.com
Tue Feb 22 00:47:55 PST 2011
Hello All,

I have built PostgreSQL 9.0.3 on MinGW and then using the same I was building slony1-2.0.6.
The first error i got was 
i) error: storage size of 'act' isn't known
I got this around by changing the ifdef on line 1065 in slon.c from "#ifndef CYGWIN to #ifndef WIN32".

ii) Now I am getting :

gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations  -I../.. -I../../src/slon -o slon.exe slon.o runtime_config.o local_listen.o remote_listen.o remote_worker.o sync_thread.o cleanup_thread.o scheduler.o dbutils.o conf-file.o confoptions.o misc.o ../parsestatements/scanner.o port/pipe.o port/win32service.o win32ver.o  -lpgport -L/c/pgsql-9.0.3/lib -L/c/pgsql-9.0.3/lib -lpq  -lpthread -lwsock32
c:/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../libmingwex.a(getopt.o):getopt.c:(.text+0xb40): multiple definition of `getopt'
c:/pgsql-9.0.3/lib/libpgport.a(getopt.o):getopt.c:(.text+0x0): first defined here
remote_worker.o: In function `copy_set':
c:\slony1-2.0.6\src\slon/remote_worker.c:2553: undefined reference to `slon_terminate_worker'
c:\slony1-2.0.6\src\slon/remote_worker.c:2542: undefined reference to `slon_terminate_worker'
collect2: ld returned 1 exit status
make[2]: *** [slon.exe] Error 1
make[2]: Leaving directory `/c/slony1-2.0.6/src/slon'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/c/slony1-2.0.6/src'
make: *** [all] Error 2


In PostgreSQL 9.0.3 they have included (which was not there in 9.0.2 and thus slony builds fine there.):
> #mingw has adopted a GNU-centric interpretation of optind/optreset,
> # so always use our version on Windows.
> if test "$PORTNAME" = "win32"; then
>   case " $LIBOBJS " in
>   *" getopt.$ac_objext "* ) ;;
>   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
>  ;;
> esac

Any help to make me go forward with this would be highly appreciated.

Thanks a lot.






--Regards,
Sachin Srivastava
EnterpriseDB, the Enterprise PostgreSQL company.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.slony.info/pipermail/slony1-general/attachments/20110222/99c9dc0c/attachment.htm 


More information about the Slony1-general mailing list