Home > Archive > Slony1 PostgreSQL Replication > August 2005 > Slony Win32 port









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slony Win32 port
Hamid Qureshi

2005-08-23, 1:24 pm

Hi,

Can any one tell me the current status of Slony Win32 port. Does it build
under MinGW. If yes can any one provide me the build instructions.

Thanks,
Hamid

Hiroshi Saito

2005-08-23, 1:24 pm

Hi.

Each module already works. (xxid.dll,slony1_funcs.dll,Slonik.exe,Slon.exe,slevent.dll)
However, configure and Makefile still need to be adjusted. I think that I need to clarify
these build procedures. Probably, Dave will cry for GO, when we are ready.

Regards,
Hiroshi Saito

----- Original Message -----
From: "Hamid Qureshi"


> Can any one tell me the current status of Slony Win32 port. Does it build
> under MinGW. If yes can any one provide me the build instructions.

Hamid Qureshi

2005-08-23, 1:24 pm

Hi,

Just managed to compile it successfully. There were a few hiccups

1) A missing "win32ver.rc.in <http://win32ver.rc.in>" in src\slon\port
2) Some minor adjustments in the MakeFile regarding PThreads

Can't wait to see an official windows release.:)

Thanks,
Hamid

On 8/23/05, Hiroshi Saito <saito- BlLeDYhMEWED+c6HKvR8
e3f5DAMn2ifp@public.gmane.org> wrote:
>
> Hi.
>
> Each module already works. (xxid.dll,slony1_funcs.dll,Slonik.exe,Slon.exe,
> slevent.dll)
> However, configure and Makefile still need to be adjusted. I think that I
> need to clarify
> these build procedures. Probably, Dave will cry for GO, when we are ready..
>
> Regards,
> Hiroshi Saito
>
> ----- Original Message -----
> From: "Hamid Qureshi"
>
>
> build
>
>
>


Hiroshi Saito

2005-08-23, 8:25 pm

From: "Hamid Qureshi"

> Just managed to compile it successfully. There were a few hiccups
>
> 1) A missing "win32ver.rc.in <http://win32ver.rc.in>" in src\slon\port
> 2) Some minor adjustments in the MakeFile regarding PThreads


Ah..Thanks!

>
> Can't wait to see an official windows release.:)


Oh, It is great!.
Soon, Andreas becomes easy to use pgAdminIII. :-)

Regards,
Hiroshi Saito
Dave Page

2005-08-23, 8:25 pm


Why, what=E2=80=99s wrong with configure and the makefiles? They work =
perfectly for me.

/D

-----Original Message-----
From: "Hiroshi Saito"<saito- BlLeDYhMEWED+c6HKvR8
e3f5DAMn2ifp@public.gmane.org>
Sent: 23/08/05 18:57:47
To: "Hamid Qureshi"<hamid.qureshi- Re5JQEeQqe8AvxtiuMwx
3w@public.gmane.org>
Cc: =
"slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org"<slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org=
>

Subject: Re: [Slony1-general] Slony Win32 port

Hi.

Each module already works. =
(xxid.dll,slony1_funcs.dll,Slonik.exe,Slon.exe,slevent.dll)
However, configure and Makefile still need to be adjusted. I think that =
I need to clarify
these build procedures. Probably, Dave will cry for GO, when we are =
ready.

Regards,
Hiroshi Saito

----- Original Message -----
From: "Hamid Qureshi"


> Can any one tell me the current status of Slony Win32 port. Does it =

build

> under MinGW. If yes can any one provide me the build instructions.



____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general



-----Unmodified Original Message-----
Hi.

Each module already works. =
(xxid.dll,slony1_funcs.dll,Slonik.exe,Slon.exe,slevent.dll)
However, configure and Makefile still need to be adjusted. I think that =
I need to clarify
these build procedures. Probably, Dave will cry for GO, when we are =
ready.

Regards,
Hiroshi Saito

----- Original Message -----
From: "Hamid Qureshi"


> Can any one tell me the current status of Slony Win32 port. Does it =

build

> under MinGW. If yes can any one provide me the build instructions.



____________________
____________________
_______
Slony1-general mailing list
Slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
http://gborg.postgresql.org/mailman.../slony1-general
Dave Page

2005-08-23, 8:25 pm




____________________
____________

From: slony1-general-bounces- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
[mailto:slony1-general-bounces- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org] On Behalf Of Hamid
Qureshi
Sent: 23 August 2005 19:26
To: slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
Subject: Re: [Slony1-general] Slony Win32 port


Hi,

Just managed to compile it successfully. There were a few
hiccups

1) A missing "win32ver.rc.in" in src\slon\port


Sorry - it's there now.


2) Some minor adjustments in the MakeFile regarding PThreads


What was need on your system? It works fine for Magnus and I.

Regards, Dave.

Hamid Qureshi

2005-08-23, 8:25 pm

Thanks for the win32ver.rc.in <http://win32ver.rc.in/>.

I had to add the following flags to slon MakeFile.

override LDFLAGS += -lwsock32 and -lpthreadGC1

and the following to slonik MakeFile

override LDFLAGS += -lwsock32

Thanks,
Hamid

On 8/23/05, Dave Page <dpage- 6fRByWcp2Fwg5PB3cbIC
Q7VCufUGDwFn@public.gmane.org> wrote:
>
>
> ------------------------------
> *From:* slony1-general-bounces- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org [mailto:
> slony1-general-bounces- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org] *On Behalf Of *Hamid Qureshi
> *Sent:* 23 August 2005 19:26
> *To:* slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
> *Subject:* Re: [Slony1-general] Slony Win32 port
>
> Hi,
>
> Just managed to compile it successfully. There were a few hiccups
>
> 1) A missing "win32ver.rc.in <http://win32ver.rc.in>" in src\slon\port
>
> Sorry - it's there now.
>
>
> 2) Some minor adjustments in the MakeFile regarding PThreads
>
> What was need on your system? It works fine for Magnus and I.
> Regards, Dave.
>


Dave Page

2005-08-23, 8:25 pm




____________________
____________

From: Hamid Qureshi [mailto:hamid.qureshi- Re5JQEeQqe8AvxtiuMwx
3w@public.gmane.org]
Sent: 23 August 2005 22:09
To: Dave Page
Cc: slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
Subject: Re: [Slony1-general] Slony Win32 port


Thanks for the win32ver.rc.in <http://win32ver.rc.in/> .

I had to add the following flags to slon MakeFile.

override LDFLAGS += -lwsock32 and -lpthreadGC1


slon/Makefile has

ifeq ($(PORTNAME), win32)
OBJS += port/pipe.o port/win32service.o $(WIN32RES)
override LDFLAGS += -lwsock32
endif

Which should give you the -lwsock32, and we use -lpthreadgc2 which is
hunted down by configure:

checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
checking for pthread-config... no
checking for the pthreads library -lpthreadgc2... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINA
BLE
checking if more special flags are required for pthreads... n

We could hunt for pthreadgc1 if gc2 isn't there of course - do you know
if it's missing anything we might need?




and the following to slonik MakeFile

override LDFLAGS += -lwsock32


That shouldn't be needed - slonik doesn't use any Winsock functions
itself. Where did you get your libpq from?

Regards, Dave.

Hiroshi Saito

2005-08-24, 3:24 am

> We could hunt for pthreadgc1 if gc2 isn't there of course - do you know
> if it's missing anything we might need?


Um, I think that stable version currently used in large numbers about it.
http://sources.redhat.com/pthreads-...nouncement.html
However, We were examining only by pthreadGC2. I think that supporting both
causes confusion. Therefore, I have tried pthreadGC2 by the method of taking
in to static....

Introduction

first step)
make GC-static
--> libpthreadGC2.a
second step)
copy libpthreadGC2.a to [MinGW]lib.
copy pthread.h, sched.h and semaphore.h to [MinGW]include.

Result)
It did not pass configure. :-(

In order to let it pass
gcc -o sample.exe sample.c - DPTW32_BUILD_INCLUDE
-DPTW32_STATIC_LIB
-lpthreadGC2 -lwsock32

But, by the DLL type, this is satisfactory now.
gcc -o sample.exe sample.c -lpthreadGC2 -lwsock32

So, we should support a static type. Or is there any good idea?

Regards,
Hiroshi Saito
Dave Page

2005-08-24, 7:25 am

=20

> -----Original Message-----
> From: Hiroshi Saito [mailto:saito- BlLeDYhMEWED+c6HKvR8
e3f5DAMn2ifp@public.gmane.org]=20
> Sent: 24 August 2005 03:38
> To: Dave Page; Hamid Qureshi
> Cc: slony1-general- AuKwsB3Fm+ugFIWk8tvy
RWD2FQJk+8+b@public.gmane.org
> Subject: Re: [Slony1-general] Slony Win32 port
>=20
> do you know
>=20
> Um, I think that stable version currently used in large=20
> numbers about it.=20
> http://sources.redhat.com/pthreads-...nouncement.html
> However, We were examining only by pthreadGC2. I think that=20
> supporting both=20
> causes confusion. Therefore, I have tried pthreadGC2 by the=20
> method of taking=20
> in to static....


We're only supporting dynamic at the moment - that way we can use the
precompiled binaries from Redhat just by downloading them and installing
them.

ftp://sources.redhat.com/pub/pthrea...2-7-0-release.e
xe

Regards, Dave.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com