Dave Page dpage
Tue Aug 23 22:39:40 PDT 2005
 


________________________________

	From: Hamid Qureshi [mailto:hamid.qureshi at gmail.com] 
	Sent: 23 August 2005 22:09
	To: Dave Page
	Cc: slony1-general at gborg.postgresql.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_JOINABLE
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gborg.postgresql.org/pipermail/slony1-general/attachments/20050823/b2ffad07/attachment.html


More information about the Slony1-general mailing list