From: | Matt England <mengland(at)mengland(dot)net> |
---|---|
To: | pgsql-ports(at)postgresql(dot)org,mingw-users(at)lists(dot)sourceforge(dot)net |
Cc: | mengland(at)mengland(dot)net |
Subject: | How to build thread-safe postgresql 8.x on mingw? |
Date: | 2006-03-06 16:14:33 |
Message-ID: | 6.1.2.0.2.20060306100540.04612f08@127.0.0.1 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
(I'm cross-posting this to pgsql-ports and mingw-users; I hope that's ok.)
Summary:
I'm trying to get posgresql-base-8.1.3 to build on my mingw/msys (1.0.11
system; uname -a below) using "thread safety."
Am I going to need something like
<http://sources.redhat.com/pthreads-win32/> to accomplish this task? Is
this *only* alternative; are there any options?
(I don't yet know about how I'm going to distribute this software, ie, how
the library relationships will work b/w pthreads-win32 and postgresql, but
I'll figure it out or report back here if I can't. Any tips/pointers are
welcome. I plan to follow LGPL to the letter if I do this.)
Details:
$ ./configure --enable-thread-safety --prefix=/cgrid/local/postgresql
--without-zlib
[...]
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... no
checking pthread.h usability... no
checking pthread.h presence... no
checking for pthread.h... no
configure: error: pthread.h not found, required for --enable-thread-safety
$ uname -a
MINGW32_NT-5.1 MATTS-LAPTOP 1.0.11(0.46/3/2) 2004-04-30 18:55 i686 unknown
I found:
http://sources.redhat.com/pthreads-win32/
as per:
http://sourceforge.net/mailarchive/message.php?msg_id=11243465
-Matt
From | Date | Subject | |
---|---|---|---|
Next Message | Matt England | 2006-03-06 16:35:35 | Re: [Mingw-users] How to build thread-safe postgresql 8.x on |
Previous Message | Matt England | 2006-03-05 22:08:44 | Re: How to make Fedora4 build threadsafe? |